Getting Started
Making Your First Request
Now that you have your credentials from the Zorya Portal, let's authenticate and query the Zorya API.
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 portal credentials to the login endpoint:
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