v1
latestOpenAPI 3.1.02026-07-2665153355.3 KBAuthentication
Initiate Game Auth
<Warning> This API endpoint is only relevant for the Game Redirect Login method. </Warning> <Note> This is a callback API. Appcharge calls this endpoint on your server when specific events occur. </Note> Notifies your system to initiate an authentication session in your game. <br /> <br /> Appcharge calls this endpoint when a player attempts to log in via Game Redirect Login. Your server responds with either the data needed to redirect the player to your game for authentication, or an error.
post/{YOUR_INITIATE_GAME_AUTH_ENDPOINT}
Headers
x-publisher-tokenstring
Publisher token.
signaturestring
The signed payload.
Request body
Example request
{
"device": "DESKTOP",
"date": "2023-11-07T05:31:56Z"
}Response
OK
Example response
{
"deepLink": "https://my-awesome-game/2298/bv45d674?key=549bc5151667f6216629efe46vf7bacd2812d82298",
"accessToken": "9ac8883227afa33412197b",
"desktopAutoRedirect": true
}