Skip to main content
Create a webhook

Authorizations

Authorization
string
header
required

Authorize using an API key. Send it in the Authorization: Bearer <api-key> header. Only API keys are accepted — session tokens are rejected. Create your first API key in the Circularo web app; further keys can be managed through this API.

Headers

Idempotency-Key
string

A unique key that makes a create request safe to retry. Generate a fresh value for each distinct operation. If a retry with the same key arrives while the original is still being processed you get a conflict; once it has completed you get the original result back instead of creating a duplicate, and reusing the key with a different request body is rejected. Stored results are retained for a limited time, after which a retry executes the request again.

Required string length: 1 - 255
Example:

"6b8f0f2e-9d3a-4c1e-bf7a-2f1d9c0a1b23"

Body

application/json

Parameters for creating a webhook.

callbackUrl
string<uri>
required

The HTTPS URL that will receive event notifications. It must accept POST requests. It must not carry a user name or a password (https://user:password@example.com/webhooks) — put HTTP Basic credentials in basicAuth instead.

Maximum string length: 2048
Example:

"https://example.com/webhooks/circularo"

basicAuth
object | null

Credentials Circularo authenticates each delivery with, sent in an Authorization header. Omit it, or send null, to deliver without authentication. A webhook uses either HTTP Basic authentication or an HMAC signature, so this cannot be combined with hmacSecret.

hmacSecret
string | null

A secret used to sign each payload with an HMAC-SHA256 signature, delivered as lowercase hexadecimal in the X-Circularo-Signature header so you can verify the request originates from Circularo. Compute it over the raw request body, exactly as received, before parsing it. When omitted, payloads are not signed. Cannot be combined with basicAuth.

Maximum string length: 255
Example:

"s3cr3t-signing-key"

Response

The webhook was created.

A webhook subscription: its identifier, the HTTPS callback URL events are delivered to, who created it and how its deliveries are secured.

basicAuth
object | null
required

The HTTP Basic credentials the deliveries are authenticated with, or null when they are not authenticated that way.

callbackUrl
string<uri>
required

The HTTPS URL that receives event notifications for this webhook.

Example:

"https://example.com/webhooks/circularo"

createdAt
string<date-time>
required

When the webhook was created.

Example:

"2024-11-02T09:15:30.000Z"

createdBy
object | null
required

The user who created the webhook. Null when it cannot be determined.

id
string
required

Stable identifier of the webhook. Use it to update or delete the webhook.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"as5Va0dUP6asH0asd95f"

isHmacConfigured
boolean
required

Whether payloads sent to this webhook are signed with an HMAC-SHA256 signature in the X-Circularo-Signature header.

Example:

true