Skip to main content
POST
/
api
/
v2
/
messages
Send a message
curl --request POST \
  --url https://take.app/api/v2/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "<string>",
  "template": "<string>",
  "language": "<string>",
  "parameters": {}
}
'
{
  "id": "<string>",
  "object": "message",
  "to": "<string>",
  "template": "<string>",
  "status": "sent"
}

Authorizations

Authorization
string
header
required

Merchant API V2 token. Pass as Authorization: Bearer <token>.

Body

application/json
to
string
required

Recipient phone number, digits only, no leading "+".

Minimum string length: 1
template
string
required

Name of an approved broadcast template to send.

Minimum string length: 1
language
string

Template language code (e.g. "en"). Defaults to the template language.

parameters
object

Named body variable values, e.g. { "customer_name": "John" }.

Response

Message

id
string
required
object
enum<string>
required
Available options:
message
to
string
required

International phone number, digits only, no leading "+".

template
string
required
status
enum<string>
required
Available options:
sent