Zorya APIZorya API
  • Go to the Portal
  • Sign Up
  • Documentation
  • API Reference
  • Tables
  • Copyright © 2026 Zorya Telecom, S.A. de C.V.
USERS & SESSIONS
    Get a signed token for a userpostGet the current active usergetList all active sessions for the current usergetRevoke a session by SessionIdpost
LOOKUP
    Consult Msisdn informationpost
TOP-UP
    Send a regular Top Up to a userpostSend a direct Top Up to a user with specified ProductpostGet Statusget
SMS
    Send a Basic SMS to a userpostGet Sms Statusget
RCS
    Send an RCS MessagepostGet RCS Statusget
MESSAGING
    Send SMS or RCS MessagepostGet Message Statusget
WHATSAPP
    MESSAGES
      Text Messagepost
    STATUS
      Get WhatsApp Statusget
    MEDIA
      Get MediaIdgetGenerate Header HandlepostUpload Media Completepost
    TEMPLATES
      List WhatsApp TemplatesgetCreate a WhatsApp TemplatepostUpdate a WhatsApp TemplatepostDelete a WhatsApp Templatedelete
      Categories
    Flows
    Usernames
WEBHOOKS
    MO
    MT
    NOTIFICATIONS
Core API
Core API

TEMPLATES


List WhatsApp Templates

GET
https://gateway.zorya.com
/api/v1/whatsapp/{phoneNumber}/templates

Retrieve Template

Retrieve WhatsApp templates from your Business Account. You can get all templates or filter by specific criteria such as template name or ID. This endpoint allows you to view template details, status, and approval information.

EndPoints (URL)

Retrieve All Templates

Code
/api/v1/whatsapp/{phone-number}/templates

Retrieve Templates with Filter

Code
/api/v1/whatsapp/{phone-number}/templates/filter

HTTP Method

GET

Common Parameters

ParameterData TypeDescriptionRequired?
phone-number
StringWhatsApp Business Account phone number (path parameter)Yes

Query Parameters (Filter Endpoint)

ParameterData TypeDescriptionRequired?
templateName
StringFilter by specific template nameNo
templateId
StringFilter by specific template IDNo
status
StringFilter by template status: APPROVED, PENDING, REJECTEDNo
category
StringFilter by category: MARKETING, UTILITY, AUTHENTICATIONNo
language
StringFilter by language code (e.g., "es_MX", "en_US")No
limit
IntegerMaximum number of templates to return (default: 100)No
offset
IntegerNumber of templates to skip for paginationNo

Template Status Values

StatusDescriptionCan Send?
APPROVEDTemplate approved by Meta and ready to useYes
PENDINGTemplate submitted and awaiting Meta approvalNo
REJECTEDTemplate rejected by MetaNo
PAUSEDTemplate temporarily paused by MetaNo
DISABLEDTemplate disabled by businessNo
PENDING_DELETIONTemplate marked for deletionNo

Request Examples

Retrieve All

GET /api/v1/whatsapp/15551234567/templates

Retrieves all templates for the specified phone number.

Filter by Name

GET /api/v1/whatsapp/15551234567/templates/filter?templateName=welcome_message

Retrieves templates with the specific name "welcome_message".

Filter by Status

GET /api/v1/whatsapp/15551234567/templates/filter?status=APPROVED&category=MARKETING

Retrieves all approved marketing templates.

Filter with Pagination

GET /api/v1/whatsapp/15551234567/templates/filter?limit=20&offset=40

Retrieves 20 templates starting from the 40th template (pagination).

Response Fields Description

FieldTypeDescription
idStringUnique template identifier from Meta
nameStringTemplate name as specified during creation
statusStringCurrent approval status of the template
categoryStringTemplate category (MARKETING, UTILITY, AUTHENTICATION)
languageStringLanguage code of the template
createdAtDateTimeTemplate creation timestamp
updatedAtDateTimeLast modification timestamp
approvalDateDateTimeDate when template was approved (if applicable)
componentsArrayArray of template components (header, body, footer, buttons)
qualityRatingStringMeta's quality rating: GREEN, YELLOW, RED
rejectionReasonStringReason for rejection if status is REJECTED
totalCountIntegerTotal number of templates (for pagination)
hasMoreBooleanWhether there are more templates to retrieve

Quality Rating System

RatingDescriptionImpact
GREENHigh quality template with good user engagementNormal delivery limits
YELLOWMedium quality template with average engagementReduced delivery limits
REDLow quality template with poor engagementSeverely limited or paused delivery
UNKNOWNNew template without sufficient dataNormal limits until data is available

Common Use Cases

Monitoring Template Status

Use the retrieve endpoint to check if your newly created templates have been approved:

Code
GET /api/v1/whatsapp/{phone-number}/templates/filter?status=PENDING

Finding Specific Templates

Locate a template by name for sending messages:

Code
GET /api/v1/whatsapp/{phone-number}/templates/filter?templateName=order_confirmation

Quality Management

Monitor template performance by checking quality ratings:

Code
GET /api/v1/whatsapp/{phone-number}/templates/filter?status=APPROVED

Pagination for Large Accounts

For businesses with many templates, use pagination:

Code
GET /api/v1/whatsapp/{phone-number}/templates/filter?limit=50&offset=100

Error Codes

CodeDescription
200
Success - Templates retrieved
400
Bad Request - Invalid parameters
401
Unauthorized - Invalid authentication
403
Forbidden - Insufficient permissions
404
Not Found - Phone number or template not found
429
Too Many Requests - Rate limit exceeded
500
Internal Server Error
GET/api/v1/whatsapp/{phoneNumber}/templates
curl https://gateway.zorya.com/api/v1/whatsapp/:phoneNumber/templates \ --header 'Authorization: Bearer <token>'
Example Responses
{ "success": true, "data": { "templates": [ { "id": "1234567890123456", "name": "welcome_message", "status": "APPROVED", "category": "MARKETING", "language": "es_MX", "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-16T14:20:00Z", "approvalDate": "2024-01-16T14:20:00Z", "components": [ { "type": "BODY", "text": "Hola Carlos, bienvenido a nuestra tienda!", "example": { "body_text": [ [ "Carlos" ] ] } } ], "qualityRating": "GREEN" }, { "id": "1234567890123457", "name": "promo_offer", "status": "PENDING", "category": "MARKETING", "language": "es_MX", "createdAt": "2024-01-17T09:15:00Z", "updatedAt": "2024-01-17T09:15:00Z", "components": [ { "type": "HEADER", "format": "TEXT", "text": "Promocion especial 25% OFF", "example": { "header_text": [ "25% OFF" ] } }, { "type": "BODY", "text": "Aprovecha 25% de descuento en toda la tienda hasta 31 de enero.", "example": { "body_text": [ [ "25", "31 de enero" ] ] } }, { "type": "FOOTER", "text": "No valido con otras promociones" }, { "type": "BUTTONS", "buttons": [ { "type": "URL", "text": "Ver productos", "url": "https://tienda.com/products" } ] } ] } ], "totalCount": 25, "hasMore": true } }
json
application/json

Create a WhatsApp Template
MEDIAWhatsApp Docs