Quick start
Learn the server URL (Base URL) and the API Key to consume the Wazend API, and explore the sessions panel: general settings, API Keys, apps and session sharing.
All Wazend API endpoints start with your server URL (Base URL). To consume the API you need that URL and an API Key, both available in your dashboard.
Server URL
The server URL is the base of all endpoints. You can find it in your Dashboard from Wazend:
https://latam-1.wazend.net/Each endpoint is formed by prepending this URL to the endpoint path. For example, to send a message the full endpoint is:
POST https://latam-1.wazend.net/api/sendTextKeep the trailing slash (/) in mind and always replace the URL and example values with your own.
API Key (X-Api-Key)
The API Key is also created from your dashboard. It is sent in the X-Api-Key header on all API requests:
curl -X POST \
"https://latam-1.wazend.net/api/sendText" \
-H "X-Api-Key: TU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"session": "S0001",
"chatId": "5215551234567@c.us",
"text": "Hello!"
}'Protect your API Key
Never share your API Key or include it in public code or repositories. If it leaks, revoke it and create a new one from the dashboard.
Sessions panel
From the sessions panel in your dashboard you can generally adjust several things about your account and your sessions:
- General settings — session configuration (webhooks, presence, device name, debug mode, metadata, etc.).
- API Keys — create, list, rotate and delete API Keys with per-session scope.
- Create apps — register applications that consume the Wazend API.
- Share the session — your session can be shared so other workspace members can collaborate on it.