> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scorton.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Get User

Retrieve the user's profile.
Requires a valid authentication token in the `AUTH` header.

## Headers

**AUTH** `string` *required*

Authentication token (JWT) obtained from the `/auth/login` endpoint

## Example Request

```bash theme={null}
curl -X GET "https://api.scorton.tech/users/me" \
  -H "AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
```

## Example Response

```json theme={null}
{
  "id": "123456789",
  "email": "user@example.com",
  "role": "user"
}
```

## Success Response

| Status | Description |
| - | - |
| **200** | Returns the authenticated user's details |

## Error Responses

| Status | Description | Example |
| - | - | - |
| **401** | Missing or invalid token | `{ "detail": "Unauthorized: Invalid or expired token." } ` |
| **403** | Account not validated yet | `{ "detail": "Forbidden: Account is not validated yet." } ` |
| **404** | User not found | `{ "detail": "Not Found: User does not exist." } ` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.