> ## 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.

# Create contact

> Create a new contact. Requires at least one of email or linkedinUrl. If no tag is provided, a default date-based tag is applied automatically.



## OpenAPI

````yaml https://api.salesforge.ai/public/v2/swagger/doc.json post /workspaces/{workspaceID}/contacts
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:
    post:
      tags:
        - Contacts
      summary: Create contact
      description: >-
        Create a new contact. Requires at least one of email or linkedinUrl. If
        no tag is provided, a default date-based tag is applied automatically.
      parameters:
        - description: Workspace ID
          in: path
          name: workspaceID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api.CreateSimpleLeadRequest'
              description: Request body
              summary: request
        description: Request body
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ContactResponse'
          description: Contact
        '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.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
    errors.Error:
      allOf:
        - $ref: '#/components/schemas/data'
      properties:
        data: {}
        message:
          type: string
      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
    data:
      properties:
        data:
          items:
            $ref: '#/components/schemas/api.DNCResponse'
          type: array
      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
    api.DNCResponse:
      properties:
        createdAt:
          type: string
        type:
          $ref: '#/components/schemas/models.DncType'
        value:
          type: string
      type: object
    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.