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

# Users

> On this page, we'll dive into the different user endpoints you can use to retrieve information about the authenticated user and their organizations.

User endpoints allow you to retrieve information about the currently authenticated user and discover the organizations they belong to. On this page, we'll dive into the different user endpoints you can use to work with user and organization information programmatically.

## Retrieve the current user

**`GET /v1/users/me`**

This endpoint allows you to retrieve information about the currently authenticated user from the auth database. For organization membership, use the [organizations endpoint](#list-user-organizations) instead. User and organization management is handled through Better Auth.

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.elanlanguages.ai/v1/users/me \
    -H "Authorization: Bearer {token}"
  ```
</CodeGroup>

***

## List user organizations

**`GET /v1/users/me/organizations`**

This endpoint allows you to retrieve all organizations the current user belongs to. Use this endpoint to discover available organizations, then use the `X-Org-Id` header to switch between them on subsequent requests.

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.elanlanguages.ai/v1/users/me/organizations \
    -H "Authorization: Bearer {token}"
  ```
</CodeGroup>
