This works for any white label.
Yes, you need to choose your white label server. But you also need to specify your integration token
Here is another example on a site that is not connected to external authorization.
https://beta.promptchat.com/api/clients/update - site_url
I5ESNP8aGVWFEhhpRmls3aNmmjSDqM3vootoRR5nB6R6v0iP8m64SemO3DXUGwjS - external_api_calls_token_smschat_whatsapp
curl --location 'https://beta.promptchat.com/api/clients/update' \
--header 'Authorization: Bearer I5ESNP8aGVWFEhhpRmls3aNmmjSDqM3vootoRR5nB6R6v0iP8m64SemO3DXUGwjS' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"phone":"380963175216",
"note": "Created from API",
"variables": {
"send-message": "Test sms from Postman",
"first_name":"Nina",
"country":"Albania"
},
"add_tags":["test", "newTag"],
"department_id": 1
}'
Also, we discovered that if the "department_id" is specified in the request, then the client is created, but we receive a message in response -> "message": "Server Error".
We have already fixed it and it will be available for update in the next hour.