Skip to content

Click2CallGetProfiles

GET click2call/providerProfiles/list

Returns the provider profiles of the brand with the provider name and icon joined in. This is the administration list — for the picker a manager sees, use Click2CallGetMyProfiles.

Access Control

Allowed role: admin, within the brand of the caller.

Request

GET request
GET https://{broker_domain}/click2call/providerProfiles/list?limit=50&orderBy=%5B%22routingPriority%22%2C%22ASC%22%5D
Authorization: <JWT_TOKEN>
{
  "command": "Click2CallGetProfiles",
  "extID": "1",
  "data": {
    "limit": 50,
    "orderBy": [
      "routingPriority",
      "ASC"
    ]
  }
}
const res = await platform.Click2CallGetProfiles({
  limit: 50,
  orderBy: [
    "routingPriority",
    "ASC"
  ]
});

Request Data

Field Type Required Description
limit int No Page size, 1..1000, default 100
offset int No Rows to skip
orderBy array No Sorting, for example ["id", "DESC"]
where object No Filters, see Table filter syntax

Response Data

{
  "rows": [
    {
      "id": 3,
      "brand": "default",
      "providerId": 1,
      "providerName": "twilio",
      "providerIcon": "8f2a1c",
      "name": "Twilio main",
      "mode": "COMMON",
      "callsUpdateBy": "REQUEST",
      "credentials": { "accountSid": "AC...", "fromNumber": "+15550001111" },
      "allowedCountries": ["UA", "PL"],
      "blockedCountries": null,
      "routingPriority": 100,
      "isDefault": true,
      "status": "ENABLED"
    }
  ],
  "count": [ { "id": 1 } ]
}

Errors

Code Error Description
401 PERMISSION_DENIED Not an admin session