Saki Docs
Webhook

Update a webhook

Updates the webhook's URL, events, or active status.

Base URLhttps://app.usesaki.com/api
put/spaces/{space}/webhooks/{webhook}

Update a webhook

Updates the webhook's URL, events, or active status.

AuthorizationBearer <token>

Path Parameters

spacerequiredinteger

The space ID

webhookrequiredinteger

The webhook ID

Request Body

application/json
urlstring
is_activeboolean
events"post.published" | "post.failed" | "post.scheduled" | "account.connected" | "account.disconnected"[]

Response

curl -X PUT "https://app.usesaki.com/api/spaces/{space}/webhooks/{webhook}" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com",
  "is_active": true,
  "events": [
    "post.published"
  ]
}'
Response
{
  "data": {
    "id": 0,
    "url": "string",
    "events": [
      {}
    ],
    "is_active": true,
    "created_at": "2024-01-01T00:00:00Z",
    "updated_at": "2024-01-01T00:00:00Z"
  }
}