SuperdindaDocs
Channels

Start pairing

POST
/seats/{uid}/pairing

Opens a provider session and returns the pairing; the first QR/code arrives right away when the provider has it, otherwise through SSE pairing.challenge. Gates: consent given, relationship not refuted, seat activated, channel enabled, no open pairing. Owner only. The first connection that reaches paired starts the free week (SSE trial.started).

Authorization

Bearer
headerAuthorizationBearer <JWT>

Path Parameters

uid*string

seat uid

Formatuuid

Request Body

application/json
  1. body
channel?string
Default"whatsapp"
Value in"whatsapp""instagram"
method?string

qr: scan from the guardian's screen; code: type the 8 chars in Linked Devices

Default"qr"
Value in"qr""code"

Response Body

The pairing, with a challenge when already available

application/json
  1. response
success*true
Value intrue
data*
Example Request
curl -X POST 'http://localhost:3000/seats/497f6eca-6276-4993-bfeb-53cbbbba6f08/pairing' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "success": true,  "data": {    "uid": "string",    "channel": "whatsapp",    "status": "starting",    "method": "qr",    "challenge": {      "kind": "qr",      "image": "string",      "mime": "string",      "expiresAt": "2019-08-24T14:15:22Z"    },    "challengeShownTo": "guardian",    "identity": {      "phone": "string",      "pushName": "string",      "avatarUrl": "string"    },    "reconnectAttempts": 0,    "nextRetryAt": "2019-08-24T14:15:22Z",    "failureReason": "string",    "pairedAt": "2019-08-24T14:15:22Z",    "lastSeenAt": "2019-08-24T14:15:22Z",    "endedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z"  }}