Create a Platform webhook endpoint
Creates a webhook endpoint for the API key's customer account. The signing secret is returned only in this response.
Creates a webhook endpoint for the API key's customer account. The signing secret is returned only in this response.
platformApiKeyAuthorizationBearer <token>Curae Platform API key using the format Bearer . Keys are opaque credentials such as cae_live_..., not JWTs.
Idempotency-Key?stringOptional idempotency key to make this mutation safe to retry. Replays of the same (apiKey, key) within 24h return the original response.
^[A-Za-z0-9_-]+$length <= 255application/json- body
url*stringurieventTypes*array<|>The event types the endpoint subscribes to. May be empty: a deletion-only endpoint, which receives only the event types every ACTIVE endpoint is always sent (connection.revoked, connection.expired and records.deleted), which need no subscription.
0 <= itemsCreated webhook endpoint
application/json- response
id*stringuuidresourceType*stringurl*stringurieventTypes*array<>The event types the endpoint subscribes to. Empty for a deletion-only endpoint, which receives only the event types every ACTIVE endpoint is always sent.
0 <= itemsstatus*string"ACTIVE""DISABLED""SUSPENDED"consecutiveFailures*integer0 <= valuelastDeliveryAttemptAt*stringdate-timelastSuccessfulDeliveryAt*stringdate-timecreatedAt*stringdate-timeupdatedAt*stringdate-time_version*stringStrong ETag-compatible version that changes only when the customer-visible
configuration (url, eventTypes, status) changes. Operational fields
(consecutiveFailures, lastDeliveryAttemptAt, lastSuccessfulDeliveryAt)
mutate on every outbound delivery and do NOT affect _version, so
conditional GET requests return 304 Not Modified for unchanged
configuration even on busy endpoints.
_links*signingSecret*stringPlaintext signing secret returned only once at endpoint creation.
curl -X POST 'https://api.curaeai.com/api/platform/v1/webhook-endpoints' \ -H 'Content-Type: application/json' \ -d '{ "url": "http://example.com", "eventTypes": []}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "resourceType": "WebhookEndpoint", "url": "http://example.com", "eventTypes": [], "status": "ACTIVE", "consecutiveFailures": 0, "lastDeliveryAttemptAt": "2019-08-24T14:15:22Z", "lastSuccessfulDeliveryAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "_version": "string", "_links": { "self": { "href": "string" } }, "signingSecret": "string"}List Platform webhook endpoints GET
Lists non-deleted webhook endpoints owned by the API key's customer account, sorted by `createdAt DESC, id DESC` (newest first), with forward-only cursor pagination as specified in `platform-api-architecture.md §10`.
Retrieve a Platform webhook endpoint GET
Retrieves a webhook endpoint owned by the API key's customer account.