POST
/
webhooks
/
subscribe
curl --request POST \
  --url https://api.thoughtly.com/webhooks/subscribe \
  --header 'Content-Type: application/json' \
  --header 'team_id: <api-key>' \
  --header 'x-api-token: <api-key>' \
  --data '{
  "type": "NEW_RESPONSE",
  "data": "<string>",
  "url": "<string>"
}'
{
  "error": {},
  "data": {}
}

Authorizations

x-api-token
string
header
required

API key for the user making the request. This can be found via the Developer Settings page in the dashboard.

team_id
string
header
required

Team identifier, used to scope requests to a specific team. This can be found via the Developer Settings page in the dashboard.

Body

application/json

Response

200 - application/json

Successful response

The generic response format for all API requests. This structure ensures consistency in how success and error information is returned to the caller.