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
Authorization header. See Authentication for details.
Endpoints
The setup checklist has its own page: Setup checks API.
Get current user
Get my usage
ALLTERNIT_CLOUD_API_URL or company config cloudApiUrl.
Response:
cloud_models says whether the account can run Allternit Cloud models now. It is the same object as on GET /api/v1/billing/credits; see Cloud billing. Cloud models need a credit balance above $0, and Free accounts have no free monthly allowance: a Free account with no credits row reports credits: 0, weeklyLimit: 0 and weeklyUsed: 0. A response without cloud_models (an older server) means not locked.
If no cloud API is configured or the service is unreachable, the endpoint returns 503 Service Unavailable with a clear error.
Create personal organization
created: false.
Response:
Account flags
https://api.allternit.com). Small per-account UI flags stored in the caller’s Clerk user unsafe_metadata, so they follow the account across Allternit Desktop, ai.allternit.com and the m.allternit.com app. Web and the phone app write the same keys with the Clerk client; Desktop has no Clerk client and uses this endpoint with its Clerk session token.
Auth: a Clerk session JWT, or an API token with the account scope.
Device tokens may read /me/flags. GET also accepts a paired computer’s runtime device credential (allternit_runtime_…) and answers with the flags of the account that owns the device. This is how a gizzi that is only paired reads files_drive. It is read-only: a PUT with a device credential is a 403. The credential must be valid, unexpired and not revoked. No other route accepts it because of this (device credentials elsewhere keep only their existing narrow routes, such as Cloud chat completions).
The flags are all ISO-8601 times. botsIntroSeenAt is when the person finished or skipped the Meet your bots card. It also marks the Bots mode intro as seen. The first-visit intros have one key each: introHomeSeenAt, introCodeSeenAt, introAciSeenAt, introProjectsSeenAt, introArtifactsSeenAt, introAutomationSeenAt, introCustomizeSeenAt and introFreeweightsSeenAt. See Phone titles, intros and arrivals.
To show an intro again, PUT the key with null. This clears it. For example, { "introHomeSeenAt": null }. Every allowed flag is always present in the response, null when unset.
Response (both methods):
PUT body: an object of the flags to set. Each value must be an RFC 3339 / ISO-8601 time string of at most 40 characters, or null to clear an intro key. Only the flags you send change; other metadata on the account is kept.