AAtlas CRM

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.

POST/templates/submit-to-meta

cURL

POST
bash
curl --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"}'

Authorization

Public API OAuth access token

templates:write

Sample Request Body

json
{  "template_name": "welcome_message",  "language_code": "en"}

Sample Response

json
{  "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

CodeDescription
200Template was submitted to Meta successfully.
400Request is invalid, contains unsupported/internal fields, or Meta rejected the submission.
401Public API access token is missing, invalid, expired, or revoked.
403Access token does not include the templates:write scope.
404No active WhatsApp template exists for the token tenant, template_name, and language_code.

Headers

AuthorizationstringRequired

Public API OAuth bearer token. Tenant and actor are derived from this token.

Example: Bearer nfy_public_api_access_token

Content-TypestringRequired

Request body media type.

Example: application/json

Request body

template_namestringRequired

Name of the existing Notifyy WhatsApp template to submit.

Example: welcome_message

language_codestringRequired

Language code of the existing template. Used with template_name to locate the template.

Example: en

Response fields

successboolean

Indicates whether the public API request succeeded.

messagestring

Human-readable public API message.

data.statusstring

Meta submission result status returned by Notifyy.

data.status_codeinteger

HTTP-style status code from the Meta submission flow.

data.meta_template_idstring

Meta template identifier returned when available.

data.messagestring

Meta submission summary.

data.meta_errorobject | null

Meta error details. Null when submission succeeds.