API 参考Webhooks
Create a webhook endpoint
Add a webhook endpoint; its signing secret is shown once
POST
Add a webhook endpoint; its signing secret is shown once
apiKeyheader
AuthorizationBearer <token>API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.
application/json- body
url*stringFormat
uriLength
length <= 2000events*array<>Items
1 <= itemsCreated
application/json- response
id*stringurl*stringevents*array<string>active*booleanconsecutive_failures*numberdisabled_at*string|nullcreated_at*stringsecret*stringcurl -X POST 'https://socmed.growpaces.com/api/v1/webhooks' \ -H 'Content-Type: application/json' \ -d '{ "url": "http://example.com", "events": [ "account.connected" ]}'Example Response201
{ "id": "string", "url": "string", "events": [ "string" ], "active": true, "consecutive_failures": 0, "disabled_at": "string", "created_at": "string", "secret": "string"}