Quickstart
In this tutorial you will authenticate and create your first WhatsApp template using the Chattigo BSP API.
Before you start
You need:
- Access credentials — username and password provided by your KAM.
- An active DID — the channel identifier you will operate on.
Don’t have credentials yet? Contact your account executive (KAM) to request them.
Step 1: Get your token
The only unauthenticated endpoint is POST /login. Send your credentials:
curl --request POST \
--url https://api.chattigo.com/login \
--header 'Content-Type: application/json' \
--data '{
"username": "your_user",
"password": "your_password"
}'The response includes the access_token you will use in every request:
{
"access": true,
"access_token": "<valid token>"
}Step 2: Call an authenticated endpoint
With the token, call any endpoint adding the Authorization: Bearer <token> header:
curl --request GET \
--url 'https://api.chattigo.com/v1/pricing?market=AR&category=MARKETING' \
--header 'Authorization: Bearer <token>'Step 3: Create your first template
curl --request POST \
--url 'https://api.chattigo.com/v1/templates/{did}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "welcome_message",
"language": "es",
"category": "MARKETING",
"components": [
{
"type": "BODY",
"text": "¡Hola {{1}}! Welcome to Chattigo.",
"example": {
"body_text": [["Juan"]]
}
}
]
}'The template stays in
PENDING status until Meta approves it (up to 24 hours). You can only send APPROVED templates.