Zorya APIZorya API
  • Go to the Portal
  • Sign Up
  • Documentation
  • API Reference
  • Tables
  • Copyright © 2026 Zorya Telecom, S.A. de C.V.
Overview
Getting Started
    AuthenticationMaking Your First RequestUsing the API Reference
Getting Started

Using the API Reference

This page explains how to use the interactive API Reference to explore and test the Zorya API. No prior API experience is assumed.

1. Navigating the API Reference

Open the API Reference. The left sidebar groups every endpoint by topic (for example USERS & SESSIONS, SMS, WHATSAPP). Click a topic, then click an endpoint to open its page. Use the Previous / Next buttons at the bottom to move between endpoints one at a time.

Each endpoint page shows:

  • The HTTP method and path (for example POST /api/v1/User/login).
  • A description of what it does.
  • The expected parameters, request body, and example responses.
  • A panel on the right with a code snippet (switch languages with the dropdown, e.g. cURL, JavaScript, Python) and the Example Request Body.

2. Testing an endpoint ("Test" button)

Every endpoint page has a Test button (with a play icon) in the panel on the right. It looks like this:

Test button in the code snippet panel

Clicking it opens the test dialog, which is split in two:

  • Left side — build your request: the method and URL at the top, a Send button, and collapsible sections for Authentication, Path Parameters, Query Params, Headers, and Body (the Body section only appears when the endpoint accepts one).
  • Right side — see the result: status code, response body, and the exact request that was sent.

Test dialog with request body, Send button, and response body

In the screenshot above:

  1. Request Body — the JSON payload on the left (edit it before sending).
  2. Send button — top right, sends the request.
  3. Response Body — the result on the right (status code, response body, and the exact request sent).

Fill in the fields you need, press Send, and read the response on the right. You can re-send as many times as you like after changing values.

The Body text area comes pre-filled with a valid example request. Replace the placeholder values (such as <YOUR_USERNAME>) with your own data before pressing Send. If the Body ever appears empty, click Use Example → default in the Body header to load it.

For Top-Up, LookUp, Messaging, Users & Sessions, SMS, RCS and WhatsApp message sends (including WhatsApp templates), the dialog opens with the DEFAULT request type already selected in the Body header — so there is nothing to switch. Use the Body header dropdown to change to another request type when needed:

RCS — opens with Send Text selected:

RCS request type selector

WhatsApp — opens with Text Message selected:

WhatsApp request type selector

WhatsApp templates — opens with Create Template - Basic Request selected:

WhatsApp template request type selector

3. Request types in this API

This API uses only three HTTP methods:

MethodUsed forExample
GETReading data. No request body.GET /api/v1/User/me — your user profile
POSTActions that send data (authenticate, send messages, lookups, top-ups). Always carries a JSON body.POST /api/v1/User/login — generate a token
DELETERemoving something.DELETE /api/v1/whatsapp/{phoneNumber}/templates/{templateId} — delete a WhatsApp template

There are no PUT or PATCH endpoints in this API.

Where each piece of data goes depends on the endpoint:

  • Path parameters — part of the URL itself, shown in {braces}. Type the value into the Path Parameters section. Example: in GET /api/v1/TopUp/status/{transactionId}, write the transaction id into the transactionId field.
  • Query parameters — appended to the URL after ?. Fill them in the Query Params section. Example: GET /api/v1/WhatsApp/media needs from and mediaId, producing a URL like /api/v1/WhatsApp/media?from=00000&mediaId=12345.
  • Headers — metadata of the request, edited in the Headers section. The one you will use most is Authorization (see step 4 below). For POST requests the dialog already sets Content-Type: application/json.
  • Request body — the JSON payload of POST requests, edited in the Body section. Example for login:
Code
{ "username": "<YOUR_USERNAME>", "userPassword": "<YOUR_PASSWORD>" }

And an example for a phone lookup (POST /api/v1/LookUp):

Code
{ "to": "521234567890" }

The same requests as cURL, for use outside the docs:

curl -X POST "https://gateway.zorya.com/api/v1/User/login" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "<YOUR_USERNAME>",
    "userPassword": "<YOUR_PASSWORD>"
  }'
curl -X GET "https://gateway.zorya.com/api/v1/User/me" \
  -H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
curl -X POST "https://gateway.zorya.com/api/v1/LookUp" \
  -H "Authorization: Bearer <YOUR_ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "521234567890"
  }'

4. Full flow: generate a token and test an authenticated endpoint

All endpoints except the login require a Bearer token (see Authentication). Complete flow using only the docs:

  1. In the API Reference, open USERS & SESSIONS → Get a signed token for a user (POST /api/v1/User/login).
  2. Click Test. The Body already contains {"username": ..., "userPassword": ...} — replace the two values with your portal credentials.
  3. Press Send. A 200 response returns {"success": true, ..., "data": "<YOUR_ACCESS_TOKEN>"}. Copy the value of data — that is your token (valid for 24 hours).
  4. Open any authenticated endpoint, for example USERS & SESSIONS → Get the current active user (GET /api/v1/User/me), and click Test.
  5. In the dialog, open the Authentication section, select the BearerAuth scheme, and paste your token when asked (as Bearer <YOUR_ACCESS_TOKEN>).
  6. Press Send. A 200 response with your user profile confirms the token works. From now on, that same token authenticates every request until it expires.
Last modified on September 24, 2026
Making Your First Request
On this page
  • 1. Navigating the API Reference
  • 2. Testing an endpoint ("Test" button)
  • 3. Request types in this API
  • 4. Full flow: generate a token and test an authenticated endpoint
JSON
JSON