Lalexi
APIСправочникWebhook events

channel.created

A new number was connected — through POST /channels or in Lalexi. Goes to the person who connected it (channel.connected_by) and to the people who work in the channel.

Header Parameters

X-Lalexi-Event*string

The event name, the same as event in the body.

X-Lalexi-Delivery*string

The delivery's id, the same as id in the body. It stays the same across retries — deduplicate on it.

Formatuuid
X-Lalexi-Timestamp*string

When this attempt was signed, in Unix seconds. Part of the signed string.

X-Lalexi-Signature*string

sha256= followed by the hex HMAC-SHA256 of {X-Lalexi-Timestamp}.{raw body}, keyed with the endpoint's whole secret (whsec_…). Compute it over the raw bytes you received — not over re-serialised JSON — and compare in constant time.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

Example Requests

POST/channel.created