Skip to main content
PATCH
/
webhooks
/
{webhookId}
Update a webhook
curl --request PATCH \
  --url https://app.autoposting.ai/api-proxy/webhooks/{webhookId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [],
  "secret": "<string>",
  "enabled": true
}
'
{
  "success": true,
  "data": {
    "id": "wh_01HXYZ",
    "url": "https://your-server.com/webhooks/autoposting",
    "events": [
      "post.published",
      "post.failed",
      "clip.render.completed"
    ],
    "enabled": true,
    "createdAt": "2024-01-01T00:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Path Parameters

webhookId
string
required

Body

application/json
url
string<uri>

New delivery URL.

events
enum<string>[]

Updated event subscriptions.

Webhook event type. Use "*" to subscribe to all events.

Available options:
post.published,
post.failed,
post.scheduled,
clip.render.completed,
clip.render.failed,
agent.run.completed,
agent.run.failed,
*
secret
string

Updated signing secret.

enabled
boolean

Enable or disable the webhook.

Response

Webhook updated

success
boolean
required
data
object
required