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

# Replace Phone Number

> Replaces an existing phone number with a new one with the same configuration. The old number is scheduled for deletion but remains active for callbacks for 30 days.



## OpenAPI

````yaml openapi.json POST /v1/phone-numbers/{id}/replace
openapi: 3.0.3
info:
  title: telli API
  version: 1.0.0
  description: API documentation for telli's V1 endpoints
servers:
  - url: https://api.telli.com
security:
  - apiKey: []
paths:
  /v1/phone-numbers/{id}/replace:
    post:
      summary: Replace Phone Number
      description: >-
        Replaces an existing phone number with a new one with the same
        configuration. The old number is scheduled for deletion but remains
        active for callbacks for 30 days.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The phone number ID to replace
      responses:
        '200':
          description: Phone number replaced successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  oldNumber:
                    $ref: '#/components/schemas/PhoneNumber'
                  newNumber:
                    $ref: '#/components/schemas/PhoneNumber'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PhoneNumber:
      type: object
      properties:
        type:
          type: string
          enum:
            - PhoneNumber
          description: Resource type identifier
        id:
          type: string
          format: uuid
          description: Unique identifier for the phone number
        phoneNumber:
          type: string
          description: Phone number in E.164 format (e.g. +4917642048466)
        inOutboundPool:
          type: boolean
          description: Whether this phone number is available for outbound calls
        phoneNumberType:
          type: string
          enum:
            - local
            - mobile
            - null
          nullable: true
          description: Type of phone number (local or mobile)
        createdAt:
          type: string
          format: date-time
          description: When the phone number was added to the account
    Error:
      type: object
      properties:
        message:
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: 'API key must be provided as: Bearer <api_key>'
      x-bearer-format: Bearer

````