cURL
curl --request POST \ --url https://app.kapso.ai/api/v1/whatsapp_templates/{template_id}/submit \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "whatsapp_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }'
{ "status": "success", "message": "Template submitted successfully", "template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "template_name": "<string>", "submission_id": "<string>", "data": { "id": "template-123abc", "name": "appointment_reminder", "language_code": "en_US", "category": "UTILITY", "status": "approved", "content": "Hello {{1}}, your appointment is confirmed for {{2}}.", "parameter_count": 2, "business_account_id": "123456789012345", "whatsapp_config_ids": [ "config-123abc", "config-456def" ], "components": [ { "type": "HEADER", "format": "TEXT", "text": "<string>", "example": {}, "buttons": [ {} ] } ], "metadata": {}, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Submits a draft template to WhatsApp for approval. Only draft templates can be submitted.
API key required for all endpoints
Optional specific WhatsApp configuration to use for submission
Optional customer ID whose WhatsApp config to use for submission
Template submitted successfully
"success"
"Template submitted successfully"
WhatsApp submission ID
Show child attributes
Was this page helpful?