Get a webhook endpoint
One webhook endpoint: its URL, events, whether it's on and, if it was turned off, why. The signing secret is never shown again after it's made.
View as MarkdownGET
https://yapfactory.com/api/v1/webhooks/{webhookId}| Who can use it | Everyone: brands and creators |
| Tier | read: Reads. Changes nothing. |
| Scope | webhooks:read, or read |
| Idempotency-Key | Not used |
| Rate limit | Reads: 120 a minute |
| MCP tool | None. This one is REST only. |
Parameters
webhookIdpathrequired
The webhook endpoint's id.
Example request
curl "https://yapfactory.com/api/v1/webhooks/8f14e45f-ceea-4e7a-9b1d-2c3b4a5d6e7f" \
-H "Authorization: Bearer $YAP_API_KEY"Response
200 with the result in data.
{
"data": {
"id": "0d61f837-1c3b-4e4a-8a5f-7b2e9c6d1f00",
"url": "https://hooks.zapier.com/hooks/standard/1234567/abcdef/",
"description": "Zapier: draft ready to review",
"events": [
"draft.submitted"
],
"enabled": true,
"disabledReason": null,
"failingInARow": 0,
"createdAt": "2026-12-03T10:00:00.000Z"
}
}An example: fields that don't apply are null, and new fields can be added at any time, so ignore ones you don't know. Every response carries Request-Id and the RateLimit-* headers.
Errors
| Code | Status | When |
|---|---|---|
invalid_request | 400 | A field failed validation (see meta.issues), or an unknown query parameter. |
unauthorized | 401 | No token, or it's wrong, expired, revoked or from the other environment. |
insufficient_scope | 403 | The token doesn't have webhooks:read (or read). |
forbidden | 403 | Not allowed for this account, for example while it's paused. |
not_found | 404 | No such webhook, or it isn't yours. |
rate_limited | 429 | Over the limit. Wait for Retry-After seconds. |
internal | 500 | Our fault. Retry later, and send us the requestId if it keeps happening. |
Every error has the same shape. See Errors for what to do about each one.