Skip to content

Open app

Get session details

GET
/sessions/{session_id}
curl --request GET \
--url 'https://api.aggregator.gg/v1/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?sub_operator_ref=brand-01' \
--header 'Authorization: Bearer <token>'

Retrieve metadata about a previously-created session.

Platform accounts send sub_operator_ref to pick the brand: the one the session was launched with. Without it the read resolves your default brand and answers 404; see Platform accounts for the default brand.

A provider that requires access approval needs current support approval for the exact organization bound to the authenticated operator key. Unbound keys cannot infer an organization. For a platform key, the approval of the platform’s organization covers its brands; a suspended or retired brand is refused. The default catalog omits unapproved games (direct game/stakes lookup returns 404). Launches and launcher re-reads return PROVIDER_ACCESS_REQUIRED (403) on denial; storage uncertainty returns PROVIDER_ACCESS_UNAVAILABLE (503). Requests for other providers keep their existing access policy.

session_id
required
string format: uuid
sub_operator_ref
string

Example

brand-01

Platform accounts only. The brand that owns this session - the same ref you sent on POST /v1/sessions. Omitting it resolves your platform’s default brand (404 unless the session belongs to that brand); sending it from a non-platform key is a 400 (E6006).

Same format and error codes as sub_operator_ref on POST /v1/sessions.

Session details.

Media typeapplication/json
object
session_id
required
string format: uuid
status
required
string
Allowed values: open closed expired
game_id
required
string format: uuid
provider_code
required
string
player_id
string
currency
string
country
string
created_at
required
string format: date-time
closed_at
string format: date-time
nullable

Example

{
"status": "open"
}

Missing, invalid, or revoked API key.

Media typeapplication/json
object
error
required
object
code
required

Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.

string
/^(E[0-9A-F][0-9]{3}|PROVIDER_ACCESS_REQUIRED|PROVIDER_ACCESS_UNAVAILABLE)$/
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any

Example

{
"error": {
"code": "E0001"
}
}

The session’s provider requires access approval and is not approved for the authenticated operator organization or session context (PROVIDER_ACCESS_REQUIRED).

Media typeapplication/json
object
error
required
object
code
required

Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.

string
/^(E[0-9A-F][0-9]{3}|PROVIDER_ACCESS_REQUIRED|PROVIDER_ACCESS_UNAVAILABLE)$/
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any

Example

{
"error": {
"code": "E0001"
}
}

Session not found.

Media typeapplication/json
object
error
required
object
code
required

Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.

string
/^(E[0-9A-F][0-9]{3}|PROVIDER_ACCESS_REQUIRED|PROVIDER_ACCESS_UNAVAILABLE)$/
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any

Example

{
"error": {
"code": "E0001"
}
}

Provider access or session authorization storage is temporarily unavailable.

Media typeapplication/json
object
error
required
object
code
required

Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.

string
/^(E[0-9A-F][0-9]{3}|PROVIDER_ACCESS_REQUIRED|PROVIDER_ACCESS_UNAVAILABLE)$/
message
required
string
request_id

Correlation ID for support escalation.

string
details
object
key
additional properties
any

Example

{
"error": {
"code": "E0001"
}
}