Skip to content

Click2CallGetCallWindows

GET click2call/callWindows/list

Returns the calling windows of the brand. The * row is the fallback for destinations without their own rule; the rest are country-specific.

Access Control

Allowed roles: admin, leader.

Request

GET request
GET https://{broker_domain}/click2call/callWindows/list?limit=100&orderBy=%5B%22countryIso%22%2C%22ASC%22%5D
Authorization: <JWT_TOKEN>
{
  "command": "Click2CallGetCallWindows",
  "extID": "1",
  "data": {
    "limit": 100,
    "orderBy": [
      "countryIso",
      "ASC"
    ]
  }
}
const res = await platform.Click2CallGetCallWindows({
  limit: 100,
  orderBy: [
    "countryIso",
    "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"]
count array No Row count aggregate, ["id"]
where object No Filters, see Table filter syntax

Response Data

{
  "rows": [
    {
      "id": 5,
      "brand": "default",
      "countryIso": "US",
      "timezone": null,
      "allowedFrom": "08:00",
      "allowedTo": "21:00",
      "weekdays": [1, 2, 3, 4, 5],
      "description": null,
      "status": "ENABLED"
    },
    {
      "id": 6,
      "brand": "default",
      "countryIso": "*",
      "timezone": null,
      "allowedFrom": "09:00",
      "allowedTo": "20:00",
      "weekdays": null,
      "description": "Default window",
      "status": "ENABLED"
    }
  ]
}

Errors

Code Error Description
401 PERMISSION_DENIED Session may not read calling windows