Manage outbound webhook endpoints programmatically. All three endpoints require theDocumentation Index
Fetch the complete documentation index at: https://docs.usehasp.com/llms.txt
Use this file to discover all available pages before exploring further.
control:webhooks scope.
Webhooks registered here are the same endpoints visible in the Webhooks page of each app in the dashboard. Creating one via the API is equivalent to clicking Add endpoint in the UI — they share the same delivery infrastructure.
For information on the events that are delivered and how to verify signatures, see Outbound Webhooks.
List webhook endpoints
Response
Create a webhook endpoint
Body
| Field | Type | Required | Description |
|---|---|---|---|
app_id | string | Yes | ULID of the app to attach this endpoint to. Must belong to your org. |
url | string | Yes | HTTPS destination URL. Max 2048 characters. Private/internal IPs and localhost are rejected. |
events | array | Yes | One or more event strings. Must be non-empty. |
description | string | No | Human-readable label. Max 255 characters. |
record.created, record.updated, record.deleted, record.bulk_created, schema.updated
Response (201)
data.secret is the HMAC-SHA256 signing secret. This is the only time it is returned. Store it securely — it cannot be retrieved again. To replace it, delete the endpoint and create a new one (or use the dashboard’s Rotate secret button, which has a 7-day grace period for the old secret).
Delete a webhook endpoint
404.
Response
Error codes
| Code | HTTP | Description |
|---|---|---|
INVALID_API_KEY | 401 | Caller’s key is invalid or revoked |
MISSING_SCOPE | 403 | Key lacks control:webhooks scope |
VALIDATION_FAILED | 422 | Invalid URL, empty events array, or unknown event type |
RESOURCE_NOT_FOUND | 404 | Endpoint ID not found or app belongs to another org |