# GET /tournaments/:id/courts

This endpoint retrieves a list of courts associated with a specific tournament.

:::note
Works with a public API key for public tournaments (shared on a result page).
:::

:::note
A court object includes the `currentMatchId` of the currently assigned match, if a match is assigned and announced. Add the query parameter `includeMatchDetails=true` to include the full match.
:::

## Parameters

| Parameter | In | Example |
| --- | --- | --- |
| `id` | path | `tio:4AHchFkVAecs2` |
| `includeMatchDetails` | query | `true` |

## Responses

```json
[
  {
    "id": "tio:XBZxd1GA3Kog9",
    "number": 1,
    "name": "1"
  },
  {
    "id": "tio:dLUOkXt5oHEvq",
    "number": 2,
    "name": "2",
    "currentMatchId": "tio:dWT5oSbv2kYQg"
  },
  {
    "id": "tio:5k35E1vfm3IwG",
    "number": 3,
    "name": "3"
  },
  ...
]
```
```json
[
  {
    "id": "tio:XBZxd1GA3Kog9",
    "number": 1,
    "name": "1"
  },
  {
    "id": "tio:dLUOkXt5oHEvq",
    "number": 2,
    "name": "2",
    "currentMatchId": "tio:dWT5oSbv2kYQg",
    "currentMatch": {
      "id": "tio:dWT5oSbv2kYQg",
      "entries": [
        {
          "id": "05-2553_05-4357",
          "name": "Helmut Poppen / Sophia Poppen"
        },
        {
          "id": "05-9012_05-9876",
          "name": "Caroline Conrad / Andrei Andros"
        }
      ],
      "state": "running",
      "encounters": [],
      "disciplineName": "[D1] Discipline 1",
      "roundName": "Round 1",
      "groupName": "Qualification",
      "courtIds": ["tio:dLUOkXt5oHEvq"],
      "startTime": "2024-07-03T14:39:16.575Z"
    }
  },
  {
    "id": "tio:5k35E1vfm3IwG",
    "number": 3,
    "name": "3"
  },
  ...
]
```