Skip to main content
GET
Compare a cohort with the rest

Authorizations

Authorization
string
header
required

A project token (apsio_pt_v0...), which reads exactly one project, or an OAuth access token issued for the API, which reads what its user can. Access tokens issued for Apsio's MCP server are accepted only from the MCP server itself.

Path Parameters

projectId
string
required
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Example:

"0192f3a4-0000-7000-8000-00000000a101"

Query Parameters

from
string<date-time>

Start of the time range, inclusive (RFC 3339). Defaults to the range end minus the default length.

Example:

"2026-10-01T00:00:00Z"

to
string<date-time>

End of the time range, exclusive (RFC 3339). Defaults to now.

Example:

"2026-10-08T00:00:00Z"

app_id
string

Only this app.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
release
string

Only this release.

Maximum string length: 128
outcome
enum<string>

crashed, abnormal_exit, or ok (every session that neither crashed nor ended abnormally).

Available options:
crashed,
abnormal_exit,
ok
device_model
string

device.model.identifier, exactly.

Maximum string length: 128
Example:

"iPhone17,1"

os_version
string

os.version, exactly.

Maximum string length: 64
build
enum<string>

Which builds: release (the default: every build but a debug one, TestFlight included, and data that does not say), debug (development builds from Xcode or Android Studio: apsio.app.install.source is development), or all.

Available options:
release,
debug,
all
has_error
enum<string>

Only sessions with (true) or without (false) handled errors.

Available options:
true,
false
issue_id
string

Only sessions with an occurrence of this issue in the time range.

Pattern: ^[A-Za-z0-9._:-]{1,128}$
endpoint_method
string

With endpoint_host and endpoint_template: one network endpoint.

Pattern: ^[A-Z_]{1,16}$
endpoint_host
string
Maximum string length: 255
endpoint_template
string

Only sessions with a request to this endpoint in the time range (/network/endpoints lists them).

Maximum string length: 256
endpoint_failed
enum<string>

With the endpoint: only sessions where a request to it failed (5xx or no response).

Available options:
true,
false
screen
string

Only sessions that loaded this screen (app.screen.name) in the time range.

Required string length: 1 - 256
min_ttid_ms
integer | null

With screen: only loads of it with a TTID of at least this many milliseconds.

Required range: 0 <= x <= 600000
min_ttfd_ms
integer | null

With screen: only loads of it with a TTFD (app.screen.load.ttfd) of at least this many milliseconds; loads without one never match.

Required range: 0 <= x <= 600000
stopped
string

Only sessions whose last screen load in the time range was this screen (app.screen.name): where they stopped, as Journeys' drop-offs.

Required string length: 1 - 256
has_failed_request
enum<string>

Only sessions with (true) or without (false) a failed HTTP request (5xx or no response).

Available options:
true,
false
has_hang
enum<string>

Only sessions with (true) or without (false) a hang (iOS) or ANR (Android) the SDK saw live (spec 6.3), launch hangs included.

Available options:
true,
false
has_replay
enum<string>

Only sessions with (true) or without (false) a stored replay.

Available options:
true,
false
user
string

Only this app user's sessions: those that carried this user.hash, the hash the app passes to setUser (spec 11).

Pattern: ^[A-Za-z0-9+/=_.:-]{1,256}$
Example:

"u_4f2a9c"

capture_request
string

Only the sessions this capture request released (a device request id, spec 15.5), newest first by default.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
trigger
string

Only sessions in which this trigger fired, as the policy names it (crash, error, anr, rage_tap, dead_tap, event:, rule:; spec 15.4).

Pattern: ^(crash|error|anr|rage_tap|dead_tap|event:[A-Za-z0-9._-]{1,64}|rule:[a-z0-9._-]{1,64})$
Example:

"rule:checkout-5xx"

flag
string

Only sessions where this feature flag was evaluated (setFeatureFlag).

Required string length: 1 - 128
flag_variant
string

With flag: only sessions where it had this variant.

Maximum string length: 128
dimensions
string

Comma-separated, from device_model, os_version, release, country, feature_flag, network_type. Default: all.

Maximum string length: 200
Example:

"device_model,os_version"

limit
integer
default:5

Values per dimension, 1 to 20.

Required range: 1 <= x <= 20
min_sessions
integer
default:2

Leave out values with fewer cohort sessions than this; with rank=share, fewer sessions on both sides together.

Required range: 1 <= x <= 1000
rank
enum<string>
default:difference

difference: only the over-represented values, the biggest difference in share first. share: every value, the biggest share in the cohort first, then in the rest (who the cohort is, against everyone else).

Available options:
difference,
share

Response

The over-represented values per dimension, or with rank=share the biggest.

from
string
required

RFC 3339 time in UTC with up to nanosecond precision.

Example:

"2026-10-04T10:15:00.431000000Z"

to
string
required

RFC 3339 time in UTC with up to nanosecond precision.

Example:

"2026-10-04T10:15:00.431000000Z"

cohort
object
required
rest
object
required
comparable
boolean
required

False when the cohort or the rest is empty: no values are listed.

note
string | null
required

Why nothing could be compared.

dimensions
object[]
required