---
title: "Get a gym"
method: GET
path: "/api/gyms/{gymId}"
tags: ["Gyms"]
---

# Get a gym

`GET /api/gyms/{gymId}`

## Request

- Base URL: `https://api.gymflexa.com`
- URL: `https://api.gymflexa.com/api/gyms/{gymId}`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Returns a single gym by id. Readable anonymously — the public whitelabel site resolves a gym without a vanity name by this id. Gyms belonging to another organization respond 404 to an authenticated caller. An API key must carry the `gyms:read` scope.

## Path parameters

- `gymId` string, required

## Response `200`

The gym

## Other responses

- `404`: Not found (or owned by another organization)

---

[API](https://skmtc.dev/gymflexa/apis/gymflexa-api.md) · [All operations](https://skmtc.dev/gymflexa/apis/gymflexa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gymflexa/apis/gymflexa-api/revisions/23c38326a799?raw)
