Account endpoint
Use authenticated GET /v1/me to confirm identity, plan, usage counters, and feature access for the current token.
curl https://api.foxora.ai/v1/me \
-H "Authorization: Bearer $FOXORA_ACCESS_TOKEN"- Check the HTTP status before reading fields.
- Confirm
idoremailbelongs to the intended account. - Read
plan,plan_type, andcycleas current account context. - Treat
usageandfeaturesas service-provided state, not a locally calculated entitlement. - Store the response only as long as the application needs it.
Account fields can grow over time. Parse the properties your client uses and tolerate additional JSON fields. Never log the Authorization header alongside the response.
Expected result: a valid token returns the intended account; an invalid token returns 401 and no identity or plan details.