GET
/
v1
/
{account_id}
/
{project_id}
/
conversations
/
concurrency
curl --request GET \
  --url https://api.us-1.platform.polyai.app/v1/{account_id}/{project_id}/conversations/concurrency \
  --header 'x-api-key: <api-key>'
{
  "account_id": "ACCOUNT-t53y16r3",
  "project_id": "PROJECT-f76d75c2",
  "intervals": [
    {
      "variant_id": "satdt",
      "variant_name": "variant_1",
      "language": "en-GB",
      "time": "2022-04-01T16:35:00Z",
      "concurrency": 25
    },
    {
      "variant_id": "satdt",
      "variant_name": "variant_1",
      "language": "en-US",
      "time": "2022-04-01T16:40:00Z",
      "concurrency": 20
    },
    {
      "variant_id": "satdc",
      "variant_name": "variant_2",
      "language": "en-GB",
      "time": "2022-04-01T16:35:00Z",
      "concurrency": 5
    }
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

account_id
string
required

Account ID

project_id
string
required

Project ID

Query Parameters

start_time
string
required

The start of the time for the range of the intervals, in ISO8601 format This is rounded down to the nearest 5-min date-time. start_time and end_time shouldn't be more than 1 week apart

end_time
string
required

The end of the time for the range of the intervals, in ISO8601 format This is rounded up to the nearest 5-min date-time. start_time and end_time shouldn't be more than 1 week apart

client_env
enum<string>
default:
live

If it is set, we would return all conversations under this client_env. Client Environment can be sandbox, pre-release or live

Available options:
sandbox,
pre-release,
live
variant_name
string

If it is set, we would return all conversations under this variant_name. Note that you may only specify either one of the variant_id or variant_name. Also, make sure to encode any spaces in the name with "%20"

variant_id
string

If it is set, we would return all conversations under this variant_id. Note that you may only specify either one of the variant_id or variant_name

language
string

If it is set, we would return all conversations under this language.

phone_number
string

If it is set, we would return all conversations under phone_number.

slice_by
string

If it is set, we slice the result intervals based on the slice_by parameter. You can slice by variant, language or phone_number. At the moment querying with slice_by=language or slice_by=phone_number will result in 501 Not Implemented

Response

200
application/json
OK
account_id
string
required

Customer PolyAI Account ID

project_id
string
required

Customer PolyAI Project ID

intervals
object[]
required

An array of intervals returned in ascending chronological order.