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

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Webhook endpoint ID

Body

application/json

Fields to update

events
string[]
is_active
boolean
url
string

Response

OK

created_at
string
events
string[]
id
string
is_active
boolean
url
string