Send template message
Changed onSends an approved WhatsApp template message. This is the only message type that reaches recipients that never messaged the business or whose service window is closed.
When the template contains a FLOW button, the request must include the matching button component with sub_type: flow.
Request
- Base URLhttps://messenger-public-api.cogfy.com
- AuthAPI key in header api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Message sent successfully
Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- info
- breaking
request body became required
- breaking
the request property
///became not nullable - breaking
the request property
///became not nullable - breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
///became required - breaking
the request property
/became required - breaking
the request property
//became required - breaking
the request property
/became required - breaking
the request property
became required - breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - breaking
the
////request property type changed fromstringto no type - info
added the new optional request property
/// - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
the response property
became required for the status - info
the
response's property pattern^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$was added for the status - info
added the required property
to the response with the status
- breaking