# Get authenticated user

`GET /me`

Find yourself they say. That's what you can do here.

Base URL: https://galaxy.scalar.com, https://void.scalar.com/

## Authorization

- basicAuth: HTTP basic
- oAuth2: oauth2 (scopes: read:account)
- bearerAuth: HTTP bearer
- apiKeyHeader: API key in header `X-API-Key`
- apiKeyQuery: API key in query `api_key`

## Responses

### 200: Authenticated user information retrieved successfully

Returns `User`.

- `id` (integer)
- `name` (string)

```json
{
  "id": 1,
  "name": "Marc"
}
```

### 401: Unauthorized

Returns `UnauthorizedError`.

- `type` (string)
- `title` (string)
- `status` (integer)
- `detail` (string)

```json
{
  "type": "https://example.com/errors/not-found",
  "title": "Unauthorized",
  "status": 401,
  "detail": "You are not authorized to access this resource."
}
```

### 403: Forbidden

Returns `ForbiddenError`.

- `type` (string)
- `title` (string)
- `status` (integer)
- `detail` (string)

```json
{
  "type": "https://example.com/errors/forbidden",
  "title": "Forbidden",
  "status": 403,
  "detail": "You are not authorized to access this resource."
}
```

## Example request

```bash
curl -X GET 'https://galaxy.scalar.com/me' \
  -H 'Authorization: Bearer <token>' \
  -H 'X-API-Key: <X-API-Key>'
```
