Skip to content

Create webhook

POST
/api/webhooks

Creates a webhook with an auto-generated HMAC secret.
The secret is returned in this response only — store it securely.

Authorizations

bearerAuth

API token created via POST /api/tokens or the db:create-token CLI command

Type
HTTP (bearer)

Request Body

application/json
JSON
{
"url": "string",
"events": [
"string"
]
}

Responses

Created webhook with secret (shown once)

application/json
JSON
{
"data": {
"id": 0,
"user_id": 0,
"url": "string",
"secret": "string",
"events": [
"string"
],
"active": true,
"created_at": "string",
"updated_at": "string"
}
}

Samples

Powered by VitePress OpenAPI