Skip to main content
GET
/
webhooks
/
{id}
cURL
curl --request GET \
  --url https://api.useanima.sh/v1/webhooks/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "orgId": "<string>",
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "active": true,
  "description": "<string>",
  "consecutiveFailures": 1,
  "disabledReason": "<string>",
  "disabledAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "authHeaderName": "<string>",
  "rateLimitPerMinute": 123,
  "maxAttempts": 123
}

Authorizations

Authorization
string
header
required

JWT Bearer token obtained from authentication. Pass as: Authorization: Bearer

Path Parameters

id
string
required

Unique webhook identifier

Pattern: ^[0-9a-z]+$

Response

200 - application/json

OK

Webhook subscription resource

id
string
required

Unique identifier for the webhook

Pattern: ^[0-9a-z]+$
orgId
string
required

Organization that owns this webhook

Pattern: ^[0-9a-z]+$
url
string<uri>
required

HTTPS endpoint URL receiving webhook payloads

events
string[]
required

Event types this webhook is subscribed to

Event name or glob pattern. Examples: 'email.received', 'email.', 'call.ended', ''.

Required string length: 1 - 100
Pattern: ^[a-z0-9*]+(\.[a-z0-9*]+)*$
active
boolean
required

Whether the webhook is currently active

description
string | null
required

Human-readable label for this webhook

consecutiveFailures
integer
required

Number of consecutive delivery failures across all events

Required range: x >= 0
disabledReason
string | null
required

Reason the webhook was auto-disabled, null if manually disabled or active

disabledAt
string<date-time> | null
required

ISO 8601 timestamp when the webhook was auto-disabled

createdAt
string<date-time>
required

ISO 8601 timestamp when the webhook was created

updatedAt
string<date-time>
required

ISO 8601 timestamp when the webhook was last modified

authType
enum<string>
required

Auth scheme the platform presents to your endpoint (never includes the secret)

Available options:
NONE,
BEARER,
BASIC,
CUSTOM_HEADER
authHeaderName
string | null
required

Header name for CUSTOM_HEADER auth; null for other schemes

rateLimitPerMinute
integer | null
required

Per-endpoint delivery rate cap in requests/minute; null = unlimited

maxAttempts
integer | null
required

Per-webhook max delivery attempts; null = platform default (3)