Skip to content

Webhooks of the change feed: id, url, filter (tables, ops, columns, exclude_actor), `cursor` (last change delivered), `status` (ok, failing, disabled), `last_delivery`, `last_error`. Secrets are not shown.

POST
/datanotes/operations/list_webhooks/
curl --request POST \
--url https://example.com/datanotes/operations/list_webhooks/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'

Webhooks of the change feed: id, url, filter (tables, ops, columns, exclude_actor), cursor (last change delivered), status (ok, failing, disabled), last_delivery, last_error. Secrets are not shown.

X-Datanotes-View-As
string

Owner only, on reads only (an operation that only reads, tokens/me/, extensions/, the change stream): the request runs with this named token’s permissions and read scope, and the token’s last_seen does not change. A named token sending it gets 403; a request that is not a read gets 400.

Media typeapplication/json
object

Example generated

{}

Done.

Media typeapplication/json
object
webhooks
required
Array<object>
Webhook

A webhook of the change feed (its secret is never listed).

object
id
required

Webhook id (wh_…).

string
url
required

Receiver URL.

string
tables
Array<string>
kinds
Array<string>
Allowed values: insert update delete move metastore tool_call unreadable
columns
Array<string>
exclude_actor
string
where

Row filter.

object
key
additional properties
any
enabled
required
boolean
cursor
required

Last sequence number delivered (or skipped by the filter).

integer
created_at
required

ISO date-time.

string
last_delivery

ISO date-time of the last delivery.

string
last_error
string
failures
required

Consecutive failed deliveries.

integer
status
required

Delivery state.

string
Allowed values: ok failing disabled

Example

{
"webhooks": [
{
"kinds": [
"insert"
],
"status": "ok"
}
]
}

Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}

Missing or wrong bearer token.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}

A named token whose read patterns do not cover the table, view or note the request names (such as token cook may not read personal.health.weight). Sets it did not name (listings, bases, search, the graph, the change feed) are filtered instead.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}

Unexpected error.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}