Skip to content

Send an event to a webhook Source

POST
/v1/hooks/{token}
curl --request POST \
--url https://api.pocketbell.dev/v1/hooks/pbw_7fk2mq9xr4tlp8vn3wz6cb1s

Post any JSON, form or text (up to 64 KB). The Source’s templates turn it into a notification; with none, it reads as a summary of the event’s fields.

token
required
string
Example
pbw_7fk2mq9xr4tlp8vn3wz6cb1s

Received and queued.

Media typeapplication/json
object
id
required
string
status
required

Awaiting_answer for a question; awaiting_acknowledgment for a Critical notification, which repeats until acknowledged; scheduled when deliver_at is ahead.

string
Allowed values: queued scheduled awaiting_acknowledgment awaiting_answer
repeats

Critical only: false when the account already has 10 Critical notifications repeating. This one is delivered once, without repeats, and still waits for acknowledgment until it expires.

boolean
Example
{
"id": "msg_01jz9k6q8r3tfv0x2m4n5p7s8a",
"status": "queued"
}

No webhook Source has this URL.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Which fields were wrong, for invalid_request.

Array<object>
object
field
required
string
message
required
string
Example
{
"error": {
"code": "invalid_request"
}
}

Rate_limited: too many at once, retry after the Retry-After header’s seconds; or monthly_limit_reached: the account’s notifications for the month are used up (a Critical one still goes out).

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Which fields were wrong, for invalid_request.

Array<object>
object
field
required
string
message
required
string
Example
{
"error": {
"code": "invalid_request"
}
}