Templates
Submit template to Meta
Submit an existing WhatsApp template from Notifyy CRM to Meta for review.
Overview
When a WhatsApp template is created in Notifyy, it is saved in DRAFT status. Use this API to submit that draft template to Meta. After successful submission, Notifyy updates the template status to IN_REVIEW. It requires public api oauth access token authentication and the templates:write scope.
/templates/submit-to-metacURL
POSTcurl --request POST \ --url 'https://api.atlascrm.dev/v1/templates/submit-to-meta' \ --header 'Authorization: Bearer nfy_public_api_access_token' \ --header 'Content-Type: application/json' \ --data '{ "template_name": "welcome_message", "language_code": "en"}'Sample Request Body
{ "template_name": "welcome_message", "language_code": "en"}Sample Response
{ "success": true, "message": "Template submitted to Meta successfully", "data": { "status": "SUCCESS", "status_code": 200, "meta_template_id": "123456789012345", "message": "Submitted", "meta_error": null }}Status Codes
| Code | Description |
|---|---|
| 200 | Template was submitted to Meta successfully. |
| 400 | Request is invalid, contains unsupported/internal fields, or Meta rejected the submission. |
| 401 | Public API access token is missing, invalid, expired, or revoked. |
| 403 | Access token does not include the templates:write scope. |
| 404 | No active WhatsApp template exists for the token tenant, template_name, and language_code. |
Headers
Public API OAuth bearer token. Tenant and actor are derived from this token.
Example: Bearer nfy_public_api_access_token
Request body media type.
Example: application/json
| Object | Description |
|---|---|
Authorization string | RequiredPublic API OAuth bearer token. Tenant and actor are derived from this token. Example: Bearer nfy_public_api_access_token |
Content-Type string | RequiredRequest body media type. Example: application/json |
Request body
Name of the existing Notifyy WhatsApp template to submit.
Example: welcome_message
Language code of the existing template. Used with template_name to locate the template.
Example: en
| Object | Description |
|---|---|
template_name string | RequiredName of the existing Notifyy WhatsApp template to submit. Example: welcome_message |
language_code string | RequiredLanguage code of the existing template. Used with template_name to locate the template. Example: en |
Response fields
Indicates whether the public API request succeeded.
Human-readable public API message.
Meta submission result status returned by Notifyy.
HTTP-style status code from the Meta submission flow.
Meta template identifier returned when available.
Meta submission summary.
Meta error details. Null when submission succeeds.
| Object | Description |
|---|---|
success boolean | Indicates whether the public API request succeeded. |
message string | Human-readable public API message. |
data.status string | Meta submission result status returned by Notifyy. |
data.status_code integer | HTTP-style status code from the Meta submission flow. |
data.meta_template_id string | Meta template identifier returned when available. |
data.message string | Meta submission summary. |
data.meta_error object | null | Meta error details. Null when submission succeeds. |