API reference

Build and test requests against the sendlz messaging API.

2026/v1Download OpenAPI

How the API works

Every request uses HTTPS, a versioned path, and a bearer key. Write operations accept JSON and return a typed JSON result that your server can reconcile with delivery events.

  1. AuthenticateCreate a scoped key in the console and send it as an Authorization bearer token.
  2. Build the requestChoose the versioned endpoint, supply required path values, headers, and a validated JSON body.
  3. Handle the resultRead the HTTP status and typed response. Treat validation and authentication failures as final until corrected.
  4. Track deliveryStore the returned resource ID and process signed webhook events for asynchronous delivery changes.
Base URL
https://api.sendlz.com/sendlz-api
Safe retries
Reuse the same idempotency key when retrying a timed-out write. Do not generate a new key for the same logical operation.
Rate limits
When the API returns 429, respect the response headers and retry with bounded exponential backoff.
Errors
Branch on the HTTP status and typed error code. Do not expose raw API errors or bearer keys to customers or logs.
POST

Send a WhatsApp message

Send messages and inspect delivery records, templates, and connected business numbers.

/api/2026/v1/whatsapp/messages

Authentication

Send a bearer key issued in the console. The key controls organisation access, capabilities, environment, and rate limits.

Your token stays in this browser tab and is never stored by this page.

Parameters

This endpoint has no path parameters.

Headers

Authorizationrequired

Bearer szk_prefix.secret

Content-Typerequired

application/json

Idempotency-Keyrecommended

A unique value for safe retries.

Request body

application/json

Test this request

The request runs from your browser against the API URL shown above.