> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GET (/serviceconfigs/{scid}/sessiontemplates/{sessionTemplateName})

> GET (/serviceconfigs/{scid}/sessiontemplates/{sessionTemplateName})

# GET (/serviceconfigs/{scid}/sessiontemplates/{sessionTemplateName})

Retrieves a set of session template names.

> **Important:**\
> This URI method requires a header element of X-Xbl-Contract-Version: 104/105 or later on every request.

* [URI parameters](#ID4ET)
* [HTTP status codes](#ID4E5)
* [Request body](#ID4EFB)
* [Response body](#ID4EQB)

<a id="ID4ET" />

## URI parameters

\| Parameter| Type| Description|
\| --- | --- | --- | --- |
\| scid| GUID| Service configuration identifer (SCID). Part 1 of the session ID.|
\| sessionTemplateName| string| Name of the current instance of the session template. Part 2 of the session ID. |

<a id="ID4E5" />

## HTTP status codes

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

<a id="ID4EFB" />

## Request body

No objects are sent in the body of this request.

<a id="ID4EQB" />

## Response body

```cpp theme={null}
{
    "results": [ {
            "xuid": "9876",    // If the session was found from a xuid, that xuid.
            "startTime": "2009-06-15T13:45:30.0900000Z",
            "sessionRef": {
                "scid": "foo",
                "templateName": "bar",
                "name": "session-seven"
            },
            "accepted": 4,    // Approximate number of non-reserved members.
            "status": "active",    // or "reserved" or "inactive". This is the state of the user in the session, not the session itself. Only present if the session was found using a xuid.
            "visibility": "open",    // or "private", "visible", or "full"
            "joinRestriction": "local",    // or "followed". Only present if 'visibility' is "open" or "full" and the session has a join restriction.
            "myTurn": true,    // Not present is the same as 'false'. Only present if the session was found using a xuid.
            "keywords": [ "one", "two" ]
        }
    ]
}

```

<a id="ID4EZB" />

## See also

<a id="ID4E2B" />

##### Parent

[/serviceconfigs/{scid}/sessiontemplates/{sessionTemplateName}](/reference/live/rest/uri/sessiondirectory/uri-serviceconfigsscidsessiontemplatessessiontemplatename)


## Related topics

- [Multiplayer Session Directory overview](/services/xbox-services/multiplayer/mpsd/live-mpsd-overview.md)
- [XblMultiplayerSessionReferenceUri](/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionreferenceuri.md)
- [Multiplayer Session Directory 개요](/ko/services/xbox-services/multiplayer/mpsd/live-mpsd-overview.md)
- [Información general de Multiplayer Session Directory](/es/services/xbox-services/multiplayer/mpsd/live-mpsd-overview.md)
- [XblMultiplayerGetSessionAsync](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsessionasync.md)
