Start or reset game instance
Changed onCreates a new game session or resets an existing one, depending on the presence of guid in the request body:
• Omit guid or set it to null → start a brand-new game
instance.
• Provide an existing guid → reset that session.
- If at least one ACTION command has been issued since the last level transition, only the current level is restarted.
- If no ACTIONs have been issued, the entire game resets.
Two consecutive RESETs therefore guarantee a completely fresh game.
The call always returns the first (or refreshed) frame of the game state, along with updated score and win condition.
Note: The response includes cookies (particularly AWSALB* cookies) that must be included in all subsequent ACTION commands for this session. These cookies ensure requests are routed to the same backend instance maintaining your game state.
Request
- Base URLhttps://three.arcprize.org
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
First frame after starting or resetting the session.
Changes
- warning
added the new
0.00enum value to the/response property for the response status - warning
added the new
7.00enum value to the/response property for the response status - warning
added the new
NOT_PLAYEDenum value to theresponse property for the response status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status - info
removed the
NOT_STARTEDenum value from theresponse property for the response status
- warning