Click2CallGetMyProfiles¶
GET click2call/providerProfile/available/me
Returns the profiles the current manager can actually call with, with the dial rules of each. This is what fills the provider picker next to the call button.
An INDIVIDUAL profile appears only if the manager has a line linked to it. Filtering here
rather than in the UI is what keeps a manager from picking a profile that would fail with
AGENTS_SETTINGS_NOT_FOUND at dial time.
Access Control¶
Allowed roles: admin, leader, manager. The manager is taken from the session.
Request¶
GET https://{broker_domain}/click2call/providerProfile/available/me
Authorization: <JWT_TOKEN>
{
"command": "Click2CallGetMyProfiles",
"extID": "1",
"data": {}
}
const res = await platform.Click2CallGetMyProfiles({});
Request Data¶
This method takes no parameters.
Response Data¶
The method answers with a plain array, not a rows envelope: it is a picker feed, not a paged list. The default profile is marked with isDefault — the UI should preselect it instead of guessing. An INDIVIDUAL profile appears once per linked line, with agentId and agentExternalIdentifier filled in.
[
{
"id": 3,
"name": "Twilio main",
"description": null,
"mode": "COMMON",
"callsUpdateBy": "REQUEST",
"isDefault": true,
"providerName": "twilio",
"icon": "8f2a1c",
"capabilities": { "polling": true, "webhook": true, "endCall": true, "recordings": true },
"dialRules": [
{ "id": 7, "profileId": 3, "name": "UA mobile", "countryCode": "380", "countryName": "Ukraine", "dialPrefix": "9", "dialPostfix": null }
]
},
{
"id": 4,
"name": "CommPeak personal",
"mode": "INDIVIDUAL",
"callsUpdateBy": "WEBHOOK",
"isDefault": false,
"providerName": "commpeak",
"agentId": 12,
"agentExternalIdentifier": "1042",
"capabilities": { "polling": false, "webhook": true, "endCall": false, "recordings": false },
"dialRules": []
}
]
Errors¶
| Code | Error | Description |
|---|---|---|
401 |
PERMISSION_DENIED |
No manager session |