Overview

The Me API returns the current authenticated user’s profile, proxies weekly usage metering from the cloud API, and lets self-hosted users create a personal organization when no Clerk-managed organization is available.

Base URL

All endpoints require a valid Bearer token in the Authorization header. See Authentication for details.

Endpoints

Get current user

Response:
If the user row is not yet persisted, a synthetic profile is returned from the authentication claims.

Get my usage

Proxies the cloud API quota/entitlements service. The cloud API URL is resolved from ALLTERNIT_CLOUD_API_URL or company config cloudApiUrl. Response:
If no cloud API is configured or the service is unreachable, the endpoint returns 503 Service Unavailable with a clear error.

Create personal organization

Creates a personal organization for the caller and assigns the owner role. This is primarily useful for self-hosted or no-Clerk-key deployments where the middleware does not auto-synthesize an organization. If the caller already has an organization, the endpoint returns the existing one with created: false. Response:

Error codes