# Get the authenticated coach profile

`GET https://api.coach-platform.com/api/public/me`

Returns the authenticated coach profile (name, email, plan limits).

- Resource: Coach
- Authentication: API key in the `Authorization: Bearer cp_live_...` header
- HTML version: https://www.coach-platform.com/docs/api/reference/get-me
- OpenAPI spec: https://www.coach-platform.com/openapi.json

## Responses

| Status | Description |
|---|---|
| `200` OK | Successful response |
| `400` Bad Request |  |
| `401` Unauthorized |  |
| `403` Forbidden |  |
| `404` Not Found |  |
| `409` Conflict |  |
| `429` Too Many Requests |  |
| `500` Internal Server Error |  |

### 200 OK

Content type: `application/json`

| Field | Type | Description |
|---|---|---|
| `data` | object |   |
| `data.id` | string |   |
| `data.name` | string |   |
| `data.email` | string |   |
| `data.phoneNumber` | string |   |
| `data.businessName` | string |   |
| `data.businessType` | string |   |
| `data.workMethod` | string |   |
| `data.businessColor` | string |   |
| `data.profileImageUrl` | string |   |
| `data.activeTraineesCount` | number |   |
| `data.traineesLimit` | number |   |
| `data.createdAt` | string<date-time> |   |

Example:

```json
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "email": "<string>",
    "phoneNumber": "<string>",
    "businessName": "<string>",
    "businessType": "<string>",
    "workMethod": "<string>",
    "businessColor": "<string>",
    "profileImageUrl": "<string>",
    "activeTraineesCount": 123,
    "traineesLimit": 123,
    "createdAt": "<date-time>"
  }
}
```

### Error responses 400, 401, 403, 404, 409, 429, 500

Content type: `application/json`

| Field | Type | Description |
|---|---|---|
| `error` | object |   |
| `error.code` | string |   |
| `error.message` | string |   |
| `error.fix` | string \| null |   |
| `error.details` | object \| null |   |
| `error.retryAfterMs` | number \| null |   |

Example:

```json
{
  "error": {
    "code": "<string>",
    "message": "<string>",
    "fix": "<string>",
    "details": {},
    "retryAfterMs": 123
  }
}
```

## Examples

### cURL

```bash
curl --request GET \
  --url 'https://api.coach-platform.com/api/public/me' \
  --header 'Authorization: Bearer cp_live_...'
```

### JavaScript (fetch)

```js
const response = await fetch('https://api.coach-platform.com/api/public/me', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer cp_live_...',
  },
});

const data = await response.json();
```

## Related endpoints

- Previous: [Get API limits](https://www.coach-platform.com/docs/api/reference/get-limits/index.md): `GET /api/public/limits`. Body size, timeout, retry, and pagination limits.
- Next: [List trainees](https://www.coach-platform.com/docs/api/reference/get-trainees/index.md): `GET /api/public/trainees`. List trainees of the coach, filterable by label/search.
