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

# Assign Agent to Number

> Assign a version of an agent to a phone number



## OpenAPI

````yaml POST /numbers/{uuid}/assign_agent
openapi: 3.1.0
info:
  title: Public API v1
  description: >-
    Public API v1 requiring API keys.


    **Timestamps:** All datetime fields in API responses are returned in UTC
    using ISO 8601 format (e.g., `2024-01-15T14:30:00Z`). When filtering by date
    parameters, provide timestamps in ISO 8601 format.
  version: 0.1.0
servers:
  - url: https://api.prod.usesimple.ai/api/v1
    description: Production API Server
security: []
paths:
  /numbers/{uuid}/assign_agent:
    post:
      tags:
        - Numbers
      summary: Assign Agent to Number
      description: Assign an agent to handle calls for a specific phone number.
      operationId: assign_agent_numbers__uuid__assign_agent_post
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - agent_uuid
              properties:
                agent_uuid:
                  type: string
                  format: uuid
                  title: Agent UUID
                  description: The UUID of the agent to assign
                version_id:
                  type: string
                  format: uuid
                  title: Version Id
                  description: >-
                    When assigning an agent, specifies which agent version to
                    use. If not provided, uses the most recently updated
                    version.
                  examples:
                    - 456e7890-e89b-12d3-a456-426614174000
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
        '404':
          description: Number or Agent Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      security:
        - APIKeyHeader: []
components:
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization

````