List the organization's webhook endpoints

List the organization's webhook endpoints

GET/api/v1/organizations/{id}/webhooks

GET /organizations/{id}/webhooks
curl -X GET 'https://www.unitpost.com/api/v1/organizations/org_123/webhooks' \
  -H 'Authorization: Bearer YOUR_ORG_KEY' \
  -H 'User-Agent: my-app/1.0'
Response · 200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "webhook",
      "id": "id_123",
      "name": "Example",
      "url": "https://example.com",
      "events": [
        "email.sent"
      ],
      "status": "enabled",
      "include_text": false,
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z",
      "backlog": {
        "queued": 0,
        "failed": 0
      }
    }
  ]
}

The organization's webhook endpoints, newest first and cursor-paginated (limit, after, before). Signing secrets are never returned here. A workspace's own endpoints (/webhooks) are not listed. Takes an organization key (ok_live_…) with organizations:read.

Parameters4 fields
FieldTypeDescription
idrequiredstring · pathThe organization's id (`org_…`), from `GET /whoami` or Organization → API.
limitinteger · queryMax rows to return (default 20, max 100).
afterstring · queryReturn rows after this id (forward paging).
beforestring · queryReturn rows before this id (backward paging).
Response · 200 fields10 fields
FieldTypeDescription
objectrequiredstring—
idrequiredstring—
namerequiredstring—
urlrequiredstring—
eventsrequiredenum | string[]—
statusrequiredenumenabled | disabled | suspended—
include_textboolean`email.received` deliveries to this endpoint also carry the message's plain-text body as `text`, at most 64 KB (`text_truncated` says it was cut). Null for a copy of one of your own sends (`sent_by_us`), a message deleted since, or one with no plain-text part. Default false: metadata only. The text is read when each delivery is sent and is never kept with the event, so the deliveries log doesn't show it.
created_atrequiredstring—
updated_atrequiredstring—
backlogobjectThe deliveries a flush would send. Each count stops at 10,001, which means more than 10,000. Only on `GET /webhooks/{id}`.
200401403404422429

Search docs and guides

Search the docs and product guides.