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

# Release a Twilio number

> Releases a Twilio phone number from the workspace. Platform-rented numbers are released from Twilio; imported numbers are only detached.

For numbers purchased via `/utils/buy-twilio-number` (`isImportedNumber: false`), this endpoint also releases the number on the platform's Twilio account, freeing up the slot.

For imported numbers (`isImportedNumber: true`), the number is only removed from Convocore — your own Twilio account keeps it.

```bash theme={null}
curl -X POST "https://eu-gcp-api.vg-stuff.com/v3/utils/twilio/release-number" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "phoneNumberSid": "PNxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "isImportedNumber": false }'
```

<Warning>
  Releasing a platform-rented number is permanent — Twilio cannot guarantee you'll be able to reclaim the same number afterwards.
</Warning>


## OpenAPI

````yaml POST /utils/twilio/release-number
openapi: 3.0.3
info:
  title: Convocore OpenAPI
  description: Full API reference for Convocore
  version: 1.0.4
servers:
  - url: https://eu-gcp-api.vg-stuff.com/v3
    description: EU Node.js API server
  - url: https://na-gcp-api.vg-stuff.com/v3
    description: NA Node.js API server
security: []
paths:
  /utils/twilio/release-number:
    post:
      tags:
        - Voices
      summary: Release a Twilio number
      description: >-
        Releases a Twilio phone number from the workspace. Numbers purchased
        through the platform are also released from the platform Twilio account;
        imported numbers are only detached from the workspace (not released from
        your own Twilio account).
      operationId: v2Audio-releaseTwilioNumber
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                workspaceId:
                  type: string
                phoneNumberSid:
                  type: string
                isImportedNumber:
                  type: boolean
              required:
                - workspaceId
                - phoneNumberSid
                - isImportedNumber
              additionalProperties: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  isGood:
                    type: boolean
                  errors:
                    type: string
                required:
                  - isGood
                  - errors
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      security:
        - Authorization: []
components:
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                    - message
                  additionalProperties: false
            required:
              - message
              - code
            additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer

````