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

# Assign Company to Agency Phone Number

> Assign or unassign a company to an agency phone number. Note: Requires Agency API Key.



## OpenAPI

````yaml PATCH /agency/phone
openapi: 3.1.0
info:
  title: Outbox AI API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.getoutbox.ai
security: []
paths:
  /agency/phone:
    patch:
      summary: Assign Company to Agency Phone Number
      description: >-
        Assign or unassign a company to an agency phone number. Note: Requires
        Agency API Key.
      requestBody:
        description: Phone number assignment details
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgencyPhoneNumberAssign'
      responses:
        '200':
          description: Phone number assignment updated successfully
        '400':
          description: Bad Request - Invalid phone_number_id
        '401':
          description: Unauthorized - Invalid or missing agency API key
        '403':
          description: Forbidden - Requires agency admin access
        '404':
          description: Phone number not found
components:
  schemas:
    AgencyPhoneNumberAssign:
      type: object
      required:
        - phone_number_id
      properties:
        phone_number_id:
          type: string
        company:
          type: string
          description: Company ID or 'unassigned' to unassign
        sip_uri:
          type: string
          description: Optional SIP credential update
        sip_username:
          type: string
          description: Optional SIP credential update
        sip_password:
          type: string
          description: Optional SIP credential update

````