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

# batch create interaction

> Creates up to 100 interactions in one request. Each item is processed independently (not atomic) — a failure on one item does not affect the others. Always returns 200; inspect `data.summary.failed` and each item's `status` to see what succeeded.



## OpenAPI

````yaml /api/v2/openapi.json post /interactions/batch
openapi: 3.1.0
info:
  title: Klipy API
  version: '2'
  description: Klipy public CRM API, version 2.
servers:
  - url: https://api.klipy.ai/api/v2
security:
  - ApiKeyHeader: []
  - BearerAuth: []
paths:
  /interactions/batch:
    post:
      tags:
        - interactions
      summary: batch create interaction
      description: >-
        Creates up to 100 interactions in one request. Each item is processed
        independently (not atomic) — a failure on one item does not affect the
        others. Always returns 200; inspect `data.summary.failed` and each
        item's `status` to see what succeeded.
      operationId: batchCreate_interactions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              description: >-
                An array of up to 100 items to create. Each item is processed as
                an independent transaction; the response is a multi-status
                envelope.
              maxItems: 100
              minItems: 1
              items:
                type: object
                properties:
                  contact_ids:
                    type: array
                    items:
                      type: string
                  direction:
                    enum:
                      - INBOUND
                      - OUTBOUND
                      - HYBRID
                      - INTERNAL
                      - EVENT
                  interaction_date:
                    type: number
                  summary:
                    type: string
                  title:
                    type: string
                  type:
                    enum:
                      - MANUAL
                      - MEMO
                      - DIRECT_MESSAGE
                required:
                  - contact_ids
                  - direction
                  - interaction_date
                  - title
                  - type
      responses:
        '200':
          $ref: '#/components/responses/Batch'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    Batch:
      description: >-
        A batch-create multi-status result. Always 200; per-item outcomes and a
        summary live in the body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BatchEnvelope'
    Unauthorized:
      description: Authentication failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Forbidden:
      description: Insufficient scope or forbidden operation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    ValidationFailed:
      description: Request body validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: Rate limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InternalError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  schemas:
    BatchEnvelope:
      type: object
      properties:
        data:
          type: object
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/BatchItemResult'
            summary:
              $ref: '#/components/schemas/BatchSummary'
        meta:
          $ref: '#/components/schemas/Meta'
        object:
          type: string
    ErrorEnvelope:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            details:
              type: array
              items:
                type: object
            message:
              type: string
        meta:
          $ref: '#/components/schemas/Meta'
        object:
          type: string
    BatchItemResult:
      type: object
      properties:
        data:
          type: object
        error:
          type: object
          properties:
            code:
              type: string
            details:
              type: array
              items:
                type: object
            message:
              type: string
        index:
          type: integer
        status:
          type: string
          enum:
            - created
            - error
    BatchSummary:
      type: object
      properties:
        failed:
          type: integer
        succeeded:
          type: integer
        total:
          type: integer
    Meta:
      type: object
      properties:
        api_version:
          type: string
        request_id:
          type: string
        timestamp:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-Klipy-Api-Key
    BearerAuth:
      type: http
      scheme: bearer

````