Skip to main content
POST
Queues one text message from the agent’s hosted SMS number. The message joins that contact’s conversation, so when the customer texts back, the agent answers the reply like any other inbound text. The agent needs an enabled SMS number (a hosted SMS channel). Agents without one get 409 sms_not_enabled. Account, reseller, organization and agent-scoped API keys can all call this endpoint. An agent-scoped key can only send from its own agent.

Path Parameters

string
required
The agent that sends the text (UUID)

Headers

string
Optional, up to 200 characters. Retrying with the same key returns the first message (200) instead of sending a second text. Use your own id for the event, for example order-9312-ready.

Request Body

string
required
Recipient in E.164 format, e.g. +15551234567
string
required
The text, 1 to 1600 characters. Leading and trailing spaces are removed.
string
One of the agent’s SMS numbers, in E.164. Defaults to the agent’s first SMS number.

Response

string
The message id
string
Always queued. Telzino sends the text within a few seconds.
string
The agent number it is sent from
202 means the text is queued. A repeat with the same Idempotency-Key answers 200 with the first message.

Errors

Only send to people who agreed to receive texts from you. A recipient who replies STOP is opted out of that number, and later sends to them answer 409 opted_out.