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

# Import lead

> Import lead to a sequence. 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 put /workspaces/{workspaceID}/sequences/{sequenceID}/import-lead
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}/sequences/{sequenceID}/import-lead:
    put:
      tags:
        - Sequences
      summary: Import lead
      description: >-
        Import lead to a sequence. 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
        - description: Sequence ID
          in: path
          name: sequenceID
          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:
        '204':
          description: Lead imported successfully
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.Error'
          description: Bad Request
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.Error'
          description: Insufficient active contact capacity
        '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
    errors.Error:
      allOf:
        - $ref: '#/components/schemas/data'
      properties:
        data: {}
        message:
          type: string
      type: object
    api.FlexibleStringMap:
      additionalProperties:
        type: string
      type: object
    data:
      properties:
        data:
          items:
            $ref: '#/components/schemas/api.DNCResponse'
          type: array
      type: object
    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.