Skip to main content
POST
/
webhooks
Create webhook endpoint
curl --request POST \
  --url https://api.social-api.ai/v1/webhooks \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    "<string>"
  ],
  "url": "<string>"
}
'
{
  "events": [
    "<string>"
  ],
  "id": "<string>",
  "message": "<string>",
  "secret": "<string>",
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer soc_live_...

Body

application/json

Endpoint config

events
string[]
url
string

Response

Endpoint created

events
string[]
id
string
message
string
secret
string
url
string