Skip to content

The latest webhook event

GET
/v1/sources/{id}/event
curl --request GET \
--url https://api.pocketbell.dev/v1/sources/src_01jz9k6q8r3tfv0x2m4n5p7s8a/event \
--header 'Authorization: Bearer <token>'

For setting up a webhook Source: the event as it arrived, and its field paths.

id
required
string
Example
src_01jz9k6q8r3tfv0x2m4n5p7s8a

The latest event.

Media typeapplication/json
object
event_json
required

The latest event, pretty-printed in the order it arrived; null before the first.

string | null
summary
required

What the message reads with no message template.

string | null
received_at
required
string | null format: date-time
fields
required

The event’s field paths, for {{placeholders}}.

Array<string>
recognized

The event is from a tool Pocketbell knows: what it becomes with no template, and, with no rules, its priority and event key.

object
tool
required
string
title
required
string
message
required
string
priority
required
string
Allowed values: silent quiet normal important critical
replace
required

Always null: a known tool’s events no longer replace each other; see event.

string | null
event

The event key: a later event about the same thing ends this one’s waiting (a Critical stops repeating), and both stay in the inbox, in order.

string | null
url
required
string | null
Example
{
"recognized": {
"tool": "Uptime Kuma",
"priority": "silent"
}
}

Missing or ended session.

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"
}
}

No such Source on this account.

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"
}
}