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

# Create Configuration

> Create a new telephony configuration

Call [List Supported Providers](/api-reference/telephony-configs/providers) first to discover the credential fields for the provider you want to configure — they vary per provider.

Configuration `name` must be unique within your organization. Set `is_default_outbound: true` to mark this configuration as the org-wide default for outbound calls (any existing default is unset). New configurations have no phone numbers; add them via [Add a phone number](/api-reference/telephony-configs/phone-numbers/create).


## OpenAPI

````yaml POST /api/v1/organizations/telephony-configs
openapi: 3.1.0
info:
  title: Bandwidth Agent Builder API
  version: v1
  description: >-
    Manage agents, place calls, and retrieve conversation results in your
    workspace.
servers:
  - url: https://agents.labs.bandwidth.com
    description: Workspace API
security: []
paths:
  /api/v1/organizations/telephony-configs:
    post:
      tags:
        - telephony-configs
      summary: Create Configuration
      description: Create a new telephony configuration
      operationId: >-
        create_telephony_configuration_api_v1_organizations_telephony_configs_post
      parameters:
        - name: X-VOAI-ORGANIZATION-ID
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Voai-Organization-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TelephonyConfigurationCreateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelephonyConfigurationDetail'
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - LabsAuth: []
        - LabsApiKey: []
components:
  schemas:
    TelephonyConfigurationCreateRequest:
      properties:
        name:
          type: string
          maxLength: 64
          minLength: 1
          title: Name
        is_default_outbound:
          type: boolean
          title: Is Default Outbound
          default: false
        config:
          oneOf:
            - $ref: '#/components/schemas/BandwidthConfigurationRequest'
            - $ref: '#/components/schemas/JambonzConfigurationRequest'
            - $ref: '#/components/schemas/TelnyxConfigurationRequest'
            - $ref: '#/components/schemas/TwilioConfigurationRequest'
          title: Config
          discriminator:
            propertyName: provider
            mapping:
              bandwidth:
                $ref: '#/components/schemas/BandwidthConfigurationRequest'
              jambonz:
                $ref: '#/components/schemas/JambonzConfigurationRequest'
              telnyx:
                $ref: '#/components/schemas/TelnyxConfigurationRequest'
              twilio:
                $ref: '#/components/schemas/TwilioConfigurationRequest'
      type: object
      required:
        - name
        - config
      title: TelephonyConfigurationCreateRequest
    TelephonyConfigurationDetail:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        provider:
          type: string
          title: Provider
        is_default_outbound:
          type: boolean
          title: Is Default Outbound
        credentials:
          additionalProperties: true
          type: object
          title: Credentials
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - name
        - provider
        - is_default_outbound
        - credentials
        - created_at
        - updated_at
      title: TelephonyConfigurationDetail
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BandwidthConfigurationRequest:
      properties:
        provider:
          type: string
          const: bandwidth
          title: Provider
          default: bandwidth
        account_id:
          type: string
          title: Account Id
        application_id:
          type: string
          title: Application Id
        client_id:
          type: string
          title: Client Id
        client_secret:
          type: string
          title: Client Secret
        webhook_username:
          type: string
          title: Webhook Username
        webhook_password:
          type: string
          title: Webhook Password
        from_numbers:
          items:
            type: string
          type: array
          title: From Numbers
      type: object
      required:
        - account_id
        - application_id
        - client_id
        - client_secret
        - webhook_username
        - webhook_password
      title: BandwidthConfigurationRequest
    JambonzConfigurationRequest:
      properties:
        provider:
          type: string
          const: jambonz
          title: Provider
          default: jambonz
        api_base_url:
          type: string
          title: Api Base Url
        account_sid:
          type: string
          title: Account Sid
        api_key:
          type: string
          title: Api Key
        webhook_secret:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Secret
        application_sid:
          anyOf:
            - type: string
            - type: 'null'
          title: Application Sid
        from_numbers:
          items:
            type: string
          type: array
          title: From Numbers
      type: object
      required:
        - api_base_url
        - account_sid
        - api_key
      title: JambonzConfigurationRequest
    TelnyxConfigurationRequest:
      properties:
        provider:
          type: string
          const: telnyx
          title: Provider
          default: telnyx
        api_key:
          type: string
          title: Api Key
        connection_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Connection Id
        webhook_public_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Public Key
        from_numbers:
          items:
            type: string
          type: array
          title: From Numbers
      type: object
      required:
        - api_key
      title: TelnyxConfigurationRequest
    TwilioConfigurationRequest:
      properties:
        provider:
          type: string
          const: twilio
          title: Provider
          default: twilio
        account_sid:
          type: string
          title: Account Sid
        auth_token:
          type: string
          title: Auth Token
        from_numbers:
          items:
            type: string
          type: array
          title: From Numbers
      type: object
      required:
        - account_sid
        - auth_token
      title: TwilioConfigurationRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    LabsAuth:
      type: http
      scheme: bearer
    LabsApiKey:
      type: apiKey
      in: header
      name: X-BW-LABS-AGENTS-API-KEY

````