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

# Initiate phone number linking

> Register a user-owned E.164 phone number in `verification_pending` status so it can be verified via OTP and used as `personalisation_options.caller_id`.



## OpenAPI

````yaml /openapi.json post /api/v1/user-phone-numbers
openapi: 3.1.0
info:
  title: Aurora SDK API
  summary: >-
    Programmatic voice outreach API for real-world phone calls, quotes,
    availability checks, and reservations.
  description: >-
    Authenticate every request with a project-scoped API key via `Authorization:
    Bearer ask_...` or `X-API-Key: ask_...`.
  version: 1.0.0
servers:
  - url: https://staging.sdk.aurorax.co
    description: Staging
security:
  - BearerAuth: []
  - ApiKeyAuth: []
tags:
  - name: Requests
    description: >-
      Create, clarify, inspect, cancel, and retrieve call transcripts and
      recordings for outreach requests.
  - name: Linked Phone Numbers
    description: >-
      Verify and manage user-owned phone numbers that can be used as outbound
      caller IDs.
  - name: Webhooks
    description: >-
      HMAC-SHA256 signed HTTP POST events delivered to your webhook URL as
      outreach progresses.
paths:
  /api/v1/user-phone-numbers:
    post:
      tags:
        - Linked Phone Numbers
      summary: Initiate phone number linking
      description: >-
        Register a user-owned E.164 phone number in `verification_pending`
        status so it can be verified via OTP and used as
        `personalisation_options.caller_id`.
      operationId: initiate_user_phone_link
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InitiateUserPhoneLinkRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateUserPhoneLinkResponse'
        '401':
          description: Missing, invalid, or revoked API key.
        '402':
          description: Organization billing is not active or payment is past due.
        '403':
          description: Project is suspended.
        '404':
          description: Phone number or verification trigger was not found in this project.
        '409':
          description: Phone number is already linked or verification state conflict.
        '422':
          description: Invalid phone number or verification code.
components:
  schemas:
    InitiateUserPhoneLinkRequest:
      properties:
        phone_number:
          $ref: '#/components/schemas/PhoneNumberString'
        label:
          anyOf:
            - type: string
              maxLength: 128
            - type: 'null'
          title: Label
      type: object
      required:
        - phone_number
      title: InitiateUserPhoneLinkRequest
    CreateUserPhoneLinkResponse:
      properties:
        phone_number:
          $ref: '#/components/schemas/UserPhoneNumber'
        trigger:
          $ref: '#/components/schemas/LinkTrigger'
      type: object
      required:
        - phone_number
        - trigger
      title: CreateUserPhoneLinkResponse
    PhoneNumberString:
      type: string
      title: PhoneNumberString
      description: |-
        E.164 phone number. Validates and normalizes on construction.

        Usage::

            phone = PhoneNumberString("+919876543210")
            print(phone.root)  # "+919876543210"
            print(str(phone))  # "+919876543210"

        Raises ``ValidationError`` if the input is not a valid phone number.
    UserPhoneNumber:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        project_id:
          type: string
          format: uuid
          title: Project Id
        linked_phone_number_id:
          type: string
          format: uuid
          title: Linked Phone Number Id
        phone_number:
          type: string
          title: Phone Number
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
        status:
          $ref: '#/components/schemas/UserPhoneNumberStatus'
        linking_service:
          anyOf:
            - $ref: '#/components/schemas/LinkingService'
            - type: 'null'
        verification_service:
          anyOf:
            - $ref: '#/components/schemas/VerificationService'
            - type: 'null'
        number_of_otp_send_attempts_remaining:
          anyOf:
            - type: integer
            - type: 'null'
          title: Number Of Otp Send Attempts Remaining
        otp_trigger_cooldown_timestamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: Otp Trigger Cooldown Timestamp
        linked_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Linked At
        unlinked_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Unlinked At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - project_id
        - linked_phone_number_id
        - phone_number
        - status
        - created_at
        - updated_at
      title: UserPhoneNumber
    LinkTrigger:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        linked_phone_number_id:
          type: string
          format: uuid
          title: Linked Phone Number Id
        status:
          $ref: '#/components/schemas/TriggerStatus'
      type: object
      required:
        - id
        - linked_phone_number_id
        - status
      title: LinkTrigger
      description: State of a single OTP send attempt for a link.
    UserPhoneNumberStatus:
      type: string
      enum:
        - verification_pending
        - available
        - unlinked
      title: UserPhoneNumberStatus
    LinkingService:
      type: string
      enum:
        - telnyx
      title: LinkingService
      description: >-
        Service that links the number for calling (registers it as a verified
        caller ID).


        Telnyx for now — a number is registered with Telnyx exactly once,
        globally,

        and that registration is what makes it usable for 1-1 calling. Kept as
        an

        enum (rather than a constant) so additional calling providers can be
        added.
    VerificationService:
      type: string
      enum:
        - telnyx
        - twilio
      title: VerificationService
      description: >-
        Service used to prove ownership for a given directory's OTP journey.


        Telnyx for the first directory that links a number (verification happens
        as

        part of the Telnyx registration); Twilio Verify for any later directory

        linking an already-Telnyx-verified number, since Telnyx refuses to

        re-verify a verified number.
    TriggerStatus:
      type: string
      enum:
        - attempted
        - validated
      title: TriggerStatus
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Project API key (`ask_live_...` or `ask_test_...`) passed in the
        `Authorization` header.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Alternative header for passing the project API key.

````

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