Base URL
Authentication
Every request carries a workspace API key in thex-api-key header. Create one in the
Truecaller campaigns portal under Developers → API keys. The key is shown once, so store it
safely; anyone with it can send from your workspace.
string
required
tc_live_… workspace API key.Send your first message
1
Create a template
POST /v1/templates with a name, a category and
a body such as Hi {{name}}, your order *{{order_id}}* has shipped.2
Submit it
POST /v1/templates/{id}/submit. It is approved
straight away.3
Send it
POST /v1/messages with to, template_id and
variables.4
Follow it
Add a webhook in the portal to receive
message.delivered,
message.read and message.failed events.Message categories
Phone numbers
Send numbers with the country code, with or without+ (+919999999999 or 919999999999).
Bare 10-digit numbers are treated as Indian.
Statuses
Errors
Errors return a JSON body with anerror string; validation errors also carry details. See
Errors for status codes and failure reasons.
