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

# Segments - Create

> Create an empty static segment. Add contacts to it with the Manage contacts endpoint. A company can have up to 20 segments. Rate limit: 10 requests per second.



## OpenAPI

````yaml post /api/segments/create
openapi: 3.1.0
info:
  title: Simio API - segments
  version: 2.0.0
servers:
  - url: https://getsimio.app
security: []
paths:
  /api/segments/create:
    post:
      tags:
        - segments-api
      summary: Segments - Create
      description: >-
        Create an empty static segment. Add contacts to it with the Manage
        contacts endpoint. A company can have up to 20 segments. Rate limit: 10
        requests per second.
      operationId: create_segment_api_segments_create_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SegmentCreateRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SegmentCreateResponse'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing or invalid `simio-api-key`.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Your company has no active subscription.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The maximum of 20 segments is reached.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitResponse'
          description: Rate limit exceeded.
      security:
        - SimioApiKey: []
components:
  schemas:
    SegmentCreateRequest:
      properties:
        name:
          description: Name of the segment to create.
          examples:
            - VIP Customers
          maxLength: 255
          minLength: 1
          title: Name
          type: string
      required:
        - name
      title: SegmentCreateRequest
      type: object
    SegmentCreateResponse:
      properties:
        name:
          description: Name of the created segment.
          examples:
            - VIP Customers
          title: Name
          type: string
        segment_id:
          description: ID of the created segment.
          examples:
            - 42
          title: Segment Id
          type: integer
      required:
        - segment_id
        - name
      title: SegmentCreateResponse
      type: object
    ErrorResponse:
      properties:
        detail:
          description: Human-readable error message.
          examples:
            - Invalid API key
          title: Detail
          type: string
      required:
        - detail
      title: ErrorResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    RateLimitResponse:
      properties:
        error:
          description: Rate limit that was exceeded.
          examples:
            - 'Rate limit exceeded: 10 per 1 second'
          title: Error
          type: string
      required:
        - error
      title: RateLimitResponse
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    SimioApiKey:
      description: >-
        Company API key, created in Settings > Integrations & developers >
        Credentials.
      in: header
      name: simio-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.