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

# Unassign Number From Agent

> Remove a phone number from its agent.



## OpenAPI

````yaml /api-reference/openapi.en.json post /api/v1/phone-numbers/unassign
openapi: 3.1.0
info:
  title: Brosbots API
  description: >
    The public Brosbots REST API. Build and manage voice agents, run outbound

    campaigns, read calls and usage, and manage phone numbers, tools,

    knowledge bases and integrations.


    ## Authentication


    Every request must include your organization's API key in the

    `X-API-Key` header:


    ```

    X-API-Key: bb_live_...

    ```


    You create and revoke keys in the dashboard:

    click your account in the bottom-left corner of the sidebar, then **Brosbots
    API**.


    ## Base URL


    ```

    https://app.brosbots.com/api/v1

    ```


    ## Conventions


    - Request and response bodies are JSON (`Content-Type: application/json`).

    - Timestamps are ISO 8601 with a timezone.

    - Lists are paginated with `page` / `limit` parameters; responses include
      `total_count` / `total_pages`.
    - Errors use standard HTTP status codes with a JSON body:
      `{"detail": "a human-readable reason"}`.
    - `{agent_id}` accepts the agent's public ID (`agent_...`) or its number.


    ## Limits


    There is no fixed per-key request-rate limit today. `429` comes from the

    calling endpoints (`POST /agents/{agent_id}/calls` and

    `POST /triggers/{trigger_id}/calls`) when every outbound channel is busy;
    its `Retry-After` header says how many seconds to wait. Handle `429`

    generally: wait as long as `Retry-After` says, or back off exponentially
    when

    it is absent. A request-rate limit may be introduced.
  version: 1.0.0
servers: []
security:
  - ApiKeyAuth: []
paths:
  /api/v1/phone-numbers/unassign:
    post:
      tags:
        - Phone Numbers
      summary: Unassign Number From Agent
      description: Remove a phone number from its agent.
      operationId: post_phone_numbers_unassign
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UnassignPhoneNumberRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneNumberResponse'
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UnassignPhoneNumberRequest:
      properties:
        phone_number_id:
          type: integer
      type: object
      required:
        - phone_number_id
      title: UnassignPhoneNumberRequest
    PhoneNumberResponse:
      properties:
        id:
          type: integer
        phone_number:
          type: string
        provider:
          type: string
        country_code:
          anyOf:
            - type: string
            - type: 'null'
        capabilities:
          items:
            type: string
          type: array
          default: []
        friendly_name:
          anyOf:
            - type: string
            - type: 'null'
        status:
          type: string
        organization_id:
          anyOf:
            - type: integer
            - type: 'null'
        workflow_id:
          anyOf:
            - type: integer
            - type: 'null'
        workflow_name:
          anyOf:
            - type: string
            - type: 'null'
        outbound_workflows:
          items:
            $ref: '#/components/schemas/OutboundAgent'
          type: array
          default: []
        monthly_cost_usd:
          anyOf:
            - type: number
            - type: 'null'
        monthly_cost_pln:
          anyOf:
            - type: number
            - type: 'null'
        provider_number_id:
          anyOf:
            - type: string
            - type: 'null'
        purchased_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        assigned_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        order_id:
          anyOf:
            - type: integer
            - type: 'null'
        order_status:
          anyOf:
            - type: string
            - type: 'null'
        order_status_reason:
          anyOf:
            - type: string
            - type: 'null'
        outbound_commitment_until:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
      type: object
      required:
        - id
        - phone_number
        - provider
        - status
      title: PhoneNumberResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
      title: HTTPValidationError
    OutboundAgent:
      properties:
        id:
          type: integer
        name:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
      title: OutboundAgent
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Your organization's API key (account in the bottom-left of the dashboard
        → Brosbots API).

````

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