Returns
Returns a Session object.Example
Parameters
The Custom ID of the session to fetch or create.
This is useful to associate sessions in the Galtea platform with those in your application.
The ID of the version to associate with this session if it needs to be created.
The test case ID. Forbidden when
is_production=True. A non-production session may be created without a test case (e.g. externally ingested traces) — the context will then come from the request rather than the test case.Additional context for the session. Forbidden when
test_case_id is set (the context is derived from the test case).A flag to indicate if the session represents real production traffic. When omitted on a newly created session, the API derives it from
test_case_id presence: no test case means production.