Skip to main content
POST
/
whatsapp_template
/
upload
Upload a WhatsApp Template
curl --request POST \
  --url https://api.v3.tatango.com/whatsapp_template/upload \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "my_template",
  "language": "en",
  "category": "MARKETING",
  "structure": {
    "type": "TEXT",
    "body": {
      "text": "Welcome to the future."
    }
  },
  "webhookUrl": "https://yourpostbackaddress.com"
}
'
{
  "message": "WhatsApp template submitted for approval",
  "transactionId": "019687e1-1b54-70f4-a68a-60af7fa776f4"
}

Authorizations

x-api-key
string
header
required

Your Tatango API key. This is required for all requests to the API. You can find your API key in the Tatango App under My Account -> API -> Create API Key.

Body

application/json

The WhatsApp Template upload request.

name
string
required

The name of the WhatsApp template.

language
string
required

Language code for the template.

Required string length: 2 - 5
category
enum<string>
required

The category of the template.

Available options:
MARKETING,
AUTHENTICATION,
UTILITY
structure
object
required
webhookUrl
string
required

URL where webhooks will be sent. Must be a valid HTTPS URL.

Maximum string length: 255

Response

WhatsApp template upload accepted

message
string
required

Success message indicating the request was accepted.

transactionId
string
required

Unique transaction identifier for tracking the message.