Skip to main content
POST
/
v1
/
whatsapp-alt
/
egress-nodes
Pair an egress node
curl --request POST \
  --url https://api.zavu.dev/v1/whatsapp-alt/egress-nodes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "senderId": "sender_12345",
  "label": "Store iPhone"
}
'
{
  "node": {
    "id": "<string>",
    "senderId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "label": "<string>",
    "exitIp": "<string>",
    "exitCountry": "<string>",
    "net": "<string>",
    "lastSeenAt": "2023-11-07T05:31:56Z"
  },
  "pairing": {
    "token": "<string>",
    "gatewayUrl": "<string>",
    "wsPath": "/egress/agent",
    "expiresAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
senderId
string
required

Sender the egress device belongs to.

label
string
Maximum string length: 100

Response

Egress node created with pairing payload.

node
object
required
pairing
object
required