Hanzo
OpenapiTel

Lists the messages this org has sent or received, newest first.

Lists the messages this org has sent or received, newest first.

GET /v1/tel/messages

Addresshttps://api.hanzo.ai/v1/tel/messages
MethodGET
Operationget_tel_messages
AuthAuthorization: Bearer $HANZO_API_KEY

Lists the messages this org has sent or received, newest first. Records from our own store, not the carrier's — so it is what this platform did on the org's behalf, which is the set an audit or a bill has to agree with.

Request

GET /v1/tel/messages takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200messageListok

200 body — 7 fields.

FieldInTypeAlwaysDescription
databodySMS[]Data is this org's own messages, newest first — from our store rather than the carrier's, so it is the set an audit or a bill has to agree with.
data[].frombodystringFrom is the sending number in E.164, and must be one this org holds.
data[].idbodystringID is the carrier's handle for the message.
data[].orgbodystringOrg is the tenant the message was sent for or received by.
data[].statusbodystringStatus is where the message is: "queued", "sent", "delivered" or "failed".
data[].textbodystringText is the message body.
data[].tobodystringTo is the receiving number in E.164.

Failure carries the platform error shape — see Errors.

Examples

hanzo tel messages get

Tel API · All Hanzo APIs · Interactive reference

How is this guide?

On this page