GET /sms/templates
List saved replies
| Scope | sms:read |
| Cost | Free |
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.
| Field | Type | Description |
|---|---|---|
[].id | integer | |
[].title | string | |
[].body | string | The message text. |
Errors
| Status | Meaning |
|---|---|
401 | unauthenticated — no credential, or one that is invalid, revoked or expired. The WWW-Authenticate header names the scope the endpoint wanted. |
403 | Two different failures share this status, and the type tells them apart: |
500 | internal_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"