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

# Bulk create contacts

> Create up to 100 contacts in bulk. Each contact requires firstName, at least one of email or linkedinUrl, and at least one tag (tags or tagIds). The request fails entirely if any contact is invalid.



## OpenAPI

````yaml https://api.salesforge.ai/public/v2/swagger/doc.json post /workspaces/{workspaceID}/contacts/bulk
openapi: 3.1.0
info:
  description: Get mailboxes associated with the workspace.
  termsOfService: https://www.salesforge.ai/terms
  title: Salesforge API
  version: '2.0'
servers:
  - url: https://api.salesforge.ai/public/v2
security:
  - ApiKeyAuth: []
externalDocs:
  description: ''
  url: ''
paths:
  /workspaces/{workspaceID}/contacts/bulk:
    post:
      tags:
        - Contacts
      summary: Bulk create contacts
      description: >-
        Create up to 100 contacts in bulk. Each contact requires firstName, at
        least one of email or linkedinUrl, and at least one tag (tags or
        tagIds). The request fails entirely if any contact is invalid.
      parameters:
        - description: Workspace ID
          in: path
          name: workspaceID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api.BulkCreateContactsRequest'
              description: Request body
              summary: request
        description: Request body
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.BulkCreateContactsResponse'
          description: Contacts
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.Error'
          description: Bad Request
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.Error'
          description: Internal Server Error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    api.BulkCreateContactsRequest:
      properties:
        contacts:
          items:
            $ref: '#/components/schemas/api.CreateSimpleLeadRequest'
          maxItems: 100
          minItems: 1
          type: array
          uniqueItems: false
      type: object
    api.BulkCreateContactsResponse:
      properties:
        contacts:
          items:
            $ref: '#/components/schemas/api.ContactResponse'
          type: array
          uniqueItems: false
      type: object
    errors.Error:
      allOf:
        - $ref: '#/components/schemas/data'
      properties:
        data: {}
        message:
          type: string
      type: object
    api.CreateSimpleLeadRequest:
      properties:
        company:
          minLength: 1
          type: string
        customVars:
          $ref: '#/components/schemas/api.FlexibleStringMap'
        email:
          description: >-
            Email of the contact. At least one of email or linkedinUrl is
            required.
          type: string
        firstName:
          type: string
        lastName:
          type: string
        linkedinUrl:
          description: >-
            LinkedIn URL of the contact. At least one of email or linkedinUrl is
            required.
          type: string
        position:
          type: string
        tagIds:
          description: >-
            Existing tag IDs to apply to the contact. Bulk create requires at
            least one of tags or tagIds.
          items:
            type: string
          type: array
          uniqueItems: false
        tags:
          description: >-
            Tag names to apply to the contact. Bulk create requires at least one
            of tags or tagIds.
          items:
            type: string
          type: array
          uniqueItems: false
      required:
        - firstName
      type: object
    api.ContactResponse:
      properties:
        company:
          type: string
        customVars:
          additionalProperties:
            type: string
          type: object
        email:
          type: string
        firstName:
          type: string
        id:
          type: string
        lastName:
          type: string
        linkedinUrl:
          type: string
        position:
          type: string
        sequences:
          items:
            $ref: '#/components/schemas/api.ContactSequenceResponse'
          type: array
          uniqueItems: false
        tags:
          items:
            type: string
          type: array
          uniqueItems: false
      type: object
    data:
      properties:
        data:
          items:
            $ref: '#/components/schemas/api.DNCResponse'
          type: array
      type: object
    api.FlexibleStringMap:
      additionalProperties:
        type: string
      type: object
    api.ContactSequenceResponse:
      properties:
        id:
          type: string
        name:
          type: string
        status:
          $ref: '#/components/schemas/models.SequenceLeadStatus'
      type: object
    api.DNCResponse:
      properties:
        createdAt:
          type: string
        type:
          $ref: '#/components/schemas/models.DncType'
        value:
          type: string
      type: object
    models.SequenceLeadStatus:
      enum:
        - none
        - ooo
        - bounced
        - bounce-protect
        - replied
        - failed
        - active
        - paused
        - finished
        - dnc
        - deleted
        - unsubscribed
        - contacted
        - multi-threading
      type: string
      x-enum-varnames:
        - SequenceLeadStatusNone
        - SequenceLeadStatusOOO
        - SequenceLeadStatusBounced
        - SequenceLeadStatusBounceProtect
        - SequenceLeadStatusReplied
        - SequenceLeadStatusFailed
        - SequenceLeadStatusActive
        - SequenceLeadStatusPaused
        - SequenceLeadStatusFinished
        - SequenceLeadStatusDNC
        - SequenceLeadStatusDeleted
        - SequenceLeadStatusUnsubscribed
        - SequenceLeadStatusContacted
        - SequenceLeadStatusPausedCompanyMultiThreading
    models.DncType:
      enum:
        - email
        - domain
        - linkedin
      type: string
      x-enum-varnames:
        - DncTypeEmail
        - DncTypeDomain
        - DncTypeLinkedin
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: Authorization
      type: apiKey

````

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