Query sessions
Returns the sessions of a project, paginated with a cursor. Sessions of every lifecycle state are returned; each carries its `state`. Requires `session.read` permission.
POST
Returns the sessions of a project, paginated with a cursor.
Sessions of every lifecycle state are returned; each carries its state.
Requires session.read permission.
oauth2 session.readheader
AuthorizationBearer <token>Scope: session.read
project_id*stringThe unique identifier of the project
Match
^[a-zA-Z0-9_-]+$Request to query the sessions of a project.
application/json- body
Request to query the sessions of a project.
limit?limitRange
1 <= value <= 100Default
20page_token?|Token to retrieve the next page of results.
sorting?filter?array<>Filter criteria for querying sessions.
The list of sessions was returned successfully
application/json- response
Paginated list of sessions.
sessions*array<>next_page_token?|Token to pass as page_token in the next request to fetch the following page.
Absent when there are no more results.
curl -X POST 'https://example.com/sessions/query?project_id=string' \ -H 'Content-Type: application/json' \ -d '{}'{ "sessions": [ { "session_id": "string", "project_id": "string", "state": "building", "user_id": "string", "user": { "user_id": "string", "identifier": "string", "identifier_property": "string", "display": "string" }, "factors": [ { "method": "identifier", "verified_at": "2019-08-24T14:15:22Z", "payload": { "method": "identifier", "user_id": "string" } } ], "assurance_levels": [ "string" ], "metadata": {}, "user_agent": { "fingerprint": "string", "ip": "string" }, "created_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z" } ], "next_page_token": "string"}