Skip to main content

GET /sms/templates

List saved replies

Scopesms:read
CostFree

Canned replies — opening hours, a booking link, "we'll call you back".

Templates belong to a user, not the account. Two agents on one account do not see each other's saved replies. An API key authenticates the account rather than a person, so it has none and gets an empty list — which is true, not an error.

Responses

200

The caller's saved replies.

FieldTypeDescription
[].idinteger
[].titlestring
[].bodystringThe message text.

Errors

StatusMeaning
401unauthenticated — no credential, or one that is invalid, revoked or expired. The WWW-Authenticate header names the scope the endpoint wanted.
403Two different failures share this status, and the type tells them apart:
500internal_error — something failed on our side. For a send, nothing was charged, guaranteed, which is what makes a retry safe.

See Errors for the full catalog and what to do about each.

Example

curl -X GET 'https://api.account.telebroad.com/api/public/v1/sms/templates' \
-H "Authorization: Bearer $TB_KEY"

Try it in the playground →