curl --request POST \
--url https://api.greentick.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": "919876543210",
"type": "text",
"phoneNumberRef": "668f1a2b3c4d5e6f7a8b9c0a",
"text": "Hello from GreenTick"
}
'{
"success": true,
"data": {
"messageId": "<string>",
"wamid": "<string>",
"conversationId": "<string>",
"message": {
"id": "668f1a2b3c4d5e6f7a8b9c0d",
"wamid": "<string>",
"direction": "inbound",
"type": "<string>",
"text": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"deliveryStatus": "pending",
"deliveryHistory": [
{
"status": "pending",
"timestamp": "2023-11-07T05:31:56Z",
"errorCode": 123,
"errorTitle": "<string>",
"errorMessage": "<string>"
}
],
"repliedBy": "<string>",
"template": {
"name": "order_update",
"language": "en_US",
"templateCategory": "MARKETING",
"parameterFormat": "NAMED",
"components": [
{}
],
"variableValues": {
"customer_name": "Akshay",
"order_id": "ord_123"
},
"headerComponent": {}
},
"mediaId": "<string>",
"isRevoked": true
}
}
}{
"success": false,
"code": "INVALID_TO",
"message": "to (E.164 phone) is required"
}{
"success": false,
"code": "INVALID_TO",
"message": "to (E.164 phone) is required"
}{
"success": false,
"code": "INVALID_TO",
"message": "to (E.164 phone) is required"
}Messages
Send a WhatsApp message
Send a session text message or an approved WhatsApp template. Text messages require an open customer-service window; templates can start a conversation. GreenTick templates use named variables only. The to field is cleaned to digits and validated with country code (same rules as dashboard contacts) before calling WhatsApp. Template requests may include scheduledAt. An offset or Z is stored as that instant. A value without a zone is read in the account profile timezone from GET /api-key. Text messages cannot be scheduled.
POST
/
messages
curl --request POST \
--url https://api.greentick.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": "919876543210",
"type": "text",
"phoneNumberRef": "668f1a2b3c4d5e6f7a8b9c0a",
"text": "Hello from GreenTick"
}
'{
"success": true,
"data": {
"messageId": "<string>",
"wamid": "<string>",
"conversationId": "<string>",
"message": {
"id": "668f1a2b3c4d5e6f7a8b9c0d",
"wamid": "<string>",
"direction": "inbound",
"type": "<string>",
"text": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"deliveryStatus": "pending",
"deliveryHistory": [
{
"status": "pending",
"timestamp": "2023-11-07T05:31:56Z",
"errorCode": 123,
"errorTitle": "<string>",
"errorMessage": "<string>"
}
],
"repliedBy": "<string>",
"template": {
"name": "order_update",
"language": "en_US",
"templateCategory": "MARKETING",
"parameterFormat": "NAMED",
"components": [
{}
],
"variableValues": {
"customer_name": "Akshay",
"order_id": "ord_123"
},
"headerComponent": {}
},
"mediaId": "<string>",
"isRevoked": true
}
}
}{
"success": false,
"code": "INVALID_TO",
"message": "to (E.164 phone) is required"
}{
"success": false,
"code": "INVALID_TO",
"message": "to (E.164 phone) is required"
}{
"success": false,
"code": "INVALID_TO",
"message": "to (E.164 phone) is required"
}Authorizations
Body
application/json
- Option 1
- Option 2

