Calls

Set the active voice provider (superadmin)

POST
/api/calls/providers/active

Switches the active voice provider for the organization to either twilio or sinch. The target provider must already be configured (credentials present); otherwise the call is rejected. Superadmin only.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/calls/providers/active" \  -H "Content-Type: application/json" \  -d '{    "provider": "sinch"  }'
{  "success": true,  "message": "Configuration saved"}