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

# Create a routing group

> Creates a new routing group for the authenticated company. Returns the new group's ID.



## OpenAPI

````yaml /openapi.yaml post /api/routing-groups/create
openapi: 3.0.3
info:
  title: Aptly API
  version: '1.0'
  description: >
    The Aptly API lets you read and write cards on any Aptly board from external
    systems.


    All requests require an API key passed as the `x-token` header.

    API keys are scoped to your company and work across all boards.
servers:
  - url: https://core-api.getaptly.com
    description: Production
security:
  - ApiKeyHeader: []
paths:
  /api/routing-groups/create:
    post:
      tags:
        - RoutingGroups
      summary: Create a routing group
      description: >-
        Creates a new routing group for the authenticated company. Returns the
        new group's ID.
      operationId: createRoutingGroup
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - type
              properties:
                name:
                  type: string
                  description: Display name for the routing group.
                type:
                  type: string
                  enum:
                    - simultaneous
                    - sequential
                  description: >-
                    Ring mode. `simultaneous` rings all members at once;
                    `sequential` tries each in order.
                destination:
                  type: object
                  description: >-
                    Ring target configuration. Supports `ringType` of `user`,
                    `phone`, `browser`, `agent`, or `multi`.
                ringDurationSeconds:
                  type: number
                  description: >-
                    How long (in seconds) to ring each target before moving on.
                    Defaults to 20.
                callerExperience:
                  type: object
                  description: >-
                    Caller-side experience config. Set `mode` to `ring`
                    (default) or `hold-music`.
                maxWaitSeconds:
                  type: number
                  description: >-
                    Maximum time (in seconds) a caller will wait before overflow
                    handling triggers.
                overflow:
                  type: object
                  description: >-
                    Overflow/voicemail config. Supports `greetingText` and
                    `voicemailNotification` (array of emails).
            example:
              name: Support Queue
              type: simultaneous
              destination:
                ringType: multi
                ringToList: []
              ringDurationSeconds: 20
              callerExperience:
                mode: ring
      responses:
        '200':
          description: Routing group created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  _id:
                    type: string
                    description: ID of the created routing group.
        '400':
          description: >-
            Missing or invalid field (`name` required; `type` must be
            simultaneous or sequential).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Invalid or missing credential.
      security:
        - ApiKeyHeader: []
        - DelegateToken: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-token
    DelegateToken:
      type: apiKey
      in: header
      name: Authorization
      description: 'Delegate token issued by the platform. Format: `DelegateToken <token>`'

````