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

# Release a phone number

> Gives the number up for good. It's detached from every gateway and routing rule, and its status becomes `RELEASED`.



## OpenAPI

````yaml /api-reference/rest/openapi.yaml post /v2/sip/phone-numbers/{phoneNumberId}/release
openapi: 3.1.0
info:
  title: Zero Runtime REST API
  version: '1.0'
  description: >-
    Create, configure, version and deploy agents, and wire SIP telephony to
    them.
servers:
  - url: https://api.zeroruntime.ai
security:
  - token: []
tags:
  - name: Agents
  - name: Versions
  - name: Deployment
  - name: Phone numbers
  - name: Routing rules
  - name: Calls
  - name: Batch calls
  - name: Knowledge bases
  - name: Knowledge base folders
paths:
  /v2/sip/phone-numbers/{phoneNumberId}/release:
    post:
      tags:
        - Phone numbers
      summary: Release a phone number
      description: >-
        Gives the number up for good. It's detached from every gateway and
        routing rule, and its status becomes `RELEASED`.
      parameters:
        - name: phoneNumberId
          in: path
          required: true
          description: The number's id, not its E.164.
          schema:
            type: string
      responses:
        '200':
          description: Released.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Phone Number released successfully
                  phoneNumberId:
                    type: string
                  e164:
                    type: string
                    example: '+14155550100'
        '404':
          description: Not a v2 number on your account.
components:
  securitySchemes:
    token:
      type: apiKey
      in: header
      name: Authorization
      description: Your API token, sent raw (no `Bearer` prefix).
      x-default: <auth-token>

````

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