Getting Started
Making Your First Request
Now that you have your credentials from the Zorya Portal, let's authenticate and query the Zorya API.
Notice: All tests in this documentation and API reference are executed with live production credentials. Sent messages will be delivered to real recipients and their cost will be deducted from your account balance.
Prefer clicking over cURL? The same flow can be done entirely in the browser — see Using the API Reference.
1. Obtain Your Access Token
Send your API credentials to the login endpoint:
Important: Use your API credentials (API username and password). Web platform login credentials are not valid for generating a token.
curl -X POST "https://gateway.zorya.com/api/v1/User/login" \
-H "Content-Type: application/json" \
-d '{
"username": "<YOUR_USERNAME>",
"userPassword": "<YOUR_PASSWORD>"
}'
Save the returned data field as <YOUR_ACCESS_TOKEN>.
2. Query Your User Profile
curl -X GET "https://gateway.zorya.com/api/v1/User/me" \
-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
3. Look Up a Phone Number
curl -X POST "https://gateway.zorya.com/api/v1/LookUp" \
-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"to": "521234567890"
}'
Next Steps
- Explore the API Reference to see all available endpoints.
Last modified on