Skip to content
OvertCMS Docs

Admin API (Dashboard & Team) Authentication & MFA

Complete a pre-auth 2FA challenge

POST /admin-api/v1/auth/mfa/verify

Verifies a single-use mfaChallengeToken using TOTP, a single-use recovery code, or a WebAuthn passkey assertion, then issues session cookies.

Authentication

Public. No credentials are needed.

Request body application/json required

  • method string

    Allowed: totprecovery_codewebauthn

  • mfaChallengeToken string required
  • recoveryCode string

    Example ABCD-EFGH-JKLM

  • totpCode string

    Example 123456

  • webauthn WebAuthnAssertionPayload
    Show 4 fields
    • authenticatorData string required
      Base64url-encoded WebAuthn authenticatorData.
    • clientDataJson string required
      Base64url-encoded WebAuthn clientDataJSON.
    • credentialId string required
    • signature string required
      Base64url-encoded ASN.1 DER ES256 signature.

Responses

  • 200 MFA verified and session issued.

    application/json

    • accessToken string
    • expiresAt string, date-time nullable
    • mfaChallengeToken string
    • mfaEnrollmentRequired boolean
    • mfaMethods array of string
    • mfaRequired boolean
    • refreshToken string
    • 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 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
  • 401 Invalid or expired MFA challenge or second factor.

    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

  • 429 Too many MFA attempts.

    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