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

# Add Contact Center Details

## Overview

The "Add Contact Center Details" endpoint allows users to integrate either Twilio or Plivio contact center details into their Toingg account. By sending a POST request to the `/add_twilio` endpoint, users can add configurations such as account SID, authentication token, and phone number for Twilio, or equivalent details for Plivio. This functionality is crucial for setting up and managing contact center integrations, ensuring that communication capabilities are efficient and aligned with user needs. The endpoint supports seamless integration to enhance contact center operations and align with evolving business requirements.

#### Example cURL Request

```bash theme={null}
curl -X 'POST' \
  'https://api.toingg.com/api/v3/add_twilio' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
  -H 'Content-Type: application/json' \
  -d '{
  "twilioAccountSid": "string",
  "twilioAuthToken": "string",
  "twilioPhoneNumber": "string",
  "voiceProvider": "TWILIO"
}'
```


## OpenAPI

````yaml POST /add_twilio
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.toingg.com/api/v3
security: []
paths:
  /add_twilio:
    post:
      tags:
        - Twilio handling
      summary: Add Twilio
      operationId: add_twilio_add_twilio_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/twilioAccountModel'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    twilioAccountModel:
      properties:
        twilioAccountSid:
          type: string
          title: Twilioaccountsid
        twilioAuthToken:
          type: string
          title: Twilioauthtoken
        twilioPhoneNumber:
          type: string
          title: Twiliophonenumber
        voiceProvider:
          $ref: '#/components/schemas/voiceProviderType'
          default: TWILIO
      type: object
      required:
        - twilioAccountSid
        - twilioAuthToken
        - twilioPhoneNumber
      title: twilioAccountModel
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    voiceProviderType:
      type: string
      enum:
        - TWILIO
        - PLIVO
      title: voiceProviderType
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: login

````