Skip to main content

GET (/serviceconfigs//sessions)

Retrieves specified session information.
Important:
This method now requires a header element of X-Xbl-Contract-Version: 104/105 or later on every request.

Remarks

This HTTP/REST method retrieves session information for the supplied filters. This method can be wrapped by Microsoft.Xbox.Services.Multiplayer.MultiplayerService.GetSessionsAsync.
Note:
For 2015 Multiplayer, this method is called by Microsoft.Xbox.Services.Multiplayer.MultiplayerService.GetSessionsForUsersFilterAsync.
Note:
Every call to this method must include either a keyword, an XBOX user ID filter, or both. If the caller does not have correct permissions for the private and reservations parameters, the method returns an error code of 403 Forbidden, whether or not any such sessions actually exist.

URI parameters

| Parameter| Type| Description| | --- | --- | --- | --- | --- | --- | | scid| GUID| Service configuration identifier (SCID). Part 1 of the session ID.| | keyword| string| A keyword used to filter results to just sessions identified with that string.| | xuid| GUID| XBOX user IDs for the users for whom to retrieve sessions. The users must be active in the sessions.| | reservations| string| Value indicating if the list of sessions includes those that the users have not accepted. This parameter can only be set to true. This setting requires the caller to have server-level access to the session, or the caller’s XUID claim to match the XBOX user ID filter. | | inactive| string| Value indicating if the list of sessions includes those that the users have accepted but are not actively playing. This parameter can only be set to true.| | private| string| Value indicating if the list of sessions includes private sessions. This parameter can only be set to true. It is valid only when querying your own sessions, or when querying server-to-server. Setting this parameter to true requires the caller to have server-level access to the session, or the caller’s XUID claim to match the XBOX user ID filter. | | visibility| string| An enumeration value indicating visibility status used in filtering results. Currently this parameter can only be set to Open to include open sessions. See MultiplayerSessionVisibility.| | version| string| A positive integer indicating the major session version or lower of the sessions to include. The value must be less than or equal to the request’s contract version modulo 100.| | take| string| A positive integer indicating the maximum number of sessions to retrieve.|

HTTP status codes

The service returns an HTTP status code as it applies to MPSD.

Request body

No objects are sent in the body of this request.

Response body

The return from this method is a JSON array of session references, with some session data included inline.

See also

Parent
/serviceconfigs//sessions
Last modified on August 20, 2026