Skip to main content
webhooks:read The webhooks:read scope provides read-only access to your webhook subscriptions and their delivery history. Use this to monitor your configured webhooks, check delivery status, and troubleshoot failed deliveries.

Endpoints

MethodPathDescription
GET/public/webhooksList webhook subscriptions
GET/public/webhooks/{id}/deliveriesGet delivery logs

List webhook subscriptions

GET /public/webhooks
Returns all webhook subscriptions for your site.

Example

curl https://api.app.hrizn.io/v1/public/webhooks \
  -H "X-API-Key: hzk_your_key_here"

Response — 200 OK

{
  "data": {
    "webhooks": [
      {
        "id": "wh-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "url": "https://partner.example.com/webhooks/hrizn",
        "events": [
          "ideacloud.completed",
          "content.completed",
          "compliance.completed"
        ],
        "is_active": true,
        "failure_count": 0,
        "created_at": "2026-01-15T10:00:00Z",
        "updated_at": "2026-01-15T10:00:00Z"
      },
      {
        "id": "wh-b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "url": "https://partner.example.com/webhooks/inventory",
        "events": [
          "inventory.description.completed",
          "inventory.feed.updated"
        ],
        "is_active": true,
        "failure_count": 2,
        "created_at": "2026-01-20T14:30:00Z",
        "updated_at": "2026-02-01T08:15:00Z"
      }
    ]
  }
}

Status codes

CodeDescription
200Success
401Missing or invalid API key
403API key does not have webhooks:read scope
500Internal server error

Get delivery logs

GET /public/webhooks/{id}/deliveries
Returns recent delivery attempts for a specific webhook subscription. Use this to check delivery status, response codes, and retry schedules.

Path parameters

NameTypeRequiredDescription
idstringYesWebhook subscription ID

Query parameters

NameTypeDefaultDescription
limitinteger25Number of results to return (1-100)

Example

curl "https://api.app.hrizn.io/v1/public/webhooks/wh-a1b2c3d4-e5f6-7890-abcd-ef1234567890/deliveries?limit=10" \
  -H "X-API-Key: hzk_your_key_here"

Response — 200 OK

{
  "data": {
    "deliveries": [
      {
        "id": "del-001-uuid",
        "event_type": "content.completed",
        "response_status": 200,
        "attempt_count": 1,
        "delivered_at": "2026-02-01T15:30:05Z",
        "next_retry_at": null,
        "created_at": "2026-02-01T15:30:00Z"
      },
      {
        "id": "del-002-uuid",
        "event_type": "ideacloud.completed",
        "response_status": 200,
        "attempt_count": 1,
        "delivered_at": "2026-02-01T14:45:02Z",
        "next_retry_at": null,
        "created_at": "2026-02-01T14:45:00Z"
      },
      {
        "id": "del-003-uuid",
        "event_type": "compliance.completed",
        "response_status": 503,
        "attempt_count": 3,
        "delivered_at": null,
        "next_retry_at": "2026-02-01T16:00:00Z",
        "created_at": "2026-02-01T15:00:00Z"
      }
    ]
  }
}
Deliveries with a non-null next_retry_at are still being retried. If delivered_at is null and next_retry_at is also null, the delivery has permanently failed after exhausting all retry attempts.

Status codes

CodeDescription
200Success
400Webhook ID is required
401Missing or invalid API key
403API key does not have webhooks:read scope
404Webhook subscription not found or belongs to a different site
500Internal server error

Error response — Missing scope

If your API key does not include webhooks:read, any request to these endpoints returns:
{
  "error": {
    "code": "forbidden",
    "message": "This API key requires one of the following scopes: webhooks:read",
    "details": {
      "required_scopes": ["webhooks:read"]
    }
  }
}
Last modified on March 1, 2026