Save authentication tokens temporarily
Allows game backends to save access and refresh tokens temporarily, returning a short code challenge that can be passed via launcher deeplinks.
X-Stash-Api-Key<token>
API key authentication for server-side SDK operations. Used for secure server-to-server communication.
In: header
accessTokenstring
refreshTokenstring
Response Body
curl -X POST "https://test-api.stash.gg/sdk/launcher/tokens/save" \ -H "Content-Type: application/json" \ -d '{ "accessToken": "string", "refreshToken": "string" }'{
"codeChallenge": "string"
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}How is this guide?
Generate loyalty URL POST
Generates a loyalty URL for the authenticated user. This URL provides access to the user's loyalty program and rewards.
Get payment event by ID GET
Retrieves payment details by ID. Returns information about items, pricing, and payment status. This is a server-side endpoint and should not be called from the client.