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

# Create a bulk import



## OpenAPI

````yaml /api-reference/openapi.json post /v1/imports
openapi: 3.1.0
info:
  title: Elastly API
  version: '2026-11-01'
servers:
  - url: https://api.elastly.ai
security: []
paths:
  /v1/imports:
    post:
      summary: Create a bulk import
      operationId: createImport
      parameters:
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
          required: false
          name: Elastly-Version
          in: header
        - schema:
            type: string
            pattern: ^[\x21-\x7e]{1,255}$
          required: true
          name: Idempotency-Key
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                object:
                  type: string
                  enum:
                    - catalog_items
                    - customers
                    - documents
                format:
                  type: string
                  enum:
                    - jsonl
                    - csv
              required:
                - object
                - format
              additionalProperties: false
              example:
                object: catalog_items
                format: jsonl
      responses:
        '201':
          description: Create a bulk import
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
            Idempotent-Replayed:
              description: >-
                Present and true when the response replays an earlier request
                with the same idempotency key
              schema:
                type: string
                enum:
                  - 'true'
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  object:
                    type: string
                    enum:
                      - catalog_items
                      - customers
                      - documents
                  source:
                    type: string
                    enum:
                      - api
                      - file
                      - sftp
                  format:
                    type:
                      - string
                      - 'null'
                    enum:
                      - jsonl
                      - csv
                      - null
                  state:
                    type: string
                    enum:
                      - awaiting_file
                      - uploaded
                      - queued
                      - staging
                      - projecting
                      - completed
                      - failed
                      - expired
                  counts:
                    type: object
                    properties:
                      received:
                        type: integer
                        minimum: 0
                      accepted:
                        type: integer
                        minimum: 0
                      imported:
                        type: integer
                        minimum: 0
                      unresolved:
                        type: integer
                        minimum: 0
                      failed:
                        type: integer
                        minimum: 0
                      stale:
                        type: integer
                        minimum: 0
                    required:
                      - received
                      - accepted
                      - imported
                      - unresolved
                      - failed
                      - stale
                    additionalProperties: false
                  error:
                    type:
                      - object
                      - 'null'
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    additionalProperties: false
                  createdAt:
                    type: string
                    format: date-time
                  committedAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                  completedAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                required:
                  - id
                  - object
                  - source
                  - format
                  - state
                  - counts
                  - error
                  - createdAt
                  - committedAt
                  - completedAt
                additionalProperties: false
        '400':
          description: >-
            unsupported_api_version, invalid_request, idempotency_key_required,
            invalid_idempotency_key, unsupported_format
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: unauthenticated
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: >-
            insufficient_scope, plan_required, workspace_read_only,
            workspace_locked, workspace_purging
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: connection_unavailable, idempotency_request_in_progress
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: idempotency_key_reused
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: rate_limited
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: service_unavailable, connection_unavailable
          headers:
            Elastly-Version:
              description: The API version that served the response
              schema:
                type: string
            Retry-After:
              description: Seconds to wait before retrying the request
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - apiKey: []
components:
  schemas:
    ApiError:
      type: object
      properties:
        error:
          type: string
          enum:
            - invalid_request
            - unauthenticated
            - access_denied
            - rate_limited
            - plan_required
            - workspace_read_only
            - workspace_locked
            - workspace_purging
            - service_unavailable
            - insufficient_scope
            - not_found
            - idempotency_key_reused
            - idempotency_key_required
            - invalid_idempotency_key
            - idempotency_request_in_progress
            - unsupported_api_version
            - invalid_cursor
            - quote_ref_customer_mismatch
            - channel_publishing
            - connection_unavailable
            - import_not_found
            - import_state_conflict
            - file_too_large
            - unsupported_format
            - writeback_unavailable
            - write_access_revoked
            - writeback_paused
            - too_many_claims
            - quote_not_found
        requestId:
          type: string
      required:
        - error
        - requestId
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

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