POST /api/user/me returns the profile Lunacal loads for the signed-in user. The body may be {}.
Authorization: Bearer $LUNACAL_API_KEY and Content-Type: application/json. POST only. Authentication.Request
Body
When
true, and the account’s identity provider is not Lunacal, the response includes passwordAdded. Omitted otherwise. Most integrations can ignore this.includeSubscription is accepted and ignored. Subscription data is returned either way.
Response
The JSON object is large. The fields you usually need:
The same object also includes plan, feature flags, branding, and onboarding fields used by the Lunacal UI. Do not depend on those names staying still. The response does not include the password hash.
Errors
Missing or bad key:401 {"message":"Invalid credentials"}. Account without API access: 403. See Errors.