Session Filtering
The Sessions tab in the app (https://app.voicerun.com/agents/{agentId}/sessions) has a Filter Sessions query field that accepts a SQL-like filter syntax:
status IN (completed, in_progress) AND environment = prod
Each condition is field operator value, and multiple conditions are combined with AND.
Fields#
| Field | Description | Operators | Examples |
|---|---|---|---|
status | Session status: connecting, in_progress, completed, failed | =, IN | status = completed |
environment | Environment name or ID | =, IN | environment = prod |
direction | Call direction | =, IN | direction = inbound |
origin | Where the session came from (e.g. phone, debugger) | =, IN | origin = phone |
session | Session ID | =, IN | session = 456 |
call | Telephony call ID | =, IN | call = 456 |
timestamp | Session creation time | =, >, <, >=, <= | timestamp >= 2026-01-01 |
tags | Session tags (see Tags) | =, IN | tags = region:us-east |
Operators#
=— exact match:status = completedIN (a, b, c)— matches any of the listed values:status IN (completed, failed)>,<,>=,<=— comparisons, useful fortimestampAND— combines conditions.ORis not supported; to match multiple values of one field, useIN.
Quotes around values are optional — environment = prod and environment = 'prod' are equivalent. Use quotes when a value contains spaces.
Date ranges#
Apply two timestamp conditions to filter a range:
timestamp >= 2026-08-01 AND timestamp <= 2026-08-31
Values are parsed as dates in your browser's timezone and converted to UTC before querying.
Filtering by tags#
Tags match on the exact, full tag string in key:value format — there is no partial or prefix matching:
tags = campaign:summer-promo
tags IN (region:us-east, region:us-west)
Notes:
tags IN (...)matches sessions that have any of the listed tags. Requiring multiple tags on the same session is not supported.- The value must match exactly, including any leading or special characters. Tag pills in the session list format values for display (hyphens shown as spaces, long values truncated) — hover a pill to see the exact tag string in the tooltip, and use that in the filter.
Combining filters#
status = completed AND environment = prod AND tags = department:sales AND timestamp >= 2026-08-01
Conditions on different fields are ANDed together. Repeating the same field with = or IN replaces the earlier condition rather than adding to it (only comparison operators like >=/<= combine on one field).
API equivalent#
The query field maps directly to the filters[...] query parameters on the List Sessions endpoint:
| UI query | API request |
|---|---|
status = completed | filters[status][$eq]=completed |
status IN (completed, failed) | filters[status][$in]=completed,failed |
tags = region:us-east | filters[tags][$eq]=region:us-east |
timestamp >= 2026-08-01 | filters[createdAt][$gte]=2026-08-01T00:00:00.000Z |
Note the UI labels environment, session, call, and timestamp correspond to the API filter names agentEnvironmentId, publicId, telephonyCallId, and createdAt.
Related#
- Session Data — List Sessions API
- Tags — Setting tags on sessions
