# Launch Game in Demo Mode

## POST /api/play

> Launch a game in demo mode (fun mode).\
> Fun mode allows users to try the game using virtual currency, providing a real experience of the gameplay without using real funds.\
>

OpenAPI:

```json
{"openapi":"3.0.0","info":{"title":"Launch Game in Demo Mode","version":"1.0.0"},"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/play":{"post":{"description":"Launch a game in demo mode (fun mode).\nFun mode allows users to try the game using virtual currency, providing a real experience of the gameplay without using real funds.\n","tags":["Launch Game in Demo Mode"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["reference","language","currency_code","lobby_url","is_mobile","is_demo"],"properties":{"reference":{"type":"string","description":"Game reference (e.g., Monkey)"},"language":{"type":"string","description":"Player language in ISO 639-1 format (e.g., en, fr). See [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for valid codes."},"currency_code":{"type":"string","description":"Currency code in ISO 4217 format (e.g., EUR, USD). See [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) for valid codes."},"lobby_url":{"type":"string","description":"URL to redirect back to the operator site."},"is_mobile":{"type":"boolean","description":"True if it's a mobile client."},"is_demo":{"type":"boolean","description":"True for demo mode."}}}}}},"responses":{"200":{"description":"Successfully returned demo game URL.","content":{"application/json":{"schema":{"type":"object","required":["status","game_url"],"properties":{"status":{"type":"string"},"game_url":{"type":"string"}}}}}},"401":{"description":"Unauthorized - Missing or invalid token.","content":{"application/json":{"schema":{"type":"object","required":["status","errors"],"properties":{"status":{"type":"string"},"errors":{"type":"array","items":{"type":"string"}}}}}}}}}}}}
```
