Skip to content
OvertCMS Docs

Admin API (Dashboard & Team) Authentication & MFA

Get current authenticated user and session

GET /admin-api/v1/auth/me

Returns the authenticated user profile, active session, hasMfaEnabled flag, and latest mfaVerifiedAt timestamp.

Authentication

  • overtcms_access cookie SessionCookie

    HttpOnly SameSite=Lax access token cookie issued by login/setup/refresh. State-changing requests (POST, PATCH, PUT, DELETE) authenticated via cookie must also send a matching same-origin Origin header for CSRF protection.

  • Bearer token BearerJWT

    Human Admin access JWT returned by login/setup/refresh/step-up. Agent API keys (ocms_...) are rejected on the Admin Plane.

Responses

  • 200 Current session context.

    application/json

    • hasMfaEnabled boolean
    • mfaVerifiedAt string, date-time nullable
    • session UserSession
      Show 10 fields
      • createdAt string, date-time required
      • expiresAt string, date-time required
      • familyId string, uuid required
      • id string, uuid required
      • ipAddress string
      • mfaVerifiedAt string, date-time nullable
      • revokedAt string, date-time nullable
      • rotatedAt string, date-time nullable
      • userAgent string
      • userId string, uuid required
    • user one of
      Show 2 options
      • Option 1 User
        Show 16 fields
        • allowedPostTypes array of string required
        • avatarAssetId string, uuid
        • bio string
        • createdAt string, date-time required
        • displayName string required

          Example Ada Lovelace

        • email string, email required

          Example owner@example.com

        • id string, uuid required
        • linkedAuthorEntryId string, uuid
        • locale string required

          Example en

        • oidcSubject string
        • organizationId string, uuid required
        • role string required

          Allowed: owneradmineditorwriterviewer

          Example owner

        • status string required

          Allowed: activedisabled

          Example active

        • timezone string required

          Example UTC

        • title string

          Example Managing Editor

        • updatedAt string, date-time required
      • Option 2 any nullable
  • 401 Unauthenticated — missing or expired session cookie / JWT (API keys are rejected).

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 403 Forbidden — insufficient RBAC role capability, CSRF Origin mismatch, post-type restriction, or step-up MFA required.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

Documentation

Start here