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

# Bulk create account contacts



## OpenAPI

````yaml post /v1/accounts/contacts/bulk
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/accounts/contacts/bulk:
    post:
      tags:
        - Accounts
      summary: Bulk create customer contacts
      parameters: []
      requestBody:
        required: true
        description: Bulk customer contact data
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkCreateCustomerContactsDto'
      responses:
        '200':
          description: Customer contacts created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerContactBulkResponseDto'
        '201':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerContactBulkResponseDto'
        '400':
          description: Bad request - validation errors or duplicate contacts
          content:
            application/json:
              example:
                statusCode: 400
                message: No contacts to create
                error: Bad Request
        '404':
          description: Not found - account or contact type not found
          content:
            application/json:
              example:
                statusCode: 404
                message: Account not found
                error: Not Found
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                statusCode: 500
                message: Internal server error
                error: Internal Server Error
components:
  schemas:
    BulkCreateCustomerContactsDto:
      type: object
      properties:
        contacts:
          description: Details of customer contacts to create
          type: array
          items:
            type: string
        accountIds:
          description: Account ID of the customer contacts
          example: A123
          type: array
          items:
            type: string
        contactType:
          type: string
          description: Contact type of the customer contacts
          example: CT123
        source:
          type: string
          description: Source of the customer contacts
          example: Slack
      required:
        - contacts
    CustomerContactBulkResponseDto:
      type: object
      properties:
        total:
          type: number
          description: The total number of contacts provided
        created:
          type: number
          description: The number of contacts created
        skipped:
          type: number
          description: >-
            The number of contacts skipped due to existing contacts with the
            same email.
      required:
        - total
        - created
        - skipped
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````