Skip to main content
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 instead. User and organization management is handled through Better Auth.
curl https://api.elanlanguages.ai/v1/users/me \
  -H "Authorization: Bearer {token}"

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.
curl https://api.elanlanguages.ai/v1/users/me/organizations \
  -H "Authorization: Bearer {token}"