Authentication

List two-factor methods

Changed on

The authenticated user's enrolled two-factor methods and how many recovery codes remain unused.

Copy as Markdown Open in ChatGPT Open in Claude

get/v1/users/self/mfa

Request

  • Base URL
    https://api.assinafy.com.br
  • URL
    https://api.assinafy.com.br/v1/users/self/mfa
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key

Response

Enrolled methods

statusinteger

HTTP status code, mirrored in the body.

messagestring

Human-readable message; empty on success.

Example response

{
  "status": 200,
  "data": {
    "methods": [
      {
        "id": "a1b2c3d4e5f60718293a4b5c6d7e8f90",
        "type": "Totp",
        "label": "My phone",
        "confirmed_at": "2026-09-09T14:21:03Z",
        "last_used_at": "2026-09-09T18:02:44Z"
      }
    ],
    "recovery_codes_remaining": 8
  }
}

Changes