Source record · tier 3 vendor-maintained repositories
webex-contact-center-api-samples / reporting-samples / graphql-sample
- Publisher
- WebexSamples (Cisco Systems)
- URL
- https://github.com/WebexSamples/webex-contact-center-api-samples/tree/main/reporting-samples/graphql-sample
- Published
- 2026-09-22
- Updated
- unknown
- Accessed
- 2026-09-22
- HTTP status
- 200
- License
- see repository LICENSE (Cisco sample code); no-redistribution; short excerpts and locators only
Source notes citing this source
- In the Webex Contact Center Search API, task data is stored as Customer Session Records (CSRs) and Customer Activity Records (CARs), queried with taskDetails; agent data is stored as Agent Session Records (ASRs) and Agent Activity Records (AARs), queried with agentSession. in context
- The Webex Contact Center Search API sample README states that a query span may not exceed 13 months, and 30 days for raw CAR and AAR data. in context
- The Webex Contact Center Search API is a GraphQL interface whose taskDetails query covers customer session and activity records (CSR and CAR) and whose agentSession query covers agent session and activity records (ASR and AAR). in context
- A Search API query span may not exceed 13 months, and raw AAR or CAR queries may not exceed 30 days. in context
- The Webex Contact Center GraphQL reporting sample states that Customer Session Record and Call Leg Record pagination supports a maximum of 100,000 records, group-by operations are capped at 10 fields, and total arguments across filters and predicates are limited to 1000. in context
- The Webex Contact Center /search GraphQL API exposes taskDetails for Customer Session and Customer Activity Records, agentSession for Agent Session and Agent Activity Records, and taskLegDetails for Call Leg Records. in context
- The Webex Contact Center GraphQL reporting sample states that a query span cannot exceed 13 months and that raw Agent Activity Record and Customer Activity Record queries are limited to 30-day windows. in context
- When paginating CSR and CLR documents, the Search API returns at most 100K records. in context
- For any Search API query, the from-to span must not exceed 13 months. in context
- When fetching raw AAR or CAR records through the Search API, the from-to span cannot exceed 30 days. in context
- In the Search API, agent data is stored as Agent Session Records (ASRs) and Agent Activity Records (AARs) and is queried with the agentSession GraphQL query. in context
- In the Search API, queue-related data is stored as Call Leg Records (CLRs) and is queried with the taskLegDetails GraphQL query. in context
- In the Search API, task data is stored as Customer Session Records (CSRs) and Customer Activity Records (CARs) and is queried with the taskDetails GraphQL query. in context
- CSRs and CARs hold task (contact) data, while ASRs and AARs hold agent data. in context
- When a query fetches AAR or CAR data, the span between from and to cannot exceed 30 days. in context
- taskDetails needs mandatory from and to arguments: Long epoch timestamps that mark the start and end of the query span. in context
- The taskDetails schema has a composite lastAgent field with an id subfield, and the sample queries select lastAgent.id. in context
- taskDetails can be filtered on the origin field with an equals operator against a phone number in E.164 form, such as +12344565678. in context
- The Search API's taskDetails GraphQL query runs over Customer Session Records (CSR) and Customer Activity Records (CAR). in context
- The Search API returns the last agent as lastAgent.id, so a last-agent flow that feeds that value into Queue To Agent should set Agent Lookup Type to ID, not Email. inferred in context
- For the last-agent lookup, keep from-to within 30 days and sort or limit to the most recent task. A wider span risks the AAR/CAR 30-day limit if the query touches CAR data, and an older 'last agent' is less likely to be relevant. inferred in context
Cite this source record
APA
WarmTransfer. (2026, September 22). webex-contact-center-api-samples / reporting-samples / graphql-sample. WarmTransfer. https://warmtransfer.net/knowledge/sources/gh-webexsamples-wxcc-graphql-sample
BibTeX
@misc{warmtransfer-gh-webexsamples-wxcc-graphql-sample,
title = {webex-contact-center-api-samples / reporting-samples / graphql-sample},
author = {{WarmTransfer}},
year = {2026},
url = {https://warmtransfer.net/knowledge/sources/gh-webexsamples-wxcc-graphql-sample},
note = {WebexSamples (Cisco Systems), accessed 2026-09-22}
}