Skip to main content
POST
Switch a number on or off

Authorizations

Authorization
string
header
required

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

Path Parameters

external_ref
string
required

Your own id for the customer business, set when you created it.

pnid
string
required

The WhatsApp phone number id (phone_number_id).

Body

application/json
assistant_id
string

The id of the agent that answers on this number.

on
boolean

False pauses the number. Default true.

force
boolean

Switch on even when no agent answers.

Response

Success