Channels
The open pairing
GET
Bearerheader
AuthorizationBearer <JWT>uid*stringseat uid
Format
uuidThe pairing
application/json- response
success*trueValue in
truedata*Example Request
curl -X GET 'http://localhost:3000/seats/497f6eca-6276-4993-bfeb-53cbbbba6f08/pairing'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" }}Enable a channel on the seat POST
Contracts the channel add-on at today's price. The seat must be active. Owner only.
Start pairing POST
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`).
