Skip to content
OvertCMS Docs

Admin API (Dashboard & Team) Authentication & MFA

Sign in with email and password

POST /admin-api/v1/auth/login

Authenticates a human user with Argon2id password verification (rate limited). If MFA is enabled and no inline totpCode/recoveryCode is supplied, returns mfaRequired: true with a short-lived mfaChallengeToken without setting session cookies.

Authentication

Public. No credentials are needed.

Request body application/json required

  • email string, email required

    Example owner@example.com

  • password string, password required

    Example StrongPassw0rd!

  • recoveryCode string
    Optional inline single-use recovery code.

    Example ABCD-EFGH-JKLM

  • totpCode string
    Optional inline 6-digit TOTP code.

    Example 123456

Responses

  • 200 Authenticated session (or MFA challenge).

    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 credentials.

    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 Account is disabled.

    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 login 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