orvachat

Sessions

Pair With Phone Number

POST/api/v1/session/pairphone

Pair with a phone number instead of a QR code. Returns a code to type on the phone.

Parameters

  • PhonestringRequired

    The phone number to pair, with country code (e.g. 923001234567).

Code Examples

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

Response Example

200 OK
{
  "code": 200,
  "data": {
    "LinkingCode": "9H3J-H3J8"
  },
  "success": true
}