x-api-key header. A key acts as the user who created it: requests see that user’s agents, phone numbers and campaigns, and anything you create through the API belongs to that user.
Base URL
All endpoints in the API reference are relative to:POST /api/call/createBatch is https://api.weya.live/backend/api/call/createBatch.
Create an API key
1
Open API keys
In the weya dashboard, open the profile menu and select API Keys.
2
Create a key
Create a new key and copy it.
3
Store it as a secret
Keep the key in your secret manager or an environment variable, never in source code or in a browser.
Send the key
Add the key to every request in thex-api-key header:
Find your user ID
Some endpoints, such as Upload Campaign CSV and Start Campaign, take auserId. Get it once from your profile, which returns the user that owns the key as data._id:
cURL
Response format
Most endpoints return the same envelope. Checkstatus before you read data:
Authentication errors
Rate limits
Requests are rate limited per client IP address. When you go over a limit, the API returns429 with a message that says how long to wait, and the standard RateLimit response headers show your remaining requests.
Next steps
API quickstart
Launch a campaign and receive results with four requests.
API reference
Every endpoint, with request and response examples.

