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

# Create a sequence

> Creates a new sequence. Use the /users endpoint to get organizationMembershipIds for assignedToIds and creatorId.



## OpenAPI

````yaml https://api-public.skipcall.app/docs-json post /v1/sequences
openapi: 3.0.0
info:
  title: Skipcall Public API
  description: >-
    ## Overview

    The Skipcall Public API allows you to integrate Skipcall with your
    applications, CRM, or automation tools.


    ## Plan Requirements

    API access is available for **STARTER**, **INTERMÉDIAIRE** and **EXPERT**
    plans.


    ## Authentication

    All API requests require authentication using an API Key. Include your API
    key in the `Authorization` header:


    ```

    Authorization: Bearer sk_live_your_api_key_here

    ```


    You can generate API keys from your Skipcall dashboard under Settings > API
    Keys.


    ## Rate Limiting

    Rate limits vary by subscription plan:


    | Plan | Rate Limit |

    |------|------------|

    | STARTER | 100 requests/minute |

    | INTERMÉDIAIRE | 100 requests/minute |

    | EXPERT | 1000 requests/minute |


    Rate limit headers are included in every response:

    - `X-RateLimit-Limit`: Maximum requests per minute for your plan

    - `X-RateLimit-Remaining`: Remaining requests in the current window

    - `X-RateLimit-Reset`: Unix timestamp when the rate limit resets


    ## Errors

    The API uses standard HTTP status codes:

    - `200` - Success

    - `400` - Bad Request (invalid parameters)

    - `401` - Unauthorized (invalid or missing API key)

    - `403` - Forbidden (subscription required or plan not eligible)

    - `404` - Not Found

    - `429` - Too Many Requests (rate limit exceeded)

    - `500` - Internal Server Error


    ### Subscription Errors

    | Code | Description |

    |------|-------------|

    | `SUBSCRIPTION_REQUIRED` | An active subscription is required to access the
    API |

    | `PLAN_NOT_ELIGIBLE` | API access requires STARTER, INTERMÉDIAIRE or EXPERT
    plan |
  version: '1.0'
  contact: {}
servers:
  - url: https://api-public.skipcall.app
    description: Production
security: []
tags:
  - name: Contacts
    description: Manage your contacts
  - name: Calls
    description: Access call history and recordings
paths:
  /v1/sequences:
    post:
      tags:
        - Sequences
      summary: Create a sequence
      description: >-
        Creates a new sequence. Use the /users endpoint to get
        organizationMembershipIds for assignedToIds and creatorId.
      operationId: SequenceController_create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSequenceDto'
      responses:
        '201':
          description: Sequence created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SequenceDto'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: UNAUTHORIZED
                      message:
                        type: string
                        example: Invalid or revoked API key
                      status:
                        type: number
                        example: 401
        '403':
          description: Subscription required or plan not eligible
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: PLAN_NOT_ELIGIBLE
                      message:
                        type: string
                        example: API access requires INTERMÉDIAIRE or EXPERT plan
                      status:
                        type: number
                        example: 403
      security:
        - ApiKey: []
components:
  schemas:
    CreateSequenceDto:
      type: object
      properties:
        name:
          type: string
          description: Sequence name
          example: My Sales Sequence
        assignedToIds:
          description: OrganizationMembership IDs of users to assign this sequence to
          example:
            - 123e4567-e89b-12d3-a456-426614174001
            - 123e4567-e89b-12d3-a456-426614174002
          type: array
          items:
            type: string
        creatorId:
          type: string
          description: >-
            OrganizationMembership ID of the creator. Use the /users endpoint to
            get available organizationMembershipIds.
          example: 123e4567-e89b-12d3-a456-426614174000
        contactIds:
          description: Contact IDs to add to the sequence
          example:
            - 123e4567-e89b-12d3-a456-426614174010
            - 123e4567-e89b-12d3-a456-426614174011
          type: array
          items:
            type: string
      required:
        - name
        - assignedToIds
        - creatorId
    SequenceDto:
      type: object
      properties:
        id:
          type: string
          example: 123e4567-e89b-12d3-a456-426614174000
          description: Unique identifier of the sequence
        name:
          type: string
          example: My Sales Sequence
          description: Name of the sequence
        organizationMembershipId:
          type: string
          example: 123e4567-e89b-12d3-a456-426614174001
          description: OrganizationMembership ID of the creator
        createdAt:
          format: date-time
          type: string
          example: '2024-01-15T10:30:00.000Z'
          description: Date when the sequence was created
        updatedAt:
          format: date-time
          type: string
          example: '2024-01-15T10:30:00.000Z'
          description: Date when the sequence was last updated
        contactCount:
          type: number
          example: 150
          description: Number of contacts in the sequence
        assignedTo:
          description: List of users assigned to this sequence
          type: array
          items:
            $ref: '#/components/schemas/AssignedUserDto'
      required:
        - id
        - name
        - organizationMembershipId
        - createdAt
        - updatedAt
    AssignedUserDto:
      type: object
      properties:
        organizationMembershipId:
          type: string
          example: 123e4567-e89b-12d3-a456-426614174000
          description: OrganizationMembership ID of the assigned user
        firstName:
          type: object
          example: John
          description: First name of the assigned user
          nullable: true
        lastName:
          type: object
          example: Doe
          description: Last name of the assigned user
          nullable: true
        email:
          type: string
          example: john.doe@example.com
          description: Email of the assigned user
      required:
        - organizationMembershipId
        - email
  securitySchemes:
    ApiKey:
      scheme: bearer
      bearerFormat: API Key
      type: http
      description: Enter your API Key (sk_live_xxx or sk_test_xxx)

````