Skip to content
Get started

Get a webhook by ID

GET/v1/webhooks/{id}

Retrieves a single webhook endpoint by its UUID. signing_key is omitted for security.

Path ParametersExpand Collapse
id: string
formatuuid
ReturnsExpand Collapse
id: string

Webhook ID (UUID)

formatuuid
created_at: string

When the webhook was created

formatdate-time
enabled: boolean

Whether the webhook is active

updated_at: string

When the webhook was last updated

formatdate-time
url: string

URL that receives webhook POSTs

disabled_at: optional string

Read-only. When the webhook was disabled. Omitted when null.

formatdate-time
disabled_reason: optional string

Read-only. Set by the system when the webhook was disabled. Omitted when null.

event_types: optional array of "feedback_record.created" or "feedback_record.updated" or "feedback_record.deleted" or 3 more

Event types this webhook subscribes to (empty = all)

Accepts one of the following:
"feedback_record.created"
"feedback_record.updated"
"feedback_record.deleted"
"webhook.created"
"webhook.updated"
"webhook.deleted"
tenant_id: optional string

Tenant/organization identifier

Get a webhook by ID

curl http://localhost:8080/v1/webhooks/$ID \
    -H "Authorization: Bearer $HUB_API_KEY"
{
  "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "created_at": "2019-12-27T18:11:19.117Z",
  "enabled": true,
  "updated_at": "2019-12-27T18:11:19.117Z",
  "url": "url",
  "disabled_at": "2019-12-27T18:11:19.117Z",
  "disabled_reason": "disabled_reason",
  "event_types": [
    "feedback_record.created"
  ],
  "tenant_id": "tenant_id"
}
Returns Examples
{
  "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "created_at": "2019-12-27T18:11:19.117Z",
  "enabled": true,
  "updated_at": "2019-12-27T18:11:19.117Z",
  "url": "url",
  "disabled_at": "2019-12-27T18:11:19.117Z",
  "disabled_reason": "disabled_reason",
  "event_types": [
    "feedback_record.created"
  ],
  "tenant_id": "tenant_id"
}