Get the signed-in user
GET
The user, whether they are a system administrator and may create one more organization, their active organization, and each membership with its role and site access.
Requires a signed-in user (session cookie). API keys and share links: 401.
sessioncookie
__Secure-pilotfox.session_token<token>The web app's sign-in session, acting with the user's role; named pilotfox.session_token on an instance whose PUBLIC_URL is plain http. Under /api/v1, a POST, PUT, PATCH or DELETE carrying a cookie must come from the instance's own origin (Origin: PUBLIC_URL or a DASHBOARD_ORIGINS entry; else 403), and a body it carries must be JSON or multipart (else 415).
OK
application/json- response
data*curl -X GET 'https://pilotfox.app/api/v1/me'Example Response200
{ "data": { "user": { "id": "string", "email": "string", "name": "string", "emailVerified": true, "twoFactorEnabled": true }, "isSystemAdmin": true, "canCreateOrganization": true, "activeOrganizationId": "string", "memberships": [ { "orgId": "string", "name": "string", "slug": "string", "role": "owner", "siteAccess": "all" } ] }}