The sessions request allows you to request a game session from MG+.
In response, the API will provide you with a URL that can be used to launch the desired content within the specified game session.
-
Find your API URL. This can be found in MG+ Backoffice, or given to you by your Account Manager.
-
Create a request.
-
Replace the URL with your API URL, DemoAgent with your Agent Code, and testPlayer with your playerId.
-
In the request example, this is the api-demo.k2net.io, DemoAgent, and testPlayer portions of the endpoint.
-
-
Set the Authorization token to be your STS Token.
-
In the request example, this is the (STS Token) portion of the request header.
-
-
For the request body:
-
Replace the langCode with your language code and region.
-
Replace the platform with either desktop or mobile.
-
Replace the contentCode with the game code.
-
-
|
Request Example |
|---|
|
Request Headers
Request Body
|
-
You should receive a game launch URL as a response in the url and gameURL (they are the same).
|
Response Example |
|---|
|
201 Response Body Example
|
Checklist
- Did you use the correct API URL from your Account Manager or MG+ Backoffice?
- Did you put /api/v1/ after your API URL?
- Did you use the POST method?
- Did you put the STS Token in the Authorization request header?
- Did you put the langCode, platform and contentCode in the request body?
- Has the STS Token expired?