Webhooks

Webhook management and events

Get all available webhook event types

get
Authorizations
Responses
200

Returns list of all webhook event types with descriptions and example payloads

application/json
get
/api/webhook/events
GET /api/webhook/events HTTP/1.1
Host: 
Accept: */*
200

Returns list of all webhook event types with descriptions and example payloads

[
  {
    "eventType": "extracted",
    "description": "Triggered after successful AI extraction of submission data",
    "examplePayload": {
      "eventId": "123e4567-e89b-12d3-a456-426614174000",
      "eventType": "extracted",
      "timestamp": "2023-10-28T12:00:00.000Z",
      "submissionId": "sub_789012",
      "templateId": "tpl_345678"
    }
  }
]

Create webhook subscription

post
Authorizations
Body
eventall ofRequired

Event type that triggers the webhook

Example: extracted
string · enumOptionalPossible values:
urlstringRequired

URL where webhook notifications will be sent

Example: https://example.com/webhook-endpoint
Responses
post
/api/webhook/subscription
POST /api/webhook/subscription HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 66

{
  "event": "extracted",
  "url": "https://example.com/webhook-endpoint"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "event": "extracted",
  "url": "https://example.com/webhook-endpoint",
  "secret": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2023-01-01T12:00:00Z",
  "updatedAt": "2023-01-01T13:30:00Z"
}

Get all webhook subscriptions

get
Authorizations
Responses
200

List of webhook subscriptions

application/json
get
/api/webhook/subscriptions
GET /api/webhook/subscriptions HTTP/1.1
Host: 
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "event": "extracted",
    "url": "https://example.com/webhook-endpoint",
    "secret": "123e4567-e89b-12d3-a456-426614174000",
    "createdAt": "2023-01-01T12:00:00Z",
    "updatedAt": "2023-01-01T13:30:00Z"
  }
]

Get webhook subscription by ID

get
Authorizations
Path parameters
idstringRequired

Subscription ID

Responses
200

The webhook subscription details

application/json
get
/api/webhook/subscription/{id}
GET /api/webhook/subscription/{id} HTTP/1.1
Host: 
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "event": "extracted",
  "url": "https://example.com/webhook-endpoint",
  "secret": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2023-01-01T12:00:00Z",
  "updatedAt": "2023-01-01T13:30:00Z"
}

Update webhook subscription

put
Authorizations
Path parameters
idstringRequired

Subscription ID

Body
eventall ofOptional

Event type that triggers the webhook

Example: extracted
string · enumOptionalPossible values:
urlstringOptional

URL where webhook notifications will be sent

Example: https://example.com/webhook-endpoint
Responses
200

The updated webhook subscription

application/json
put
/api/webhook/subscription/{id}
PUT /api/webhook/subscription/{id} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 66

{
  "event": "extracted",
  "url": "https://example.com/webhook-endpoint"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "event": "extracted",
  "url": "https://example.com/webhook-endpoint",
  "secret": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2023-01-01T12:00:00Z",
  "updatedAt": "2023-01-01T13:30:00Z"
}

Delete webhook subscription

delete
Authorizations
Path parameters
idstringRequired

Subscription ID

Responses
200

Subscription successfully deleted

application/json
delete
/api/webhook/subscription/{id}
DELETE /api/webhook/subscription/{id} HTTP/1.1
Host: 
Accept: */*
{
  "success": true
}

Last updated

Was this helpful?