OTP
Templates
Keep your SMS wording in templates, by API or on the Templates page of the console, and send by id.
GEThttps://api.siellabs.com/v1/templates
POSThttps://api.siellabs.com/v1/templates
GEThttps://api.siellabs.com/v1/templates/{id}
PUThttps://api.siellabs.com/v1/templates/{id}
DELETEhttps://api.siellabs.com/v1/templates/{id}
Body#
namestringRequired
Up to 80 characters, unique in your account.
bodystringRequired
The text. For OTPs, with
{code} where the code goes; for messages, with {{variables}} such as {{first_name}}, filled when you send it.categorystringOptional
Up to 40 characters, for you.
GET /v1/templates takes name: only templates whose name starts with it.
Send a template as a message with template_id and variables on POST /v1/messages or POST /v1/messages/batch, or as an OTP's text with template_id on POST /v1/verifications.
{
"id": "6d16aa9d-bf19-4141-8169-48b46d972fc6",
"name": "Sign-up code",
"category": "OTP",
"body": "Your code is {code}",
"created_at": "2026-11-02T09:15:02Z",
"updated_at": "2026-11-02T09:15:02Z"
}Errors: invalid_name, invalid_category, invalid_body, body_too_long (422), template_exists (409), not_found (404).