List analytics filter resources
List agents and the selected agent's branches and versions that are available for the requested analytics window and filters.
Endpoint
GET
/api/v1/workspaces/{workspace_id}/analytics/resourcesAuthentication
| Operation class | Authentication | Minimum role | API key |
|---|---|---|---|
| customer-api | Bearer API key or dashboard session cookie; dashboard mutations also require X-CX-Request: 1. | member | Allowed |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workspace_id | path | string | Yes | — |
from | query | string or null | No | — |
to | query | string or null | No | — |
timezone | query | string or null | No | — |
agent_id | query | string or null | No | — |
branch_id | query | string or null | No | — |
version_id | query | string or null | No | — |
source | query | string or null | No | — |
Request body
This operation has no request body.
Example
curl --request GET 'https://operade.ai/api/v1/workspaces/ws_demo/analytics/resources?agent_id=agt_demo' \ --header 'Authorization: Bearer YOUR_API_KEY'
Responses
| Status | Description | Content |
|---|---|---|
4XX | Client Error | application/json: ErrorResponse |
200 | Successful Response | application/json: AnalyticsResourceOptionsResponse |
4XX application/json response schema
| Field path | Type | Reference | Format | Nullable | Required | Enum | Description |
|---|---|---|---|---|---|---|---|
$ | object | ErrorResponse | — | No | Yes | — | — |
error | object | ErrorItem | — | No | Yes | — | — |
error.code | string | — | — | No | Yes | — | — |
error.details | object | — | — | No | No | — | — |
error.message | string | — | — | No | Yes | — | — |
200 application/json response schema
| Field path | Type | Reference | Format | Nullable | Required | Enum | Description |
|---|---|---|---|---|---|---|---|
$ | object | AnalyticsResourceOptionsResponse | — | No | Yes | — | — |
agents | array<AnalyticsAgentOption> | — | — | No | Yes | — | — |
agents[] | object | AnalyticsAgentOption | — | No | Yes | — | — |
agents[].active_branch_id | string or null | — | — | Yes | Yes | — | — |
agents[].active_version_id | string or null | — | — | Yes | Yes | — | — |
agents[].archived_at | string or null | — | date-time | Yes | Yes | — | — |
agents[].id | string | — | — | No | Yes | — | — |
agents[].name | string | — | — | No | Yes | — | — |
branches | array<AnalyticsBranchOption> | — | — | No | Yes | — | — |
branches[] | object | AnalyticsBranchOption | — | No | Yes | — | — |
branches[].archived_at | string or null | — | date-time | Yes | Yes | — | — |
branches[].id | string | — | — | No | Yes | — | — |
branches[].name | string | — | — | No | Yes | — | — |
branches[].tip_version_id | string or null | — | — | Yes | Yes | — | — |
versions | array<AnalyticsVersionOption> | — | — | No | Yes | — | — |
versions[] | object | AnalyticsVersionOption | — | No | Yes | — | — |
versions[].branch_id | string | — | — | No | Yes | — | — |
versions[].created_at | string | — | date-time | No | Yes | — | — |
versions[].id | string | — | — | No | Yes | — | — |
versions[].label | string | — | — | No | Yes | — | — |
Response example
{
"agents": [],
"branches": [],
"versions": []
}Errors
Reviewed common and route-declared errors are summarized here; the list is not exhaustive. Start with the distributed error index to find each code's canonical domain page.
| Status | Code | Description |
|---|---|---|
401 | unauthenticated | Authentication is missing, invalid, or revoked. |
403 | forbidden | The authenticated caller does not have access to this operation. |
404 | not_found | The requested workspace resource was not found. |
422 | validation_failed | The analytics window, filter combination, tab, grouping, or requested resource is invalid. |
