FusionAuth · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for FusionAuth Two Factor API

8 actions 8 updates phrasing extends openapi/fusionauth-two-factor-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for FusionAuth's API. It is a proposal applied on top of the contract, not a document FusionAuth publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 8

$.info
$.paths['/api/two-factor/login'].post
$.paths['/api/two-factor/secret'].get
$.paths['/api/two-factor/send'].post
$.paths['/api/two-factor/send/{twoFactorId}'].post
$.paths['/api/two-factor/start'].post
$.paths['/api/two-factor/status'].post
$.paths['/api/two-factor/status/{twoFactorTrustId}'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for FusionAuth Two Factor API
  version: 1.0.0
extends: openapi/fusionauth-two-factor-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-20'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 7
- target: $.paths['/api/two-factor/login'].post
  update:
    x-apievangelist-phrasing:
      intent: Complete a login with a 2FA code
      effect: write
      questions:
      - How do I finish a login after a user enters their 2FA code?
      - Can I trust the computer so the user doesn't need 2FA again?
      instructions:
      - text: Complete the login with 2FA code {code} for user {userId}.
        slots:
          code: requestBody.code
          userId: requestBody.userId
      - text: 'Log in with 2FA code {code} and trust this computer: {trustComputer}.'
        slots:
          code: requestBody.code
          trustComputer: requestBody.trustComputer
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/two-factor/secret'].get
  update:
    x-apievangelist-phrasing:
      intent: Generate a two-factor secret
      effect: read
      questions:
      - How do I get a secret for a user to set up two-factor authentication?
      - Can I return both the secret and its Base32-encoded form for a QR code?
      instructions:
      - text: Generate a two-factor secret for enabling two-step login.
      - text: Get a base32-encoded two-factor secret for a QR code.
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/two-factor/send'].post
  update:
    x-apievangelist-phrasing:
      intent: Send a 2FA code to set up or disable 2FA
      effect: write
      questions:
      - How do I send a 2FA code to help a user turn on two-factor?
      - Can I send a 2FA code to a user's phone to disable 2FA?
      instructions:
      - text: Send a 2FA code to {email} for setting up two-factor.
        slots:
          email: requestBody.email
      - text: Send a {messageType} 2FA code to {mobilePhone} for user {userId}.
        slots:
          messageType: requestBody.messageType
          mobilePhone: requestBody.mobilePhone
          userId: requestBody.userId
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/two-factor/send/{twoFactorId}'].post
  update:
    x-apievangelist-phrasing:
      intent: Send a 2FA code to complete login
      effect: write
      questions:
      - How do I resend the one-time code for a user's 2FA login?
      - Can I send a 2FA code to a specific method for login?
      instructions:
      - text: Send the 2FA code for login challenge {twoFactorId}.
        slots:
          twoFactorId: path.twoFactorId
      - text: Resend the 2FA code for challenge {twoFactorId} to {email}.
        slots:
          twoFactorId: path.twoFactorId
          email: requestBody.email
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/two-factor/start'].post
  update:
    x-apievangelist-phrasing:
      intent: Start a login with a 2FA identifier
      effect: write
      questions:
      - How do I begin a 2FA login without going through the normal login flow?
      - Can I start a 2FA login for a user by login ID?
      instructions:
      - text: Start a 2FA login for user {userId}.
        slots:
          userId: requestBody.userId
      - text: Start a 2FA login for login ID {loginId} with trust challenge {trustChallenge}.
        slots:
          loginId: requestBody.loginId
          trustChallenge: requestBody.trustChallenge
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/two-factor/status'].post
  update:
    x-apievangelist-phrasing:
      intent: Check a user's 2FA status
      effect: read
      questions:
      - Will a user need to complete 2FA to log in?
      - Can I check the 2FA trust state across applications for a user?
      instructions:
      - text: Check the 2FA status for user {userId}.
        slots:
          userId: requestBody.userId
      - text: Check 2FA status for user {userId} in application {applicationId}.
        slots:
          userId: requestBody.userId
          applicationId: requestBody.applicationId
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/two-factor/status/{twoFactorTrustId}'].get
  update:
    x-apievangelist-phrasing:
      intent: Check a user's two-factor login status
      effect: read
      questions:
      - Does a user still have to enter a two-factor code to sign in?
      - Can I check two-factor trust state for one application?
      instructions:
      - text: Get the two-factor status for trust {twoFactorTrustId}.
        slots:
          twoFactorTrustId: path.twoFactorTrustId
      - text: Check whether user {userId} needs a two-factor code for application {applicationId}.
        slots:
          userId: query.userId
          applicationId: query.applicationId
      method: generated
      generated: '2026-11-20'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/fusionauth-two-factor-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.