orvachat

Sessions

Connect Session

POST/api/v1/session/connect

Open the WhatsApp connection (starts pairing when the number is logged out). The body is ignored; events are set on the Developer API page.

Parameters

No parameters.

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/session/connect" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Response Example

200 OK
{
  "code": 200,
  "data": {
    "details": "Connected!",
    "jid": "923001234567.0:[email protected]"
  },
  "success": true
}