cherami.
API referenceWebhooks

List webhooks

GET /v1/webhooks

Read as Markdown ↗

GET /v1/webhooks

Requires an API key: Authorization: Bearer YOUR_CREDENTIAL.

Lists the account's webhooks with their URL, event types, inbox scope and status. Secrets aren't listed: retrieve one when you need it. Receive webhook notifications

curl example

Supply CHERAMI_API_KEY privately.

curl --silent --show-error --include --request GET \
  "https://cherami.to/v1/webhooks" \
  --header "Authorization: Bearer $CHERAMI_API_KEY"

Responses

HTTP 200

Success.

  • X-Request-ID: Identifies this request; include it when reporting a problem.

Content type: application/json.

WebhookList

{
  "webhooks": []
}

HTTP 401

unauthorized: Send a valid API key as Authorization: Bearer <key>. If the key stopped working, get a new one through recovery.

  • X-Request-ID: Identifies this request; include it when reporting a problem.
  • WWW-Authenticate: "Bearer"

Content type: application/json.

Error

HTTP 503

webhooks_unavailable: Webhook management failed. If it was a change, it may have been applied: list or read the webhooks before repeating it.

  • X-Request-ID: Identifies this request; include it when reporting a problem.

Content type: application/json.

Error

Schema: WebhookList

FieldRequiredTypeMeaning and constraints
webhooksYesarray of Webhook

Schema: Webhook

status is active (delivering), disabled (not delivering until you set enabled to true; you or repeated delivery failures turned it off), pending (creation or removal not yet confirmed; read it again shortly) or unknown (the configuration couldn't be read and its fields are null; if it stays unknown, delete the webhook and add it again). pending_operation names the unconfirmed work.

FieldRequiredTypeMeaning and constraints
idYesstringCherami resource ID.
created_atYesstringUTC timestamp with milliseconds. format: date-time pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
urlYesstring or nullDestination URL; null while status is pending or unknown.
event_typesYesarray of WebhookEventType or null
inbox_idsYesarray of string or nullScoped inboxes; empty means every inbox.
deleted_inbox_idsYesarray of stringScoped inboxes that have since been deleted. They match nothing; edit inbox_ids to remove them.
enabledYesboolean or null
updated_atYesstring or null
statusYes"active" or "disabled" or "pending" or "unknown"
pending_operationYesobject or null
secret_rotated_atYesstring or null
previous_secret_expires_atYesstring or null

Schema: WebhookEventType

message.received: a received message is ready to read. message.sent: the provider accepted a sent message, which is not delivery.

"message.received" or "message.sent"

Schema: Error

FieldRequiredTypeMeaning and constraints
errorYesobject

error fields

FieldRequiredTypeMeaning and constraints
codeYesstringCode to handle. Handle a code you don't recognize by its HTTP status.
messageYesstringExplanation of this case; its wording can change.

Errors, limits and pagination · Download OpenAPI 3.1

On this page