cherami.
API referenceWebhooks

List custom header names

GET /v1/webhooks/{webhook_id}/headers

Read as Markdown ↗

GET /v1/webhooks/{webhook_id}/headers

Requires an API key: Authorization: Bearer YOUR_CREDENTIAL.

Lists the names of the webhook's custom headers, in lowercase. Values are never returned.

Parameters

ParameterLocationRequiredTypeMeaning
webhook_idpathYesstringCherami resource ID returned by the API.

curl example

Supply CHERAMI_API_KEY privately.

curl --silent --show-error --include --request GET \
  "https://cherami.to/v1/webhooks/WEBHOOK_ID/headers" \
  --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.

WebhookHeaders

{
  "id": "11111111-1111-4111-8111-111111111111",
  "header_names": []
}

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 404

not_found: The resource does not exist or does not belong to this account. A reply or forward source must also be in the sending inbox.

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

Content type: application/json.

Error

HTTP 503

webhook_headers_unavailable: Header names could not be read. When error.details.applied is true the change was made; list the headers again.

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: WebhookHeaders

FieldRequiredTypeMeaning and constraints
idYesstringCherami resource ID.
header_namesYesarray of string

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