SautiDesk
SautiDesk API
Channels and templates

Set WhatsApp settings

PUT
/v1/desk/whatsapp/settings

Sets which WhatsApp number the desk uses (number_id) and which queue receives its messages (queue_id).

Requires: desk.admin scope, workspace owner or admin.

Authorization

bearerAuth
AuthorizationBearer <token>

A SautiDesk API key. An owner or admin makes it under Settings in SautiDesk for a named person and picks the scopes. The key is shown once. Send it as Authorization: Bearer <key>. It acts as that person and as nobody else.

In: header

Request Body

application/json

Response

OK

Example

{  "number_id": "b0115061-3d05-4f38-9ad8-38cb3cc28550",  "e164": "+254712345678",  "phone_number_id": "cfe03fe0-f54f-4f29-9e10-0d48d28829af",  "waba_id": "3afc867a-7f4f-478d-963b-729cf4dd9b8c",  "configured": false,  "queue_id": "c70c2d37-4d65-4ba4-9843-5e8aaf2dae40",  "queue_name": "Support"}
FieldTypeDescription
number_idstring (uuid)The id of the WhatsApp number to use.
e164string
phone_number_idstring
waba_idstring
configuredrequiredbooleanTrue once the email settings have been filled in.
queue_idstringThe id of the queue that receives what arrives here.
queue_namestring
curl -X PUT "https://api.sautidesk.com/v1/desk/whatsapp/settings" \  -H "Content-Type: application/json" \  -d '{    "number_id": "b0115061-3d05-4f38-9ad8-38cb3cc28550",    "queue_id": "c70c2d37-4d65-4ba4-9843-5e8aaf2dae40"  }'