> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pomerado.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify a phone number

> Starts a 10-minute verification of a login's Pomerado phone number.

<Accordion title="Details">
  During it, send the number a test text or have the website send a code, then call logins.get\_sms\_number to read the code that arrived.

  * **Callers:** an API key, an MCP OAuth token or a Dashboard session.
  * **Permission:** `logins:manage`.
  * **Effect:** Creates or changes something.
  * **Errors:** [`not_found`](/errors#not_found), [`sms_number_not_allowed`](/errors#sms_number_not_allowed), [`sms_number_not_linked`](/errors#sms_number_not_linked), [`not_configured`](/errors#not_configured), and the [errors any request can get](/errors).
</Accordion>


## OpenAPI

````yaml /api-reference/openapi.json post /v1/logins/{id}/sms-number/verify
openapi: 3.1.0
info:
  title: Pomerado 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
security: []
tags:
  - name: account
    x-group: Account
  - name: api_keys
    x-group: API keys
  - name: connected_apps
    x-group: Connected apps
  - name: usage
    x-group: Usage
  - name: quota
    x-group: Quota
  - name: billing
    x-group: Billing
  - name: integrations
    x-group: Integrations
  - name: connect
    x-group: Connect
  - name: logins
    x-group: Saved logins
  - name: two_factor
    x-group: 2FA
  - name: login_access
    x-group: Login access
  - name: tools
    x-group: Tools
  - name: webhooks
    x-group: Webhooks
  - name: runs
    x-group: Runs
  - name: builds
    x-group: Builds
  - name: jobs
    x-group: Jobs
  - name: files
    x-group: Files
  - name: team
    x-group: Team
paths:
  /v1/logins/{id}/sms-number/verify:
    post:
      tags:
        - two_factor
      summary: Verify a phone number
      description: Starts a 10-minute verification of a login's Pomerado phone number.
      operationId: logins.verify_sms_number
      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, 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: []
components:
  schemas:
    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
                - code
              properties:
                expires_at:
                  type: string
                code_received:
                  type: boolean
                code:
                  anyOf:
                    - type: string
                    - type: 'null'
              additionalProperties: false
            - type: 'null'
      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
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.