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

# Get Current Profile

> Get the authenticated user's profile

## Authentication

<ParamField header="Authorization" type="string" required>
  Bearer token: `Bearer <firebase_id_token>`
</ParamField>

### Example Request

```bash theme={null}
curl https://api.sari-platform.com/api/profiles/me \
  -H "Authorization: Bearer <firebase_id_token>"
```

## Response

<ResponseField name="id" type="string">
  Unique profile identifier (UUID)
</ResponseField>

<ResponseField name="email" type="string">
  User's email address
</ResponseField>

<ResponseField name="full_name" type="string">
  User's full name
</ResponseField>

<ResponseField name="company_name" type="string">
  Organization name
</ResponseField>

<ResponseField name="role" type="string">
  User role: `admin` or `client`
</ResponseField>

<ResponseField name="registration_status" type="string">
  Status: `pending`, `approved`, or `rejected`
</ResponseField>

<ResponseField name="client_id" type="string">
  API client identifier (only for approved clients)
</ResponseField>

<ResponseField name="created_at" type="string">
  Account creation timestamp
</ResponseField>

<ResponseField name="updated_at" type="string">
  Last update timestamp
</ResponseField>

<ResponseField name="approved_at" type="string">
  Approval timestamp (if approved)
</ResponseField>

### Example Response

```json theme={null}
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "email": "user@example.com",
  "full_name": "John Doe",
  "company_name": "Acme Corp",
  "role": "client",
  "registration_status": "approved",
  "client_id": "client_abc123",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z",
  "approved_at": "2024-01-16T09:00:00Z"
}
```

## Errors

| Status | Description              |
| ------ | ------------------------ |
| 401    | Invalid or expired token |
| 404    | Profile not found        |
