Foxli
Log inStart free
API reference / webhooks

Create webhook endpoint

POST/v1/webhooksPermission webhooks:manage

Subscribes a URL to workspace publishing and channel lifecycle events.

Headers
AuthorizationstringREQUIRED

Bearer followed by your API key.

Foxli-Workspacestring

Target workspace ID. Required if account owns or admins more than one workspace.

Idempotency-Keystring

Unique token for request idempotency (valid for 24 hours).

Query parameters
workspace_idstring

Alternative way to pass workspace ID.

Body parameters
urlstringREQUIRED
eventsstring[]REQUIRED
Errors
400validation_failedInvalid parameters or missing workspace context.
401invalid_api_keyMissing, invalid, or revoked API key.
403insufficient_scopeAPI key lacks required scope: webhooks:manage
429rate_limitedToo many requests. Check Retry-After seconds.
curl -X POST https://api.foxli.app/v1/webhooks \
  -H "Authorization: Bearer $FOXLI_API_KEY" \
  -H "Foxli-Workspace: ws_brand_primary" \
  -H "Idempotency-Key: idemp_9f82a1" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://agency.example.com/api/foxli-events",
  "events": [
    "post.published",
    "post.failed"
  ]
}'
Response201 OK
{
  "success": true
}

Build on Foxli.

Publish posts, sync social channels, stream analytics, and get instant webhooks.

No card for month one · Cancel anytime