Dataflow

Manage Dataflow Functions.

Get current queue KPI summary

post

Retrieve KPI metrics for one or multiple queues within a specified time range. When multiple queues are specified, the system returns their averaged KPI metrics.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
start_timestring · date-timeOptional

The start time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T00:00:00-04:00).

Example: 2025-09-28T00:00:00-04:00
end_timestring · date-timeOptional

The end time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T15:00:00-04:00).

Example: 2025-09-28T15:00:00-04:00
Responses
post
/dataflow/queues/summary

Get queue call timeseries

post

Retrieve call timeseries data for a specific queue within a specified time range. The data is returned in intervals specified by the interval field. Maximum supported time range is 24 hours.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
queuestringOptional

Queue number.

Example: 8000
start_timestring · date-timeOptional

The start time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T00:00:00-04:00).

Example: 2025-09-28T00:00:00-04:00
end_timestring · date-timeOptional

The end time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T15:00:00-04:00).

Example: 2025-09-28T15:00:00-04:00
intervalstringOptional

Interval for aggregating timeseries points. Supported values: 1h, 2h, 3h, 4h, 6h, 8h

Example: 1h
Responses
post
/dataflow/queues/timeseries

Get agent queue summary

post

Retrieve summary metrics for a specific agent in a specific queue within a given time range. Maximum supported time range is 24 hours.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
queuestringOptional

Queue number.

Example: 8000
agentstringOptional

Agent number.

Example: 101
start_timestring · date-timeOptional

The start time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T00:00:00-04:00).

Example: 2025-09-28T00:00:00-04:00
end_timestring · date-timeOptional

The end time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T15:00:00-04:00).

Example: 2025-09-28T15:00:00-04:00
Responses
post
/dataflow/queues/agent/summary

Get agent queue timeseries

post

Retrieve segmented timeseries metrics for a specific agent in a specific queue within a given time range. The maximum supported time range is 24 hours. Returned data is grouped into time intervals defined by the interval parameter.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
queuestringOptional

Queue number.

Example: 8000
agentstringOptional

Agent number.

Example: 101
start_timestring · date-timeOptional

The start time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T00:00:00-04:00).

Example: 2025-09-28T00:00:00-04:00
end_timestring · date-timeOptional

The end time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T15:00:00-04:00).

Example: 2025-09-28T15:00:00-04:00
intervalstringOptional

Interval for aggregating timeseries points. Supported values: 1h, 2h, 3h, 4h, 6h, 8h

Example: 1h
Responses
post
/dataflow/queues/agent/timeseries

Get calls timeseries

post

Retrieve the call volume time series within a specified time range.

  • Supports up to 365 days range and a minimum of 1 day.

  • If the range is 1 day, results are grouped hourly (24 intervals).

  • If the range is multiple days, results are grouped daily.

  • Returned data includes total, answered, and not answered call counts.

  • Tenant users do not need to specify tenants and can only query their own data.

  • System administrators can specify multiple tenant IDs, or leave tenants empty to query all tenants.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
tenantsinteger[]Optional

Array of tenant IDs.

  • For tenant users, this field is ignored.
  • For system administrators, leave empty to query all tenants.
Example: [1030655834964623400,1030655834964623400]
start_timestring · date-timeOptional

The start time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T00:00:00-04:00).

Example: 2025-09-28T00:00:00-04:00
end_timestring · date-timeOptional

The end time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T15:00:00-04:00).

Example: 2025-09-28T15:00:00-04:00
intervalstringOptional

Interval for aggregating timeseries points. Supported values: 1h, 2h, 3h, 4h, 6h, 8h

Example: 1h
Responses
post
/dataflow/analytics/calls/timeseries

Get call history analytics

post

Retrieve detailed call history analytics within a specified time range.

  • Supports up to 365 days range.

  • Allows filtering by caller (from), callee (to), duration, status, and session ID.

  • Supports pagination via top and skip.

  • Time fields (start_time, end_time, start_hour_of_day, end_hour_of_day) must include timezone information (e.g., +08:00).

  • The status field is an enumeration with possible values: NONE, ANSWERED, NOT_ANSWERED.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
countbooleanOptional

Use the $count=true query option to include a count of entities that match the filter criteria.

Default: false
skipinteger · int32Optional

Use the skip query parameter to set the number of items to skip at the start of a collection.

Default: 0
topinteger · int32 · min: 1 · max: 100Optional

Use the top query parameter to specify the page size of the result set.

Default: 100
Body
fromstringOptional

Caller number.

Example: 100
tostringOptional

Callee number.

Example: 110
start_durationintegerOptional

Call duration from start time in seconds.

Example: 100
end_durationintegerOptional

Call duration until end time in seconds.

Example: 200
start_hour_of_dayintegerOptional

Specify the start hour of the call time range (0–23).

Example: 0
end_hour_of_dayintegerOptional

Specify the end hour of the call time range (1–24).

Example: 24
statusstring · enumOptional

Call status.

Possible values:
start_timestring · date-timeRequired

The start time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T00:00:00-04:00).

Example: 2025-09-28T00:00:00-04:00
end_timestring · date-timeRequired

The end time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T15:00:00-04:00).

Example: 2025-09-28T15:00:00-04:00
session_idstringOptional

Unique session ID for the call.

Example: 1040099039162400768
Responses
post
/dataflow/analytics/calls/history

Get call User history analytics

post

Retrieve detailed call user history analytics within a specified time range.

  • Supports up to 365 days range.

  • Allows filtering by caller (from), callee (to), duration, status, and session ID.

  • Supports pagination via top and skip.

  • Time fields (start_time, end_time, start_hour_of_day, end_hour_of_day) must include timezone information (e.g., +08:00).

  • The status field is an enumeration with possible values: NONE, ANSWERED, NOT_ANSWERED.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
countbooleanOptional

Use the $count=true query option to include a count of entities that match the filter criteria.

Default: false
skipinteger · int32Optional

Use the skip query parameter to set the number of items to skip at the start of a collection.

Default: 0
topinteger · int32 · min: 1 · max: 100Optional

Use the top query parameter to specify the page size of the result set.

Default: 100
Body
start_durationintegerOptional

Call duration from start time in seconds.

Example: 100
end_durationintegerOptional

Call duration until end time in seconds.

Example: 200
start_hour_of_dayintegerOptional

Specify the start hour of the call time range (0–23).

Example: 0
end_hour_of_dayintegerOptional

Specify the end hour of the call time range (1–24).

Example: 24
statusstring · enumOptional

Call status.

Possible values:
start_timestring · date-timeOptional

The start time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T00:00:00-04:00).

Example: 2025-09-28T00:00:00-04:00
end_timestring · date-timeOptional

The end time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T15:00:00-04:00).

Example: 2025-09-28T15:00:00-04:00
userstringOptional

User number.

Example: 101
directionstring · enumOptional

Call direction type, indicating the routing path of the call.

Possible values:
destinationstringOptional

Actual address of the callee, e.g., "sip:[email protected]:9002".

Responses
post
/dataflow/analytics/calls/user/history

Retrieve Call History Details

post

Retrieve detailed call history for the specified session_id.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
session_idstringRequired

The session ID of the call to retrieve

Body
objectOptional

Optional filters or additional request parameters

Responses
post
/dataflow/analytics/calls/history/{session_id}

Retrieve Call History Details by Session ID

post

Query detailed call history for a specific session_id.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
session_idintegerRequired

The session ID of the call to retrieve.

Body
objectOptional

Optional filters or additional request parameters

Responses
post
/dataflow/analytics/calls/user/history/{session_id}

Get Report Job List

get

Retrieve the list of scheduled report job.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
filterstringOptional

Use the filter query parameter to retrieve just a subset of a collection.

countbooleanOptional

Use the $count=true query option to include a count of entities that match the filter criteria.

Default: false
orderbystringOptional

Use the orderby query parameter to specify the sort order of the items returned from server.
The default order is ascending order.

skipinteger · int32Optional

Use the skip query parameter to set the number of items to skip at the start of a collection.

Default: 0
topinteger · int32 · min: 1 · max: 100Optional

Use the top query parameter to specify the page size of the result set.

Default: 100
Responses
get
/dataflow/report_jobs

Create Report Job

post

Create a new analytics report task.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
typestring · enumOptional

Report type, string enum.

Possible values:
formatstring · enumOptional

Report file format:CSV、HTML

Example: CSVPossible values:
schedule_namestringOptional

Report Job name

start_timestringOptional

Start time; task will not run before this time

Example: 2025-09-30T10:00:00-04:00
end_timestringOptional

End time

Example: 2025-09-30T12:00:00-04:00
cron_exprstringOptional

gocron string, e.g.: Every day at 00:01 = 1 0 * * * Every month on 1st at 02:03 = 3 2 1 * * Every Tuesday at 01:02 = 2 1 * * 2

activebooleanOptional

Whether the task is active

Example: true
recipientsstringOptional

Recipient emails; multiple emails separated by semicolon

Example: [email protected];[email protected]
timezonestringOptional

Time zone, e.g., Asia/Shanghai

paramsone ofOptional
or
or
or
or
or
or
or
or
or
or
or
Responses
post
/dataflow/report_jobs

Retrieve Report Job Details

get

Get detailed information of a report execution job specified by id.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
get
/dataflow/report_jobs/{id}

Update Report Job

post

Update an existing analytics report Job. {id} is the report Jon ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Body
typestring · enumOptional

Report type, string enum.

Possible values:
formatstring · enumOptional

Report file format:CSV、HTML

Example: CSVPossible values:
schedule_namestringOptional

Report Job name

start_timestring · date-timeOptional

The start time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T00:00:00-04:00).

Example: 2025-09-28T00:00:00-04:00
end_timestring · date-timeOptional

The end time of the report period.
Must include timezone in RFC3339 format (e.g. 2025-09-28T15:00:00-04:00).

Example: 2025-09-28T15:00:00-04:00
cron_exprstringOptional

gocron string, e.g.: Every day at 00:01 = 1 0 * * * Every month on 1st at 02:03 = 3 2 1 * * Every Tuesday at 01:02 = 2 1 * * 2

activebooleanOptional

Whether the task is active

Example: true
recipientsstringOptional

Recipient emails; multiple emails separated by semicolon

Example: [email protected];[email protected]
time_zonestringOptional

Time zone, e.g., Asia/Shanghai

paramsone ofOptional
or
or
or
or
or
or
or
or
or
or
or
Responses
post
/dataflow/report_jobs/{id}

No content

Delete a Report Job

post

Permanently delete the report execution task specified by id.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
post
/dataflow/report_jobs/{id}/destroy

No content

Retrieve Report Execution Logs

get

Get detailed information of a report execution job specified by id.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
filterstringOptional

Use the filter query parameter to retrieve just a subset of a collection.

countbooleanOptional

Use the $count=true query option to include a count of entities that match the filter criteria.

Default: false
orderbystringOptional

Use the orderby query parameter to specify the sort order of the items returned from server.
The default order is ascending order.

skipinteger · int32Optional

Use the skip query parameter to set the number of items to skip at the start of a collection.

Default: 0
topinteger · int32 · min: 1 · max: 100Optional

Use the top query parameter to specify the page size of the result set.

Default: 100
Responses
get
/dataflow/report_list

Delete a report log

post

Delete a specific report log entry by its unique identifier.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
post
/dataflow/report_list/{id}/destroy

No content

Last updated