Moonborn — API · auth
Fetch the authenticated user profile
GET/v1/auth/mescope · Bearer (API key or session JWT)
Headers
| Field | Type | Description |
|---|---|---|
| authorization | string | Bearer token (read by middleware; documentation only). |
Responses
200OK
Body
| Field | Type | Description |
|---|---|---|
| userIdreq | string | |
| emailreq | string | |
| displayNamereq | string | |
| emailVerifiedreq | boolean | |
| mfaEnabledreq | boolean | |
| regionreq | string · "us" | "eu" |
401Unauthenticated
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
Examples
cURL
curl -X GET https://api.moonborn.co/v1/auth/me \ -H "Authorization: Bearer $MOONBORN_API_KEY"
TypeScript
import Moonborn from '@moonborn/sdk';
const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });
const result = await client.auth.getCurrentUser();Python
import os from moonborn import Moonborn client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"]) result = client.auth.get_current_user()