OpenProof Two Factor API

The two-factor API from OpenProof — 6 operation(s) for two-factor.

GitHub OpenAPI

Operations 6

GET /auth/2fa/status Status #
POST /auth/2fa/setup Setup #
POST /auth/2fa/enable Enable #
POST /auth/2fa/disable Disable #
POST /auth/2fa/recovery-codes New Recovery Codes #
POST /auth/2fa/login Login #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/openproof-io:openproof-io-two-factor-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

openproof-io-two-factor-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Openproof Io Two Factor API
  version: 1.0.0
  description: 'Operations tagged two-factor across 2 of this provider''s published API definitions: openapi.json, openproof-io-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: two-factor
paths:
  /auth/2fa/status:
    get:
      tags:
      - two-factor
      summary: Status
      operationId: status_auth_2fa_status_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /auth/2fa/setup:
    post:
      tags:
      - two-factor
      summary: Setup
      description: 'Starts setup: makes a new secret (not active until a code from the app is confirmed).'
      operationId: setup_auth_2fa_setup_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /auth/2fa/enable:
    post:
      tags:
      - two-factor
      summary: Enable
      description: Confirms setup with a code from the app, turns 2FA on, and returns the one-time recovery codes (shown once).
      operationId: enable_auth_2fa_enable_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CodeBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /auth/2fa/disable:
    post:
      tags:
      - two-factor
      summary: Disable
      operationId: disable_auth_2fa_disable_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CodeBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /auth/2fa/recovery-codes:
    post:
      tags:
      - two-factor
      summary: New Recovery Codes
      description: Replaces the recovery codes (old ones stop working). Needs a current code from the app.
      operationId: new_recovery_codes_auth_2fa_recovery_codes_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CodeBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /auth/2fa/login:
    post:
      tags:
      - two-factor
      summary: Login
      description: 'Second step of sign-in: the challenge from the email-link step plus a code from the app (or a recovery code).'
      operationId: login_auth_2fa_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CodeBody:
      properties:
        code:
          type: string
          title: Code
      type: object
      required:
      - code
      title: CodeBody
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LoginBody:
      properties:
        challenge:
          type: string
          title: Challenge
        code:
          type: string
          title: Code
      type: object
      required:
      - challenge
      - code
      title: LoginBody
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- openapi.json
- openproof-io-openapi.json
x-provenance:
  method: harvested
  publisher: OpenProof
  source: https://api.openproof.io/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)