auth

Get Current User Info

Return the current authenticated user's stored profile and read models.

This GET is deliberately side-effect-free. SameSite=Lax cookies may accompany a cross-site top-level safe-method navigation, so username or billing reconciliation belongs on an explicit non-GET/operator path. A legacy null remains null rather than being fabricated during identity read.

Also enriches the payload with agent_count (the user's ACTIVE Agent rows, via the same count_active_agents the paywall uses — soft-deleted agents are excluded) and team_count (accepted, user-bound TeamMember rows). The former drives the onboarding checklist; the latter exposes /team in the sidebar for invited members regardless of their personal plan or run count. arena_run_count and monthly_run_count are already User columns.

get/api/v1/auth/me

Request

  • Base URL: https://api.badgeia.com
  • URL: https://api.badgeia.com/api/v1/auth/me
  • Auth: none declared

Response

Successful Response

emailstring email required
namestring nullable
avatar_urlstring nullable
idstring uuid required
usernamestring nullable
auth_providerstring required
planstring required
has_billing_accountboolean
plan_intervalstring nullable
email_verifiedboolean
trial_ends_atstring date-time nullable
is_activeboolean required
created_atstring date-time required
updated_atstring date-time required
notify_run_completeboolean required
notify_score_changeboolean required
notify_rank_changeboolean required
notify_weekly_digestboolean required
notify_lifecycle_emailboolean
notify_regressionboolean
pmf_survey_last_shownstring date-time nullable
marketplace_payout_emailstring nullable
is_adminboolean
deletion_requested_atstring date-time nullable
deletion_due_atstring date-time nullable
arena_run_countinteger
monthly_run_countinteger
agent_countinteger
team_countinteger

Example response

{
  "email": "user@example.com"
}

Changes

No recorded changes to this operation across all 1 revision of this API.