Register a message template
POSThttps://platform.docana.com/api/v1/applications/:id/message-templates/
Validates the pasted definition (a WhatsApp send payload or bare template object) and upserts it into the send-side catalog, scoped to channel: "whatsapp". name and language are derived from the definition, not accepted separately. Re-registering an existing name replaces its definition and implicitly re-enables it. Requires write access to the application.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 500
The registered message template
The request body, query, or path failed validation. See validationErrors.
The API key or session is missing, expired, or malformed.
No write access to the application
A resource referenced by the path does not exist or is not visible to the caller.
The definition is not a valid WhatsApp template
Unexpected server error.