跳到正文
GrowSocmed文档Social media command center
API 参考Webhooks

Create a webhook endpoint

Add a webhook endpoint; its signing secret is shown once

POST
/webhooks

Add a webhook endpoint; its signing secret is shown once

Authorization

apiKey
headerAuthorizationBearer <token>

API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.

Request Body

application/json
  1. body
url*string
Formaturi
Lengthlength <= 2000
events*array<>
Items1 <= items

Response Body

Created

application/json
  1. response
id*string
url*string
events*array<string>
active*boolean
consecutive_failures*number
disabled_at*string|null
created_at*string
secret*string
Example Request
curl -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"}