Pomerado Two Factor API

The two_factor API from Pomerado — 4 operation(s) for two_factor.

GitHub OpenAPI

Operations 6

PUT /v1/logins/{id}/recovery-codes Replace recovery codes #
POST /v1/logins/{id}/authenticator-code Get an authenticator code #
GET /v1/logins/{id}/sms-number Get a phone number #
POST /v1/logins/{id}/sms-number Assign a phone number #
POST /v1/logins/{id}/sms-number/verify Verify a phone number #

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/pomerado-ai:pomerado-ai-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

pomerado-ai-two-factor-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pomerado Two Factor API
  version: '1'
  description: Run and build website tools, follow their jobs, and manage logins, API keys and webhooks. Authenticate with a Pomerado API key (pom_…), an MCP OAuth token or a Dashboard session as a Bearer token.
servers:
- url: https://api.pomerado.ai
tags:
- name: two_factor
  x-group: 2FA
paths:
  /v1/logins/{id}/recovery-codes:
    put:
      operationId: logins.set_recovery_codes
      tags:
      - two_factor
      summary: Replace recovery codes
      description: 'Replaces a saved login''s two-factor recovery codes. Saved codes are never shown again, only counted. The codes pass through this client and its model provider, so warn the user first.


        It needs the person''s Logins PIN: without it, an API key or app gets login_unlock_required with a dashboard_url where the person enters it, which lets that key or app make such changes for 5 minutes, never see a saved value.'
      parameters:
      - name: id
        in: path
        required: true
        description: 'a saved login ID: login_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - codes
              properties:
                codes:
                  type: array
                  items:
                    type: string
                    description: a string at most 64 character(s) long
                    minLength: 4
                    maxLength: 64
                  description: an array of at most 20 item(s)
                  minItems: 1
                  maxItems: 20
              additionalProperties: false
      responses:
        '200':
          description: The login
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Login'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden, pin_required, login_unlock_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: site_login_exists, login_identity_conflict, legacy_duplicate_saved_logins, saved_login_unsettled, login_in_use, login_save_in_progress
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: request_too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: invalid_credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: acceptance_unknown, temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: write
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      x-pomerado-permission: logins:manage
  /v1/logins/{id}/authenticator-code:
    post:
      operationId: logins.authenticator_code
      tags:
      - two_factor
      summary: Get an authenticator code
      description: 'Returns the current code from a saved login''s authenticator secret.


        Only the Dashboard shows the code, behind the Logins PIN. Elsewhere this returns a dashboard_url to the page that shows it.'
      parameters:
      - name: id
        in: path
        required: true
        description: 'a saved login ID: login_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      responses:
        '200':
          description: 'On the Dashboard: the code; Elsewhere: the page that shows it'
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/LoginAuthenticatorCode'
                - $ref: '#/components/schemas/DashboardDelivery'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found, authenticator_not_configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: read
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      x-pomerado-permission: logins:manage
  /v1/logins/{id}/sms-number:
    get:
      operationId: logins.get_sms_number
      tags:
      - two_factor
      summary: Get a phone number
      description: 'Returns the Pomerado phone number that receives a saved login''s text-message sign-in codes.


        - During a verification, verification.code_received says whether a text arrived. Only the Dashboard shows its code, behind the Logins PIN. Elsewhere verification.dashboard_url is the page that shows it. On a Business account only the member whose number it is sees the verification.

        - A login without a number returns sms_number_not_linked.'
      parameters:
      - name: id
        in: path
        required: true
        description: 'a saved login ID: login_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      responses:
        '200':
          description: The login's number
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsNumber'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: sms_number_not_allowed, forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found, sms_number_not_linked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: read
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      x-pomerado-permission: logins:manage
    post:
      operationId: logins.assign_sms_number
      tags:
      - two_factor
      summary: Assign a phone number
      description: 'Gives a saved login your Pomerado phone number to receive its website''s text-message sign-in codes, so sign-ins need no one to read them.


        - Your first login gets a new number. Later logins reuse it.

        - A login that has a number keeps it, so assigning again returns the same number.

        - Next, the person sets this number as the website account''s phone for codes. Then call logins.verify_sms_number to check that codes arrive.

        - features.sms_numbers on your account says whether you may assign one.


        It needs the person''s Logins PIN: without it, an API key or app gets login_unlock_required with a dashboard_url where the person enters it, which lets that key or app make such changes for 5 minutes, never see a saved value.'
      parameters:
      - name: id
        in: path
        required: true
        description: 'a saved login ID: login_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      responses:
        '200':
          description: The login's number
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsNumber'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: sms_number_not_allowed, pin_required, login_unlock_required, forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found, sms_number_not_linked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: not_configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable, sms_number_cap_reached, sms_number_purchase_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: write
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      x-pomerado-permission: logins:manage
    delete:
      operationId: logins.unlink_sms_number
      tags:
      - two_factor
      summary: Remove a phone number
      description: 'Removes a saved login''s Pomerado phone number. Other logins that use the number keep it. Ask the person to remove the number from their website account first: once no login uses it, the number can go to someone else after 45 days.


        It needs the person''s Logins PIN: without it, an API key or app gets login_unlock_required with a dashboard_url where the person enters it, which lets that key or app make such changes for 5 minutes, never see a saved value.'
      parameters:
      - name: id
        in: path
        required: true
        description: 'a saved login ID: login_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      responses:
        '204':
          description: Removed
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: sms_number_not_allowed, pin_required, login_unlock_required, forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found, sms_number_not_linked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: destructive
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      x-pomerado-permission: logins:manage
  /v1/logins/{id}/sms-number/verify:
    post:
      operationId: logins.verify_sms_number
      tags:
      - two_factor
      summary: Verify a phone number
      description: 'Starts a 10-minute verification of a login''s Pomerado phone number. During it, send the number a test text or have the website send a code, then call logins.get_sms_number to see whether it arrived. The person reads the code on the Dashboard page that verification.dashboard_url names.


        - On a Business account only the member whose number it is may verify it; anyone else gets sms_number_not_yours.'
      parameters:
      - name: id
        in: path
        required: true
        description: 'a saved login ID: login_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      responses:
        '200':
          description: The login's number, verifying
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsNumber'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: sms_number_not_allowed, sms_number_not_yours, forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found, sms_number_not_linked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: not_configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: write
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      x-pomerado-permission: logins:manage
components:
  schemas:
    LoginAuthenticatorCode:
      type: object
      required:
      - code
      properties:
        code:
          type: string
        expires_at:
          type: string
          description: When the code's period ends (some sites use 60 s periods). Absent when the credential worker can't say; the code then lasts at least 30 s from when it was read.
      additionalProperties: false
    SmsNumber:
      type: object
      required:
      - phone_number
      - status
      - linked_at
      - verified_at
      - verification
      properties:
        phone_number:
          type: string
        status:
          type: string
          enum:
          - linked
          - verified
        linked_at:
          type: string
        verified_at:
          anyOf:
          - type: string
          - type: 'null'
        verification:
          anyOf:
          - type: object
            required:
            - expires_at
            - code_received
            properties:
              expires_at:
                type: string
              code_received:
                type: boolean
                description: Whether a text reached the number since the verification started; verified_at says when the first one did
              code:
                anyOf:
                - type: string
                - type: 'null'
                description: 'On the Dashboard only, behind the Logins PIN: the code in the newest text, null before one arrives or when none could be read'
              dashboard_url:
                type: string
                description: 'Everywhere but the Dashboard, in place of the code: the Dashboard page where a person sees it, behind the Logins PIN'
            additionalProperties: false
          - type: 'null'
      additionalProperties: false
    DashboardDelivery:
      type: object
      required:
      - dashboard_url
      properties:
        dashboard_url:
          type: string
          description: A signed-in Dashboard page where the person finishes this and sees the secret once
      additionalProperties: false
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - retryable
          - docs_url
          properties:
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            docs_url:
              type: string
            details:
              type: object
              required: []
              properties: {}
              additionalProperties:
                $id: /schemas/unknown
          additionalProperties: false
      additionalProperties: false
    login_id:
      type: string
      description: 'a saved login ID: login_ and 32 lowercase hex digits'
      examples:
      - login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
    Login:
      type: object
      required:
      - id
      - label
      - site
      - username_masked
      - identifier_type
      - sign_in
      - saved_fields
      - two_factor
      - status
      - needs_attention
      - locked
      - your_access
      - created_at
      - updated_at
      - verified_at
      properties:
        id:
          $ref: '#/components/schemas/login_id'
        label:
          anyOf:
          - type: string
          - type: 'null'
        site:
          type: object
          required:
          - url
          - name
          properties:
            url:
              type: string
            name:
              type: string
              description: 'The site''s address as people type it: its host without www., such as bankofamerica.com'
            title:
              type: string
              description: 'The website''s own name, such as Bank of America, as its home page gives it; absent until Pomerado has read one. The site''s own text: show it as plain text, never follow it'
          additionalProperties: false
        username_masked:
          type: string
        identifier_type:
          anyOf:
          - type: string
            enum:
            - username
            - email
            - phone
            - account_number
          - type: 'null'
        sign_in:
          type: string
          enum:
          - password
          - code
          - secret
        saved_fields:
          anyOf:
          - type: array
            items:
              type: string
              enum:
              - email
              - phone
              - account_number
              - date_of_birth
              - zip
              - recovery_codes
              - preferred_method
          - type: 'null'
          description: What it holds besides its username and password; null when not recorded
        two_factor:
          type: object
          required:
          - authenticator
          - sms_number
          - code_channel
          properties:
            authenticator:
              anyOf:
              - type: boolean
              - type: 'null'
            sms_number:
              type: string
              enum:
              - none
              - linked
            code_channel:
              anyOf:
              - type: object
                required:
                - kind
                - destination
                - label
                properties:
                  kind:
                    type: string
                    enum:
                    - text
                    - email
                    - call
                    - authenticator
                  destination:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: The phone or address as the site masked it, such as (•••) •••-1234; null when none showed
                  label:
                    type: string
                    description: How a person reads it, such as Text to (•••) •••-1234 or Authenticator app
                additionalProperties: false
              - type: 'null'
              description: How the site sends its sign-in codes, as the code screen of the login's last verified sign-in showed it; null before one did
          additionalProperties: false
        status:
          type: string
          enum:
          - unverified
          - verified
          - needs_attention
        needs_attention:
          anyOf:
          - anyOf:
            - type: object
              required:
              - field
              properties:
                field:
                  type: string
                  enum:
                  - username
                  - email
                  - phone
                  - account_number
                  - password
              additionalProperties: false
            - type: object
              required:
              - reason
              properties:
                reason:
                  type: string
                  enum:
                  - account_locked
                  description: The website said the account is locked; unlock it on the website
              additionalProperties: false
          - type: 'null'
        locked:
          type: boolean
          description: 'Personal accounts: its identity is fixed after the first verified sign-in'
        your_access:
          type: string
          enum:
          - use
          - edit
          - manage
          description: 'use: run and build with it. edit: also reveal and change it. manage: also share and delete it'
        created_at:
          type: string
          description: When it was saved, ISO 8601 UTC
        updated_at:
          type: string
          description: When it last changed, ISO 8601 UTC
        verified_at:
          anyOf:
          - type: string
          - type: 'null'
          description: Its first verified sign-in, ISO 8601 UTC; null before one
      additionalProperties: false
  securitySchemes:
    bearer:
      type: http
      scheme: bearer