Skip to main content
POST/api/public/v1/webhooks

webhooks.create

Add an https endpoint for chosen events; the signing secret (whsec_…) is returned once.

Capability: webhook.manageCommand (idempotent)MCP tool: webhooks_create
View as Markdown

Parameters

NameTypeRequiredDescription
command_idbodystring (uuid)YesClient-generated UUID for this command. Send the same id (and body) again to get the stored receipt instead of a second change; a different body under the same id is CONFLICT.
urlbodystringYeshttps:// address on a public host name; port 443, 2053, 2083, 2087, 2096 or 8443 (min length 12, max length 2048)
descriptionbodystringNo(max length 200) Default: `""`.
eventsbodyarray<"session.ready" | "session.failed" | "session.closed" | "worker.offline" | "worker.online" | "run.completed" | "feedback.updated">Yes(min 1 items, max 16 items)

Examples

curl -X POST "https://browlix.com/api/public/v1/webhooks" \
  -H "Authorization: Bearer $BROWLIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"command_id":"<uuid>","url":"<url>","events":[]}'

Response

201 with { data, replayed: false, correlation_id } the first time; 200 with replayed: true when the same command_id and body come again.

The field list of this reply is not published yet; read data as JSON.

Errors

CodeHTTPRetryable
UNAUTHENTICATED401No
FORBIDDEN403No
RATE_LIMITED429Yes
VALIDATION_FAILED422No
CONFLICT409No
OUTCOME_UNKNOWN202Yes
DEPENDENCY_UNAVAILABLE503Yes
UNKNOWN500No

Every error code and when to retry

All operations