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

# Detach a SIP Number

> Unlinks a SIP number from its current configuration in the database and notifies the external provider (cleartalk AI).



## OpenAPI

````yaml post /sip/detach2
openapi: 3.0.0
info:
  title: ClearTalk API
  description: The ClearTalk API Documentation
  version: '1.0'
  contact:
    name: Developer Support
    email: devsupport@cleartalk.ai
servers:
  - url: https://api.cleartalk.ai
    description: ClearTalk AI API Server
security: []
tags: []
paths:
  /sip/detach2:
    post:
      tags:
        - sip
      summary: Detach a SIP Number
      description: >-
        Unlinks a SIP number from its current configuration in the database and
        notifies the external provider (cleartalk AI).
      operationId: SIPController_detachNumber
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DetachSipDto'
      responses:
        '201':
          description: The number has been successfully detached.
          content:
            application/json:
              schema:
                example:
                  success: true
                  message: Number detached successfully
                  data:
                    number: '+14155552671'
                    detached_at: '2023-12-18T10:00:00.000Z'
                    provider_response:
                      success: true
        '400':
          description: Invalid input data.
        '500':
          description: Failed to detach number at provider or database error.
      security:
        - apiKey: []
components:
  schemas:
    DetachSipDto:
      type: object
      properties:
        phone_number:
          type: string
          description: The phone number to detach
          example: '+14155552671'
        directions:
          description: Routing directions for the call
          example:
            - type: inbound
          type: array
          items:
            type: string
      required:
        - phone_number
        - directions
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````