---
search:
  tags:
    - Games
    - GET
seo:
  description: >-
    Returns a game the key owner may view (their own, one they participate in,
    a… Reference for the GET /games/{id} endpoint in the dartpilot Public API.
sidebar:
  label: Get a game
  badge: GET
title: Get a game
type: openapi-operation
---
Returns a game the key owner may view (their own, one they participate in, a friend's, or a public game), including its config and current state. Send `If-None-Match` with the previous `ETag`, or `?since=<stateUpdatedAt>`, to get a `304` / `{ "unchanged": true }` while nothing has moved.

`GET /games/{id}`

**Responses**

- `200` — The game.
- `400` — Invalid request.
- `401` — Missing or invalid API key.
- `403` — The API key is missing a required scope or is the wrong type for this endpoint.
- `404` — Entity not found.
- `429` — Rate limit exceeded. See the \`Retry-After\` header.
- `500` — Internal server error.

Response example, 200:

```json
{
  "id": "string",
  "type": "string",
  "status": "string",
  "players": [
    {
      "name": "string",
      "userId": "string",
      "image": "string"
    }
  ],
  "createdAt": "string",
  "updatedAt": "string",
  "config": {
    "property1": null,
    "property2": null
  },
  "state": {
    "property1": null,
    "property2": null
  },
  "stateUpdatedAt": "string"
}
```
