VoiceStatistics

Export Inbound Calls statistics to CSV file

Download Inbound Calls statistics in CSV file. The endpoint supports filtration like GET /api/v1/voice/statistics/inbound, also the default values of grouping and interval fields are the same as in GET /api/v1/voice/statistics/inbound.

GET
/api/v1/voice/statistics/inbound/csv

Query Parameters

country_code?array<string>

Optional filter. Restricts statistics to selected destination country codes. Accepts a list of ISO alpha-2 country codes in upper case.

dids?array<string>

Optional filter. Restricts statistics to selected DID numbers. Only statistics related to the provided DID numbers will be returned.

group_by?array<>

Defines grouping dimensions: date — groups statistics by time intervals; country — groups statistics by country codes; did — groups statistics by destination DID numbers. If provided an empty list, by default the time grouping will be used.

interval?string

Defines aggregation granularity. If time grouping is selected, and no value is provided for interval, by default the day interval will be used.

Value in"hour" | "day" | "week" | "month"
period_end?string

Time period filter, determines the end of the period. Accepts string with time either as UNIX timestamp, or in format 2006-01-02T15:04:05Z07:00.

period_start?string

Time period filter, determines the start of the period. Accepts string with time either as UNIX timestamp, or in format 2006-01-02T15:04:05Z07:00.

sort_by?string

Ordering parameter. Defines by which field the data will be sorted. If parameter is not provided, will be used entity's default ordering. To use entity's default sorting, pass _default as value.

Value in"did" | "country_code" | "date" | "total_count" | "billable_count" | "total_duration" | "total_cost" | "acd" | "asr" | "country_code,date" | "date,country_code"
sort_order?string

Ordering parameter. Defines the order of sorting (asc or desc). If parameter is not provided, will be used entity's default ordering.

Value in"asc" | "desc"

Header Parameters

Authorization*string

Your API token

Response Body

text/csv

text/csv

text/csv

text/csv

curl -X GET "https://dev-refactor-api-e.voipenv.uk/api/v1/voice/statistics/inbound/csv" \  -H "Authorization: string"
"string"
{
  "code": 0,
  "error_details": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  },
  "message": "string",
  "request_id": "string",
  "status": "error"
}
{
  "code": 0,
  "error_details": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  },
  "message": "string",
  "request_id": "string",
  "status": "error"
}
{
  "code": 0,
  "error_details": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  },
  "message": "string",
  "request_id": "string",
  "status": "error"
}
Form Call To Action

Contact us

You can always send us a message or email. Weʼd be happy to help you out.