Webhooks API — Agentuity Documentation

Webhooks API

Manage webhook endpoints, destinations, receipts, deliveries, and analytics

Manage webhook endpoints, destinations, receipts, deliveries, and analytics.

https://catalyst-usw.agentuity.cloud

Authentication

All requests require a Bearer token. Pass your SDK key in the Authorization header.

HeaderValue
AuthorizationBearer YOUR_SDK_KEY

You can find your SDK key in the Agentuity Console under your project settings.


Webhook Management

Create Webhook

Create a new webhook endpoint.

POST/webhook/create
https://catalyst-usw.agentuity.cloud/webhook/create

Request Body

Webhook creation payload.

FieldTypeDescription
namestringHuman-readable name for the webhook
descriptionstringOptional description of the webhook's purpose (optional)

Response

Returns the created webhook. The ingest URL is only returned at creation.

StatusDescription
201Webhook created
401Unauthorized — invalid or missing Bearer token

Response Fields

FieldTypeDescription
idstringUnique identifier for the webhook (prefixed with wh_)
created_atstringISO 8601 timestamp when the webhook was created
updated_atstringISO 8601 timestamp when the webhook was last updated
created_bystringID of the user who created the webhook
namestringHuman-readable webhook name
descriptionstring | nullOptional description of the webhook's purpose
urlstringFully-qualified ingest URL for sending events to this webhook. Only present on create (optional)
internalbooleanWhether this is a system-managed webhook (e.g., S3 bucket notifications). Internal webhooks cannot be modified or deleted by users
metadataobject | nullSystem metadata for internal webhooks (e.g., bucket_name, type). Null for user-created webhooks

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/webhook/create' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Payment Events"
}'

Get Webhook

Get a specific webhook by ID.

GET/webhook/get/{webhookId}
https://catalyst-usw.agentuity.cloud/webhook/get/{webhookId}

Parameters

path
NameTypeRequiredDescription
webhookIdstringYesWebhook ID (wh_ prefix)

Response

Returns the webhook object.

StatusDescription
200Webhook returned
401Unauthorized — invalid or missing Bearer token
404Webhook not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/webhook/get/wh_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

List Webhooks

List all webhooks with optional pagination.

GET/webhook/list
https://catalyst-usw.agentuity.cloud/webhook/list

Parameters

query
NameTypeRequiredDescription
limitnumberNoMaximum results to return
offsetnumberNoPagination offset

Response

Returns paginated list of webhooks.

StatusDescription
200Webhooks returned
401Unauthorized — invalid or missing Bearer token

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/webhook/list' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Update Webhook

Update a webhook's name or description.

PUT/webhook/update/{webhookId}
https://catalyst-usw.agentuity.cloud/webhook/update/{webhookId}

Parameters

path
NameTypeRequiredDescription
webhookIdstringYesWebhook ID

Request Body

Webhook update payload.

FieldTypeDescription
namestringNew name for the webhook
descriptionstringNew description for the webhook (optional)

Response

Returns the updated webhook.

StatusDescription
200Webhook updated
401Unauthorized — invalid or missing Bearer token
404Webhook not found

Example

curl -X PUT 'https://catalyst-usw.agentuity.cloud/webhook/update/wh_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Updated Webhook"
}'

Delete Webhook

Delete a webhook and all associated destinations, receipts, and deliveries.

DELETE/webhook/delete/{webhookId}
https://catalyst-usw.agentuity.cloud/webhook/delete/{webhookId}

Parameters

path
NameTypeRequiredDescription
webhookIdstringYesWebhook ID

Response

Deletes the webhook and all associated destinations, receipts, and deliveries.

StatusDescription
204Webhook deleted
401Unauthorized — invalid or missing Bearer token
404Webhook not found

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/webhook/delete/wh_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Destinations

Create Destination

Add a destination to a webhook.

POST/webhook/destination-create/{webhookId}
https://catalyst-usw.agentuity.cloud/webhook/destination-create/{webhookId}

Parameters

path
NameTypeRequiredDescription
webhookIdstringYesWebhook ID

Request Body

Destination creation payload.

FieldTypeDescription
typestringType of destination to create
configobjectConfiguration object for the destination

Response

Returns the created destination.

StatusDescription
201Destination created
401Unauthorized — invalid or missing Bearer token
404Webhook not found

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/webhook/destination-create/wh_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "url",
  "config": {
    "url": "https://example.com/handler"
  }
}'

List Destinations

List all destinations for a webhook.

GET/webhook/destination-list/{webhookId}
https://catalyst-usw.agentuity.cloud/webhook/destination-list/{webhookId}

Parameters

path
NameTypeRequiredDescription
webhookIdstringYesWebhook ID

Response

Returns list of destinations.

StatusDescription
200Destinations returned
401Unauthorized — invalid or missing Bearer token
404Webhook not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/webhook/destination-list/wh_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Update Destination

Update a destination's configuration.

PUT/webhook/destination-update/{webhookId}/{destinationId}
https://catalyst-usw.agentuity.cloud/webhook/destination-update/{webhookId}/{destinationId}

Parameters

path
NameTypeRequiredDescription
webhookIdstringYesWebhook ID
destinationIdstringYesDestination ID (whds_ prefix)

Request Body

Destination update payload.

FieldTypeDescription
configobjectUpdated configuration object for the destination (optional)

Response

Returns the updated destination.

StatusDescription
200Destination updated
401Unauthorized — invalid or missing Bearer token
404Webhook or destination not found

Example

curl -X PUT 'https://catalyst-usw.agentuity.cloud/webhook/destination-update/wh_abc123/whds_def456' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "config": {
    "url": "https://example.com/new-handler"
  }
}'

Delete Destination

Delete a destination from a webhook.

DELETE/webhook/destination-delete/{webhookId}/{destinationId}
https://catalyst-usw.agentuity.cloud/webhook/destination-delete/{webhookId}/{destinationId}

Parameters

path
NameTypeRequiredDescription
webhookIdstringYesWebhook ID
destinationIdstringYesDestination ID

Response

Empty response on success.

StatusDescription
204Destination deleted
401Unauthorized — invalid or missing Bearer token
404Webhook or destination not found

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/webhook/destination-delete/wh_abc123/whds_def456' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Receipts

List Receipts

List incoming request records (receipts) for a webhook.

GET/webhook/receipt-list/{webhookId}
https://catalyst-usw.agentuity.cloud/webhook/receipt-list/{webhookId}

Parameters

path
NameTypeRequiredDescription
webhookIdstringYesWebhook ID
query
NameTypeRequiredDescription
limitnumberNoMaximum results to return
offsetnumberNoPagination offset

Response

Returns incoming request records (receipts) for a webhook.

StatusDescription
200Receipts returned
401Unauthorized — invalid or missing Bearer token
404Webhook not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/webhook/receipt-list/wh_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get Receipt

Get a specific receipt by ID.

GET/webhook/receipt-get/{webhookId}/{receiptId}
https://catalyst-usw.agentuity.cloud/webhook/receipt-get/{webhookId}/{receiptId}

Parameters

path
NameTypeRequiredDescription
webhookIdstringYesWebhook ID
receiptIdstringYesReceipt ID (whrc_ prefix)

Response

Returns the receipt with headers and payload.

StatusDescription
200Receipt returned
401Unauthorized — invalid or missing Bearer token
404Webhook or receipt not found

Response Fields

FieldTypeDescription
idstringUnique identifier for the receipt (prefixed with whrc_)
datestringISO 8601 timestamp when the receipt was recorded
webhook_idstringID of the webhook this receipt belongs to
headersobjectHTTP headers from the incoming webhook request
payloadanyRaw payload from the incoming webhook request (can be any type)

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/webhook/receipt-get/wh_abc123/whrc_def456' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Deliveries

List Deliveries

List delivery attempts for a webhook.

GET/webhook/delivery-list/{webhookId}
https://catalyst-usw.agentuity.cloud/webhook/delivery-list/{webhookId}

Parameters

path
NameTypeRequiredDescription
webhookIdstringYesWebhook ID
query
NameTypeRequiredDescription
limitnumberNoMaximum results to return
offsetnumberNoPagination offset

Response

Returns list of delivery attempts.

StatusDescription
200Deliveries returned
401Unauthorized — invalid or missing Bearer token
404Webhook not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/webhook/delivery-list/wh_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Retry Delivery

Retry a failed delivery. Only deliveries with 'failed' status can be retried.

POST/webhook/delivery-retry/{webhookId}/{deliveryId}
https://catalyst-usw.agentuity.cloud/webhook/delivery-retry/{webhookId}/{deliveryId}

Parameters

path
NameTypeRequiredDescription
webhookIdstringYesWebhook ID
deliveryIdstringYesDelivery ID (whdv_ prefix)

Response

Retries a failed delivery. Only deliveries with 'failed' status can be retried.

StatusDescription
200Delivery retried
401Unauthorized — invalid or missing Bearer token
404Webhook or delivery not found

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/webhook/delivery-retry/wh_abc123/whdv_def456' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{}'

Analytics

Get Org Analytics

Get aggregate webhook analytics for the organization.

GET/webhook/analytics/org
https://catalyst-usw.agentuity.cloud/webhook/analytics/org

Parameters

query
NameTypeRequiredDescription
startstringNoISO 8601 start date
endstringNoISO 8601 end date
granularitystringNo'minute', 'hour', or 'day'

Response

Returns aggregate analytics including total received, delivered, and failed counts.

StatusDescription
200Analytics returned
401Unauthorized — invalid or missing Bearer token

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/webhook/analytics/org' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get Analytics Time Series

Get time series webhook analytics for the organization.

GET/webhook/analytics/org/timeseries
https://catalyst-usw.agentuity.cloud/webhook/analytics/org/timeseries

Parameters

query
NameTypeRequiredDescription
startstringNoISO 8601 start date
endstringNoISO 8601 end date
granularitystringNo'minute', 'hour', or 'day'

Response

Returns time series data with received, delivered, and failed counts per time bucket.

StatusDescription
200Time series data returned
401Unauthorized — invalid or missing Bearer token

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/webhook/analytics/org/timeseries' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'