Skip to main content

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 queryReplacement
get_agents_performanceagents_performance
counts_per_braincounts_per_brain_fast
get_meaningful_sessions_count_by_hourget_meaningful_sessions_count_by_hour_range
counts_per_desk_fastNone. Use list_sessions with deskIds.

What changes when you switch:

  • agents_performance returns every field get_agents_performance returned, except the account field is named account_id rather than _account_id. It also adds reply counts, first-response times, and close times.
  • counts_per_brain_fast returns the same fields but accepts fewer filters: deskIds, brainIds, and isTest only. integrationIds, brainVersions, channels, minNumUserMessages, and tags are not available.
  • get_meaningful_sessions_count_by_hour_range takes startDate and endDate instead of a single hour.

Deprecated queries and replacements​

Deprecated QueryReplacement QueryDocumentation
log_sessions_preview_v2list_sessionsCheck the new query
log_session_content_v2get_sessionCheck the new query
get_sessionslist_sessionsCheck the new query
get_session_contentget_sessionCheck the new query
get_sessions_countlist_sessions_countCheck the new query

Key improvements​

The new queries include several improvements:

  1. Simplified naming: More intuitive function names
  2. Better performance: Optimized database queries for faster response times
  3. Enhanced filtering: More filtering options for precise data retrieval
  4. Built-in pagination: list_sessions supports row_limit / row_offset and pairs with list_sessions_count for total row counts

Troubleshooting​

If you need assistance migrating from deprecated queries, please:

  1. Check the linked documentation for each replacement query
  2. Review the migration examples above
  3. Contact support if you have questions or need custom migration guidance