Skip to main content
POST
/
webhooks
Create a webhook endpoint
curl --request POST \
  --url https://app.autoposting.ai/api-proxy/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://your-server.com/webhooks/autoposting",
  "events": [
    "post.published",
    "post.failed",
    "clip.render.completed"
  ],
  "secret": "whsec_your_signing_secret"
}
'
{
  "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-...

Body

application/json
url
string<uri>
required

HTTPS URL to deliver events to. Must be publicly accessible.

events
enum<string>[]
required

Event types to subscribe to. Use ["*"] to receive all events.

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

Signing secret used to verify webhook payloads. If provided, each delivery includes an X-Autoposting-Signature header with an HMAC-SHA256 signature.

enabled
boolean
default:true

Whether the webhook is active. Default: true.

Response

Webhook created

success
boolean
required
data
object
required