Deprecated queries
Overview
This page lists GraphQL queries that have been removed, and queries that are deprecated and will be removed in a future release. Both sections name the replacement to use.
Migration required
Removed queries now return an error. Update your integrations to use the replacements below.
Removed queries
These queries backed the retired analytics pages and no longer exist.
| Removed query | Replacement |
|---|---|
get_agents_performance | agents_performance |
counts_per_brain | counts_per_brain_fast |
get_meaningful_sessions_count_by_hour | get_meaningful_sessions_count_by_hour_range |
counts_per_desk_fast | None. Use list_sessions with deskIds. |
What changes when you switch:
agents_performancereturns every fieldget_agents_performancereturned, except the account field is namedaccount_idrather than_account_id. It also adds reply counts, first-response times, and close times.counts_per_brain_fastreturns the same fields but accepts fewer filters:deskIds,brainIds, andisTestonly.integrationIds,brainVersions,channels,minNumUserMessages, andtagsare not available.get_meaningful_sessions_count_by_hour_rangetakesstartDateandendDateinstead of a singlehour.
Deprecated queries and replacements
| Deprecated Query | Replacement Query | Documentation |
|---|---|---|
log_sessions_preview_v2 | list_sessions | Check the new query |
log_session_content_v2 | get_session | Check the new query |
get_sessions | list_sessions | Check the new query |
get_session_content | get_session | Check the new query |
get_sessions_count | list_sessions_count | Check the new query |
Key improvements
The new queries include several improvements:
- Simplified naming: More intuitive function names
- Better performance: Optimized database queries for faster response times
- Enhanced filtering: More filtering options for precise data retrieval
- Built-in pagination:
list_sessionssupportsrow_limit/row_offsetand pairs withlist_sessions_countfor total row counts
Troubleshooting
If you need assistance migrating from deprecated queries, please:
- Check the linked documentation for each replacement query
- Review the migration examples above
- Contact support if you have questions or need custom migration guidance