> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.getvoxai.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.getvoxai.com/_mcp/server.

# Get concurrent calls

GET https://api.getvoxai.com/v1/usage/concurrency

Returns the highest number of calls that were active at the same time in each hour of one day (`hourly_peaks`, always 24 items), with the limit of the plan. The day is today by default and can be any day from 13 months ago to today, in the `timezone`. With `period` it also returns `history` for that period: the peak, a series of intervals, the seconds spent at the limit, the calls rejected because every line was busy and a heatmap by weekday and hour. `agent_id` restricts the history to one agent, and `from` and `to` are only valid with `period=custom`. A limit of 0 means the plan has no limit. Required scope: `usage:read`. With a test key (`vx_test_`) it behaves exactly as with a live key and consumes nothing.

Reference: https://docs.getvoxai.com/api-reference/usage/concurrency

## Authentication

- `Authorization` header (bearer token, required) — API key created by an Owner or Admin of the organization. Never in the query string.

## Request

### Query parameters

- `date` (string, optional) — The day to read, YYYY-MM-DD, in the `timezone`. Default: today. From 13 months ago to today.
- `timezone` (string, optional) — IANA time zone the period is computed in, for example `Europe/Rome` (default). It decides where days start and end.
- `period` (enum, optional) — Adds `history` to the response for this period, in the `timezone`; `date` still applies only to `hourly_peaks`. Same values as `period` of `GET /calls`: `today`, `7d`, `30d`, `last_month`, `6m`, `12m`, `custom`. `custom` needs `from` and `to`, at most 13 months.
  - Allowed values: `today`, `7d`, `30d`, `last_month`, `6m`, `12m`, `custom`
- `from` (string, optional) — First day of a `custom` period, YYYY-MM-DD, in the `timezone`. Only with `period=custom`.
- `to` (string, optional) — Last day of a `custom` period, YYYY-MM-DD, included. Only with `period=custom`.
- `agent_id` (string, optional) — Restricts `history` to one agent of the organization. It needs `period`.

### Headers

- `VoxAI-Version` (enum, optional) — API version for this request; defaults to the version the key is pinned to.
  - Allowed values: `2026-10-01`

## Response

### 200

Successful response.

- `object` ("concurrency", required) — Always `concurrency`.
- `date` (string, required) — The day `hourly_peaks` refers to, in the `timezone`.
- `timezone` (string, required) — The time zone the day and its hours are in.
- `limit` (integer, required) — Maximum number of simultaneous calls allowed by the plan; 0 when the plan has no limit.
- `unlimited` (boolean, required) — `true` when the plan has no limit (`limit` is 0).
- `hourly_peaks` (list of UsageConcurrencyGetResponsesContentApplicationJsonSchemaHourlyPeaksItems, required) — The highest number of simultaneous calls in each local hour of the day.
- `history` (UsageConcurrencyGetResponsesContentApplicationJsonSchemaHistory, optional) — Present only when `period` is given. Data is refreshed every 5 minutes.

## Errors

### 400 Bad Request Error

Possible errors: * `invalid_api_version`: The `VoxAI-Version` header names a version that does not exist. Use one of the versions listed in the `VoxAI-Version` parameter, or omit the header to use the version the key is pinned to. * `invalid_period`: The period is not valid: `from` or `to` with a named period, `custom` without both, a day that does not exist, or `from` after `to`. Use a named `period`, or `period=custom` with `from` and `to` (YYYY-MM-DD, `to` included). * `invalid_request`: The path, query or body does not match the schema of the operation: a missing or unknown field, a wrong type, a value out of range. Fix the request. `details` lists each problem as `{ location, path, message }`: `location` is `params`, `query` or `body` and `path` points to the field. * `invalid_timezone`: The `timezone` is not a known IANA time zone. Use a name such as `Europe/Rome`, or omit it (default `Europe/Rome`). * `period_too_long`: The `custom` period is longer than 13 months. Split the range into shorter periods.

- `error` (string, required) — Human-readable message in English.
- `code` (string, required) — Stable machine-readable code; decide what to do from this, never from the message.
- `requestId` (string, required) — Same value as the X-Request-Id response header; quote it when contacting support.
- `details` (any, optional) — Extra information, only on some codes. For `invalid_request` it is a list of `{ location, path, message }`, one per field (`location` is `params`, `query` or `body`) with a problem; for the other codes its fields depend on the code (for example `details.limit`).

### 401 Unauthorized Error

Possible errors: - `invalid_api_key`: The `Authorization` header is missing, malformed, or carries a key that does not exist, was revoked or has expired. Send `Authorization: Bearer vx_live_…` (or `vx_test_…`) with an active key. Create a new key in the app if this one expired.

- `error` (string, required) — Human-readable message in English.
- `code` (string, required) — Stable machine-readable code; decide what to do from this, never from the message.
- `requestId` (string, required) — Same value as the X-Request-Id response header; quote it when contacting support.
- `details` (any, optional) — Extra information, only on some codes. For `invalid_request` it is a list of `{ location, path, message }`, one per field (`location` is `params`, `query` or `body`) with a problem; for the other codes its fields depend on the code (for example `details.limit`).

### 403 Forbidden Error

Possible errors: - `feature_not_available`: The plan of the organization does not include the API, or the feature this operation needs. Upgrade the plan in the app. Reads and deletions stay available after a downgrade. - `insufficient_scope`: The key does not have the scope this operation requires (written in the description of the operation). Create a key with the required scope (an Owner or Admin can do it in the app), or ask for the scope to be added. - `ip_not_allowed`: The key has an IP allow-list and the request comes from an address that is not on it. Call from an allowed address, or add this address to the key in the app. - `organization_suspended`: The organization that owns the key is suspended. Contact the organization Owner: nothing can be done through the API until the organization is active again.

- `error` (string, required) — Human-readable message in English.
- `code` (string, required) — Stable machine-readable code; decide what to do from this, never from the message.
- `requestId` (string, required) — Same value as the X-Request-Id response header; quote it when contacting support.
- `details` (any, optional) — Extra information, only on some codes. For `invalid_request` it is a list of `{ location, path, message }`, one per field (`location` is `params`, `query` or `body`) with a problem; for the other codes its fields depend on the code (for example `details.limit`).

### 404 Not Found Error

Possible errors: - `not_found`: The resource does not exist, or it belongs to another organization: the two cases give the same answer on purpose. Check the id. Ids come from the list operations of the same organization.

- `error` (string, required) — Human-readable message in English.
- `code` (string, required) — Stable machine-readable code; decide what to do from this, never from the message.
- `requestId` (string, required) — Same value as the X-Request-Id response header; quote it when contacting support.
- `details` (any, optional) — Extra information, only on some codes. For `invalid_request` it is a list of `{ location, path, message }`, one per field (`location` is `params`, `query` or `body`) with a problem; for the other codes its fields depend on the code (for example `details.limit`).

### 429 Too Many Requests Error

Possible errors: - `rate_limited`: Too many requests: over the per-minute limit of this key or of the whole organization (see `rate_limits` in `GET /me`), or over a limit of the operation itself, such as the hourly limit on webhook tests and resends. Wait for the number of seconds in the `Retry-After` header, then retry. Spread requests over time.

- `error` (string, required) — Human-readable message in English.
- `code` (string, required) — Stable machine-readable code; decide what to do from this, never from the message.
- `requestId` (string, required) — Same value as the X-Request-Id response header; quote it when contacting support.
- `details` (any, optional) — Extra information, only on some codes. For `invalid_request` it is a list of `{ location, path, message }`, one per field (`location` is `params`, `query` or `body`) with a problem; for the other codes its fields depend on the code (for example `details.limit`).

### 500 Internal Server Error

Possible errors: - `internal_error`: An unexpected error on our side. Retry once after a few seconds. For writes marked as retriable, retry with the same `Idempotency-Key`, so the operation is never done twice; for the other writes, first read the state of the resource, then retry with a NEW key only if the operation did not happen. If it persists, contact support with the `requestId`.

- `error` (string, required) — Human-readable message in English.
- `code` (string, required) — Stable machine-readable code; decide what to do from this, never from the message.
- `requestId` (string, required) — Same value as the X-Request-Id response header; quote it when contacting support.
- `details` (any, optional) — Extra information, only on some codes. For `invalid_request` it is a list of `{ location, path, message }`, one per field (`location` is `params`, `query` or `body`) with a problem; for the other codes its fields depend on the code (for example `details.limit`).

### 503 Service Unavailable Error

Possible errors: - `api_not_configured`: The API is not enabled on this service. Contact support.

- `error` (string, required) — Human-readable message in English.
- `code` (string, required) — Stable machine-readable code; decide what to do from this, never from the message.
- `requestId` (string, required) — Same value as the X-Request-Id response header; quote it when contacting support.
- `details` (any, optional) — Extra information, only on some codes. For `invalid_request` it is a list of `{ location, path, message }`, one per field (`location` is `params`, `query` or `body`) with a problem; for the other codes its fields depend on the code (for example `details.limit`).

## Types

### UsageConcurrencyGetResponsesContentApplicationJsonSchemaHourlyPeaksItems

- `hour` (integer, required) — Hour of the day, from 0 to 23, in the `timezone`.
- `peak` (integer, required) — Highest number of simultaneous calls in that hour.

### UsageConcurrencyGetResponsesContentApplicationJsonSchemaHistory

Present only when `period` is given. Data is refreshed every 5 minutes.

- `period` (UsageConcurrencyGetResponsesContentApplicationJsonSchemaHistoryPeriod, required) — The period the history covers.
- `agent_id` (string, required, nullable) — The agent the history is limited to; `null` for the whole organization.
- `granularity` (enum, required) — Length of each interval of `series`. `15m`: 15 minutes, for periods up to 2 days that start within the last 7 days. `hour`: one hour, up to 8 days. `day`: one day, beyond.
  - Allowed values: `15m`, `hour`, `day`
- `peak` (UsageConcurrencyGetResponsesContentApplicationJsonSchemaHistoryPeak, required) — The highest number of simultaneous calls and the first minute (or hour, for periods older than a week) it happened.
- `series` (list of UsageConcurrencyGetResponsesContentApplicationJsonSchemaHistorySeriesItems, required) — Every interval of the period up to now, with zeros where nothing happened.
- `seconds_at_limit` (integer, required, nullable) — Seconds spent with every line busy, against the current plan limit. Null for one agent or without a limit.
- `rejected_lines_busy` (integer, required) — Calls rejected in the whole period because all the lines were busy.
- `heatmap` (list of UsageConcurrencyGetResponsesContentApplicationJsonSchemaHistoryHeatmapItems, required) — Highest peak by local weekday (Monday = 1) and hour; only cells with calls.

### UsageConcurrencyGetResponsesContentApplicationJsonSchemaHistoryPeriod

The period the history covers.

- `preset` (enum, required) — The named period used, as in the `period` parameter: `today`, `7d`, `30d`, `last_month`, `6m`, `12m`, `custom`.
  - Allowed values: `today`, `7d`, `30d`, `last_month`, `6m`, `12m`, `custom`
- `from` (datetime, required) — Start of the period, ISO 8601 UTC.
- `to` (datetime, required) — ISO 8601, UTC. Exclusive end.
- `timezone` (string, required) — The time zone the period was computed in.

### UsageConcurrencyGetResponsesContentApplicationJsonSchemaHistoryPeak

The highest number of simultaneous calls and the first minute (or hour, for periods older than a week) it happened.

- `value` (integer, required) — Highest number of simultaneous calls in the period.
- `at` (datetime, required, nullable) — When the peak first happened, to the minute (to the hour for periods older than a week). `null` when there is no peak time.

### UsageConcurrencyGetResponsesContentApplicationJsonSchemaHistorySeriesItems

- `start` (datetime, required) — Start of the interval, ISO 8601 UTC.
- `peak` (integer, required) — Highest number of simultaneous calls in the interval.
- `rejected_lines_busy` (integer, required) — Calls rejected in the interval because all the lines were busy.

### UsageConcurrencyGetResponsesContentApplicationJsonSchemaHistoryHeatmapItems

- `weekday` (integer, required) — Day of the week, from 1 (Monday) to 7 (Sunday), in the `timezone`.
- `hour` (integer, required) — Hour of the day, from 0 to 23, in the `timezone`.
- `peak` (integer, required) — Highest number of simultaneous calls in that weekday and hour.

## Examples

### Hourly peaks of one day

**Response**

```json
{
  "object": "concurrency",
  "date": "2026-11-16",
  "timezone": "Europe/Rome",
  "limit": 3,
  "unlimited": false,
  "hourly_peaks": [
    {
      "hour": 0,
      "peak": 0
    },
    {
      "hour": 1,
      "peak": 0
    },
    {
      "hour": 2,
      "peak": 0
    },
    {
      "hour": 3,
      "peak": 0
    },
    {
      "hour": 4,
      "peak": 0
    },
    {
      "hour": 5,
      "peak": 0
    },
    {
      "hour": 6,
      "peak": 0
    },
    {
      "hour": 7,
      "peak": 1
    },
    {
      "hour": 8,
      "peak": 2
    },
    {
      "hour": 9,
      "peak": 3
    },
    {
      "hour": 10,
      "peak": 3
    },
    {
      "hour": 11,
      "peak": 2
    },
    {
      "hour": 12,
      "peak": 1
    },
    {
      "hour": 13,
      "peak": 1
    },
    {
      "hour": 14,
      "peak": 2
    },
    {
      "hour": 15,
      "peak": 3
    },
    {
      "hour": 16,
      "peak": 2
    },
    {
      "hour": 17,
      "peak": 2
    },
    {
      "hour": 18,
      "peak": 1
    },
    {
      "hour": 19,
      "peak": 0
    },
    {
      "hour": 20,
      "peak": 0
    },
    {
      "hour": 21,
      "peak": 0
    },
    {
      "hour": 22,
      "peak": 0
    },
    {
      "hour": 23,
      "peak": 0
    }
  ]
}
```

**SDK Code**

```python Hourly peaks of one day
import requests

url = "https://api.getvoxai.com/v1/usage/concurrency"

querystring = {"date":"2026-11-16","timezone":"Europe/Rome"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Hourly peaks of one day
const url = 'https://api.getvoxai.com/v1/usage/concurrency?date=2026-11-16&timezone=Europe%2FRome';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Hourly peaks of one day
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.getvoxai.com/v1/usage/concurrency?date=2026-11-16&timezone=Europe%2FRome"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Hourly peaks of one day
require 'uri'
require 'net/http'

url = URI("https://api.getvoxai.com/v1/usage/concurrency?date=2026-11-16&timezone=Europe%2FRome")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Hourly peaks of one day
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.getvoxai.com/v1/usage/concurrency?date=2026-11-16&timezone=Europe%2FRome")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Hourly peaks of one day
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.getvoxai.com/v1/usage/concurrency?date=2026-11-16&timezone=Europe%2FRome', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Hourly peaks of one day
using RestSharp;

var client = new RestClient("https://api.getvoxai.com/v1/usage/concurrency?date=2026-11-16&timezone=Europe%2FRome");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Hourly peaks of one day
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.getvoxai.com/v1/usage/concurrency?date=2026-11-16&timezone=Europe%2FRome")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### History of last month for one agent

**Response**

```json
{
  "object": "concurrency",
  "date": "2026-11-16",
  "timezone": "Europe/Rome",
  "limit": 3,
  "unlimited": false,
  "hourly_peaks": [
    {
      "hour": 0,
      "peak": 0
    },
    {
      "hour": 1,
      "peak": 0
    },
    {
      "hour": 2,
      "peak": 0
    },
    {
      "hour": 3,
      "peak": 0
    },
    {
      "hour": 4,
      "peak": 0
    },
    {
      "hour": 5,
      "peak": 0
    },
    {
      "hour": 6,
      "peak": 0
    },
    {
      "hour": 7,
      "peak": 1
    },
    {
      "hour": 8,
      "peak": 2
    },
    {
      "hour": 9,
      "peak": 3
    },
    {
      "hour": 10,
      "peak": 3
    },
    {
      "hour": 11,
      "peak": 2
    },
    {
      "hour": 12,
      "peak": 1
    },
    {
      "hour": 13,
      "peak": 1
    },
    {
      "hour": 14,
      "peak": 2
    },
    {
      "hour": 15,
      "peak": 3
    },
    {
      "hour": 16,
      "peak": 2
    },
    {
      "hour": 17,
      "peak": 2
    },
    {
      "hour": 18,
      "peak": 1
    },
    {
      "hour": 19,
      "peak": 0
    },
    {
      "hour": 20,
      "peak": 0
    },
    {
      "hour": 21,
      "peak": 0
    },
    {
      "hour": 22,
      "peak": 0
    },
    {
      "hour": 23,
      "peak": 0
    }
  ],
  "history": {
    "period": {
      "preset": "last_month",
      "from": "2026-09-30T22:00:00Z",
      "to": "2026-10-31T23:00:00Z",
      "timezone": "Europe/Rome"
    },
    "agent_id": "reception-studio-rossi",
    "granularity": "day",
    "peak": {
      "value": 3,
      "at": "2026-10-02T08:00:00Z"
    },
    "series": [
      {
        "start": "2026-09-30T22:00:00Z",
        "peak": 2,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-01T22:00:00Z",
        "peak": 3,
        "rejected_lines_busy": 1
      },
      {
        "start": "2026-10-02T22:00:00Z",
        "peak": 0,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-03T22:00:00Z",
        "peak": 0,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-04T22:00:00Z",
        "peak": 3,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-05T22:00:00Z",
        "peak": 1,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-06T22:00:00Z",
        "peak": 2,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-07T22:00:00Z",
        "peak": 3,
        "rejected_lines_busy": 1
      },
      {
        "start": "2026-10-08T22:00:00Z",
        "peak": 1,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-09T22:00:00Z",
        "peak": 0,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-10T22:00:00Z",
        "peak": 0,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-11T22:00:00Z",
        "peak": 1,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-12T22:00:00Z",
        "peak": 2,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-13T22:00:00Z",
        "peak": 3,
        "rejected_lines_busy": 1
      },
      {
        "start": "2026-10-14T22:00:00Z",
        "peak": 1,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-15T22:00:00Z",
        "peak": 2,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-16T22:00:00Z",
        "peak": 0,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-17T22:00:00Z",
        "peak": 0,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-18T22:00:00Z",
        "peak": 2,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-19T22:00:00Z",
        "peak": 3,
        "rejected_lines_busy": 1
      },
      {
        "start": "2026-10-20T22:00:00Z",
        "peak": 1,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-21T22:00:00Z",
        "peak": 2,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-22T22:00:00Z",
        "peak": 3,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-23T22:00:00Z",
        "peak": 0,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-24T22:00:00Z",
        "peak": 0,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-25T23:00:00Z",
        "peak": 3,
        "rejected_lines_busy": 1
      },
      {
        "start": "2026-10-26T23:00:00Z",
        "peak": 1,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-27T23:00:00Z",
        "peak": 2,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-28T23:00:00Z",
        "peak": 3,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-29T23:00:00Z",
        "peak": 1,
        "rejected_lines_busy": 0
      },
      {
        "start": "2026-10-30T23:00:00Z",
        "peak": 0,
        "rejected_lines_busy": 0
      }
    ],
    "seconds_at_limit": null,
    "rejected_lines_busy": 5,
    "heatmap": [
      {
        "weekday": 1,
        "hour": 9,
        "peak": 2
      },
      {
        "weekday": 1,
        "hour": 10,
        "peak": 3
      },
      {
        "weekday": 2,
        "hour": 10,
        "peak": 2
      },
      {
        "weekday": 3,
        "hour": 11,
        "peak": 2
      },
      {
        "weekday": 4,
        "hour": 9,
        "peak": 3
      },
      {
        "weekday": 5,
        "hour": 15,
        "peak": 1
      }
    ]
  }
}
```

**SDK Code**

```python History of last month for one agent
import requests

url = "https://api.getvoxai.com/v1/usage/concurrency"

querystring = {"agent_id":"reception-studio-rossi","period":"last_month","timezone":"Europe/Rome"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript History of last month for one agent
const url = 'https://api.getvoxai.com/v1/usage/concurrency?agent_id=reception-studio-rossi&period=last_month&timezone=Europe%2FRome';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go History of last month for one agent
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.getvoxai.com/v1/usage/concurrency?agent_id=reception-studio-rossi&period=last_month&timezone=Europe%2FRome"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby History of last month for one agent
require 'uri'
require 'net/http'

url = URI("https://api.getvoxai.com/v1/usage/concurrency?agent_id=reception-studio-rossi&period=last_month&timezone=Europe%2FRome")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java History of last month for one agent
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.getvoxai.com/v1/usage/concurrency?agent_id=reception-studio-rossi&period=last_month&timezone=Europe%2FRome")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php History of last month for one agent
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.getvoxai.com/v1/usage/concurrency?agent_id=reception-studio-rossi&period=last_month&timezone=Europe%2FRome', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp History of last month for one agent
using RestSharp;

var client = new RestClient("https://api.getvoxai.com/v1/usage/concurrency?agent_id=reception-studio-rossi&period=last_month&timezone=Europe%2FRome");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift History of last month for one agent
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.getvoxai.com/v1/usage/concurrency?agent_id=reception-studio-rossi&period=last_month&timezone=Europe%2FRome")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```