Skip to main content
POST
/
v1
/
whatsapp-alt
/
sessions
/
{sessionId}
/
link
Link session to a sender
curl --request POST \
  --url https://api.zavu.dev/v1/whatsapp-alt/sessions/{sessionId}/link \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "senderId": "sender_12345"
}
'
{
  "session": {
    "id": "jd7x2k3m4n5p6q7r8s9t0",
    "egress": {
      "nodeId": "<string>",
      "country": "cl"
    },
    "createdAt": "2023-11-07T05:31:56Z",
    "displayName": "<string>",
    "qrCode": "<string>",
    "phoneNumber": "+56912345678",
    "pushName": "<string>",
    "senderId": "<string>",
    "lastError": "<string>",
    "lastConnectedAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

sessionId
string
required

Body

application/json
senderId
string
required

Sender to attach this session to. The sender's outbound WhatsApp traffic then routes through this session, and inbound messages are attributed to it.

Response

Session linked.

session
object
required