Sessions
Sessions connect your WhatsApp number to Omdaa API. You can create new sessions, display QR codes, check status and list all active sessions.
Create a session
To create a new session, use the create session endpoint. You can also use the Instances APIwhich provides the same functionality in Evolution API format.
"function">curl "keyword">-X POST https://omdaa.com/api/v1/instances/create \
"keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN" \
"keyword">-H "Content"keyword">-Type: application/json" \
"keyword">-d '{
"instanceName": "my"keyword">-instance",
"deviceName": "My Device"
}'Get QR code
"function">curl "keyword">-X GET "https://omdaa.com/api/v1/instances/my class="keyword">-instance/qrcode" \
"keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN"To receive the QR code as an image, add a format parameter:
"function">curl "keyword">-X GET "https://omdaa.com/api/v1/instances/my class="keyword">-instance/qrcode?format=image" \
"keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN"Session status
"function">curl "keyword">-X GET "https://omdaa.com/api/v1/instances/my class="keyword">-instance/connectionState" \
"keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN"List sessions
"function">curl "keyword">-X GET "https://omdaa.com/api/v1/instances" \
"keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN"💡 Note
In Omdaa API, we use the term "Instances" instead of "Sessions" in some endpoints. Both refer to the same thing - a single WhatsApp session.