Skip to content

Click2CallGetProviderAdapters

GET click2call/providers/adapters

Returns the adapters the running module actually has, with the capabilities of each and the credential fields it expects.

This is the source of truth for provider setup: the matrix comes from the code, so it cannot drift from reality the way a hand-maintained list does. Use it to build the provider form in the UI and to decide which callsUpdateBy mode a profile may use.

Access Control

Allowed roles: admin, provider.

Request

GET request
GET https://{broker_domain}/click2call/providers/adapters
Authorization: <JWT_TOKEN>
{
  "command": "Click2CallGetProviderAdapters",
  "extID": "1",
  "data": {}
}
const res = await platform.Click2CallGetProviderAdapters({});

Request Data

This method takes no parameters.

Response Data

A ? suffix in credentialsSchema marks an optional field. Capabilities map directly onto what a profile may do: no polling means callsUpdateBy: "REQUEST" is rejected, no webhook means "WEBHOOK" is rejected.

{
  "rows": [
    {
      "name": "twilio",
      "title": "Twilio",
      "capabilities": {
        "polling": true,
        "webhook": true,
        "endCall": true,
        "recordings": true
      },
      "credentialsSchema": {
        "accountSid": "string",
        "authToken": "string",
        "fromNumber": "string",
        "twimlUrl": "string?",
        "record": "boolean?"
      }
    }
  ]
}

Errors

Code Error Description
401 PERMISSION_DENIED Session may not read the provider catalogue