cURL
curl --request GET \ --url https://api.spikelabs.com/v1/game-sessions \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": "gs_abc123", "object": "game_session", "game_id": "<string>", "personality_id": "<string>", "status": "waiting", "created_at": "2023-11-07T05:31:56Z", "user_id": "<string>", "current_turn": "user", "state": {}, "winner": "user", "move_count": 123, "personality_commentary": "<string>", "updated_at": "2023-11-07T05:31:56Z" } ], "has_more": true, "next_cursor": "<string>" }
List game sessions.
API key authentication. Use your secret key (starts with sk_) as a Bearer token.
sk_
waiting
active
completed
abandoned
Number of items to return (1-100)
1 <= x <= 100
Pagination cursor from previous response
List of game sessions
Show child attributes
"gs_abc123"
game_session
user
personality
Game-specific state
draw
Personality's latest comment