Skip to main content

Returns

Returns a list of Session objects.

Example

sessions = galtea.sessions.list(version_id=version_id, limit=10)

Parameters

version_id
string | list[string]
The ID or IDs of the version(s) to filter sessions by.
test_case_id
string | list[string]
The ID or IDs of the test case(s) to filter sessions by.
custom_id
string | list[string]
The custom ID or IDs to filter sessions by.
test_id
string | list[string]
The ID or IDs of the test(s) to filter sessions by.
from_created_at
str | int
default:"None"
Filter sessions created at or after this timestamp. Accepts ISO 8601 string (e.g., '2024-01-01T00:00:00Z') or Unix timestamp in seconds. Can be used independently or together with to_created_at.
to_created_at
str | int
default:"None"
Filter sessions created at or before this timestamp. Accepts ISO 8601 string (e.g., '2024-12-31T23:59:59Z') or Unix timestamp in seconds. Can be used independently or together with from_created_at.
sort_by_created_at
string
Sort sessions by creation date. Valid values are “asc” and “desc”.
At least one of the 3 parameters (filters) described above must be passed to the method
offset
int
default:"0"
Number of sessions to skip before starting to collect results. Use for pagination.Default: 0 (start from the beginning)
limit
int
default:"1000"
Maximum number of sessions to return in a single request.Default: 1000