Skip to content

Get Webhook

GET
/v0/webhooks/{webhook_id}
curl -s "https://api.yoagent.dev/v0/webhooks/whk_01je56wqswfmn9pgbc1wq8tjgq" \
-H "Authorization: Bearer $YOAGENT_KEY"

Get a webhook (with its secret for who may create webhooks).

webhook_id
required
Webhook Id
string
/^whk_[0-7][0-9a-hjkmnp-tv-z]{25}$/

Successful Response

Media typeapplication/json
WebhookOut

A webhook; secret verifies the webhook-signature header (Standard Webhooks).

object
version
required
Version

Goes up by one on every change: of two copies, the one with the higher version is the newer.

integer
webhook_id
required
Webhook Id
string
/^whk_[0-7][0-9a-hjkmnp-tv-z]{25}$/
project_id
required
Project Id
string
/^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$/
url
required
Url

Where it POSTs; whole (with its user and password, sent as Basic auth, its path and query) only to a caller who may create the project’s webhooks (webhook_create), like secret; to others its scheme, host and port.

string
event_types
required
Event Types
Array<string>
Allowed values: domain.verified message.bounced message.complained message.delivered message.received message.rejected message.sent message.unsubscribed
scope
required
WebhookScope

What mail of its project a webhook receives.

string
Allowed values: project inboxes catch_all
inboxes
required
Inboxes

The inboxes of scope inboxes (empty once they are all deleted: it then receives nothing).

Array<object>
WebhookInboxOut

An inbox a webhook is limited to.

object
inbox_id
required
Inbox Id
string
/^inb_[0-7][0-9a-hjkmnp-tv-z]{25}$/
address
required
Address

Null when the caller does not see the inbox; its local part may come from a sender (auto-create).

Any of:
string
enabled
required
Enabled
boolean
disabled_reason
required

failing: we paused it after its URL failed deliveries in a row (how many: the webhooks’ event docs); null when on or paused by a person.

Any of:
DisabledReason

Why a webhook is paused by us rather than by a person.

string
Allowed values: failing
client_id
required
Client Id
Any of:
string
secret
required
Secret

Shown to a caller who may create the project’s webhooks (webhook_create); null for one who may only read them.

Any of:
string
editable
required
Editable

Whether the caller may pause it, turn it on and change it (webhook_update in its project).

boolean
deletable
required
Deletable

Whether the caller may delete it (webhook_delete in its project).

boolean
created_at
required
Created At
string format: date-time

Example

{
"version": 1,
"webhook_id": "whk_01je56wqswfmn9pgbc1wq8tjgq",
"project_id": "prj_01je56wqswfmn9pgbc1wq8tjgq",
"url": "https://ci.example.com/hooks/yoagent",
"event_types": [
"domain.verified"
],
"scope": "project",
"inboxes": [],
"enabled": true,
"disabled_reason": null,
"client_id": "ci-run-1842",
"secret": "whsec_…",
"editable": true,
"deletable": true,
"created_at": "2026-12-01T12:00:00Z"
}

An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: Errors.