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

# List contact imports

> Lists CSV imports started with `POST /api/v2/lifecycle/contacts/imports`, newest first. Use `GET /api/v2/lifecycle/contacts/imports/{id}` for the invalid rows download URL. Pages with `cursor`: pass `next_cursor` from the previous page unchanged.


Requires one of the following scopes: `lifecycle_contacts:read`, `lifecycle_contacts:all`, `all:read`, `all:all`



## OpenAPI

````yaml https://api.instantly.ai/openapi/api_v2_lifecycle.json get /api/v2/lifecycle/contacts/imports
openapi: 3.1.0
info:
  title: API Explorer
  description: >-
    The entire API V2 documentation is interactive and can be tested here. To
    the right side of every endpoint you will see a box with an example request.
    You can click on the "Try it" button to send a request to the server right
    from the docs. You will need to provide an API key by clicking the
    `ApiKeyAuth_token` blue text.
  version: 2.0.0
servers:
  - url: https://api.instantly.ai
    description: Instantly API Server
security:
  - ApiKeyAuth: []
tags:
  - name: Contact
    description: >-
      A contact in the workspace: one email address with its consent, tags and
      custom attributes. Segments, and the broadcasts and journeys that target
      them, read contacts. Optional fields with no value are left out of
      responses. The contact list, contact imports and tags page with `cursor`:
      pass the previous page's `next_cursor` until there is none. A contact's
      emails page with `starting_after` and `next_starting_after`.
    x-group: Contact
  - name: Segment
    description: >-
      A saved set of rules that selects contacts. Membership is worked out each
      time the segment is used. Optional fields with no value are left out of
      responses. Lists page with `cursor`: pass the previous page's
      `next_cursor` until there is none.
    x-group: Segment
  - name: Broadcast
    description: >-
      An email marketing broadcast campaign. Optional fields with no value are
      left out of responses. Lists page with `starting_after`: pass the previous
      page's `next_starting_after` until there is none.
    x-group: Broadcast
  - name: Domain
    description: >-
      An email sending domain. Optional fields with no value are left out of
      responses. Lists page with `starting_after`: pass the previous page's
      `next_starting_after` until there is none.
    x-group: Domain
  - name: Journey
    description: >-
      A customer journey, triggered by an event or by membership of a segment.
      Optional fields with no value are left out of responses. Lists page with
      `starting_after`: pass the previous page's `next_starting_after` until
      there is none. Step contacts page with `cursor` and `next_cursor` instead.
    x-group: Journey
  - name: EventCatalogEntry
    description: >-
      An event type seen in this workspace, which journey triggers and
      conversions can use. Optional fields with no value are left out of
      responses. Lists page with `starting_after`: pass the previous page's
      `next_starting_after` until there is none.
    x-group: Event Catalog Entry
  - name: Template
    description: >-
      An email marketing template. Optional fields with no value are left out of
      responses. Lists page with `starting_after`: pass the previous page's
      `next_starting_after` until there is none.
    x-group: Template
  - name: TemplateAsset
    description: >-
      An image or file uploaded for use in email templates. Optional fields with
      no value are left out of responses. Lists page with `starting_after`: pass
      the previous page's `next_starting_after` until there is none.
    x-group: Template Asset
  - name: EmailMetrics
    description: >-
      Aggregated email marketing metrics including totals, time-series data, and
      metadata.
    x-group: Email Metrics
  - name: Conversion
    description: >-
      A conversion event received for a person, credited to the emails they got
      before it.
    x-group: Conversion
paths:
  /api/v2/lifecycle/contacts/imports:
    get:
      tags:
        - Contact
      summary: List contact imports
      description: >-
        Lists CSV imports started with `POST
        /api/v2/lifecycle/contacts/imports`, newest first. Use `GET
        /api/v2/lifecycle/contacts/imports/{id}` for the invalid rows download
        URL. Pages with `cursor`: pass `next_cursor` from the previous page
        unchanged.



        Requires one of the following scopes: `lifecycle_contacts:read`,
        `lifecycle_contacts:all`, `all:read`, `all:all`
      operationId: listContactImports
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
            example: 50
          example: 50
          in: query
          name: limit
          required: false
          description: Number of imports to return, 1 to 100. Default 50.
        - schema:
            type: string
            minLength: 1
            example: eyJQSyI6Ii4uLiJ9
          example: eyJQSyI6Ii4uLiJ9
          in: query
          name: cursor
          required: false
          description: The `next_cursor` value from the previous page
      responses:
        '200':
          description: A page of contact imports
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          examples:
                            - 01234567-89ab-cdef-0123-456789abcdef
                          description: Unique import identifier
                          example: 01234567-89ab-cdef-0123-456789abcdef
                        status:
                          type: string
                          enum:
                            - uploading
                            - validating
                            - chunking
                            - validation_completed
                            - importing
                            - completed
                            - failed
                          examples:
                            - completed
                          description: >-
                            Current import status. `completed` and `failed` are
                            final.
                          example: completed
                        stalled:
                          type: boolean
                          examples:
                            - false
                          description: >-
                            True when an unfinished import is no longer making
                            progress
                          example: false
                        file_name:
                          type: string
                          examples:
                            - contacts.csv
                          description: Name of the uploaded file
                          example: contacts.csv
                        processing_error:
                          type:
                            - 'null'
                            - object
                          properties:
                            type:
                              type: string
                              enum:
                                - COLUMN_ERROR
                                - PARSING_ERROR
                                - PROCESSING_ERROR
                                - IMPORT_ERROR
                              examples:
                                - PARSING_ERROR
                              description: Error type
                              example: PARSING_ERROR
                            message:
                              type: string
                              examples:
                                - The file could not be parsed
                              description: Error message
                              example: The file could not be parsed
                          description: >-
                            Why the import failed. Null unless `status` is
                            `failed`.
                        stats:
                          type:
                            - 'null'
                            - object
                          properties:
                            total:
                              type: number
                              examples:
                                - 1000
                              description: Rows in the file
                              example: 1000
                            valid:
                              type: number
                              examples:
                                - 990
                              description: Rows that passed validation
                              example: 990
                            invalid:
                              type: number
                              examples:
                                - 10
                              description: Rows that failed validation
                              example: 10
                            errors:
                              type: object
                              additionalProperties:
                                type: number
                                examples:
                                  - 1
                                example: 1
                              description: Invalid rows by reason
                          description: >-
                            Validation results. Null until the file has been
                            validated.
                        rows_processed:
                          type: number
                          examples:
                            - 990
                          description: >-
                            Valid rows saved so far. Rows counted in
                            `rows_failed` are not included.
                          example: 990
                        persons_created:
                          type: number
                          examples:
                            - 950
                          description: Contacts created by this import
                          example: 950
                        rows_failed:
                          type: number
                          examples:
                            - 0
                          description: Valid rows that could not be saved
                          example: 0
                        failure_reasons:
                          type: object
                          additionalProperties:
                            type: number
                            examples:
                              - 1
                            example: 1
                          description: Rows that could not be saved, by reason
                        failure_limits:
                          type: object
                          additionalProperties:
                            type: number
                            examples:
                              - 1
                            example: 1
                          description: >-
                            Rows counted under the `limit_exceeded` reason, by
                            the contact limit they hit (for example
                            `custom_attributes` when a contact would have more
                            than 250 custom attributes)
                        skipped_columns:
                          type: array
                          description: >-
                            Columns that were not imported. Holds at most the
                            first 100 entries; `skipped_columns_count` is the
                            full total.
                          items:
                            type: object
                            properties:
                              index:
                                type: number
                                examples:
                                  - 4
                                description: >-
                                  1-based position of the column in the header
                                  row
                                example: 4
                              name:
                                type: string
                                examples:
                                  - Plan
                                description: >-
                                  Column header as written; empty for a blank
                                  header
                                example: Plan
                              reason:
                                type: string
                                examples:
                                  - duplicate
                                enum:
                                  - duplicate
                                  - blank
                                  - limit_exceeded
                                  - invalid_name
                                description: Why the column was not imported
                                x-enumDescriptions:
                                  duplicate: >-
                                    The header appears earlier in the file; only
                                    the first one is imported
                                  blank: The header is empty
                                  limit_exceeded: >-
                                    The file has more custom attribute columns
                                    than a contact supports
                                  invalid_name: >-
                                    The header is too long or is not an allowed
                                    name
                                example: duplicate
                            required:
                              - index
                              - name
                              - reason
                        skipped_columns_count:
                          type: number
                          examples:
                            - 0
                          description: Total number of columns that were not imported
                          example: 0
                        tag_id:
                          type:
                            - 'null'
                            - string
                          examples:
                            - 01234567-89ab-cdef-0123-456789abcdef
                          description: Tag applied to the imported contacts
                          example: 01234567-89ab-cdef-0123-456789abcdef
                        segment_id:
                          type:
                            - 'null'
                            - string
                          examples:
                            - 01234567-89ab-cdef-0123-456789abcdef
                          description: Segment created for this import, if requested
                          example: 01234567-89ab-cdef-0123-456789abcdef
                        timestamp_created:
                          type:
                            - 'null'
                            - string
                          format: date-time
                          examples:
                            - '2026-10-06T09:00:00.000Z'
                          description: When the import was created
                          example: '2026-10-06T09:00:00.000Z'
                        timestamp_completed:
                          type:
                            - 'null'
                            - string
                          format: date-time
                          examples:
                            - '2026-10-06T09:05:00.000Z'
                          description: When the import finished
                          example: '2026-10-06T09:05:00.000Z'
                      required:
                        - id
                        - status
                        - stalled
                        - file_name
                        - processing_error
                        - stats
                        - rows_processed
                        - persons_created
                        - rows_failed
                        - failure_reasons
                        - failure_limits
                        - skipped_columns
                        - skipped_columns_count
                        - tag_id
                        - segment_id
                        - timestamp_created
                        - timestamp_completed
                      additionalProperties: false
                    description: Imports, newest first
                  next_cursor:
                    type:
                      - 'null'
                      - string
                    examples:
                      - eyJQSyI6Ii4uLiJ9
                    description: >-
                      Pass as `cursor` to get the next page. Null on the last
                      page.
                    example: eyJQSyI6Ii4uLiJ9
                required:
                  - items
                  - next_cursor
                additionalProperties: false
        '400':
          description: >-
            The request is invalid. `message` names the field and the problem.
            `code` is `FST_ERR_VALIDATION` when the request does not match this
            schema and `VALIDATION_ERROR` when a value is refused after that. A
            request the resource's current state does not allow, such as pausing
            a broadcast that is not sending, has its own `code` named on that
            operation. `code` is absent on a few request-level checks.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  The request is invalid. `message` names the field and the
                  problem. `code` is `FST_ERR_VALIDATION` when the request does
                  not match this schema and `VALIDATION_ERROR` when a value is
                  refused after that. A request the resource's current state
                  does not allow, such as pausing a broadcast that is not
                  sending, has its own `code` named on that operation. `code` is
                  absent on a few request-level checks.
                properties:
                  statusCode:
                    type: number
                    example: 400
                  error:
                    type: string
                    example: Bad Request
                  message:
                    type: string
                    example: 'limit: must be at most 50'
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: VALIDATION_ERROR
        '401':
          description: >-
            This request is unauthorized (either the Authorization header is
            missing or invalid, or the API key has been revoked)
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    enum:
                      - 401
                    examples:
                      - 401
                    example: 401
                  error:
                    type: string
                    enum:
                      - Unauthorized
                    examples:
                      - Unauthorized
                    example: Unauthorized
                  message:
                    type: string
                    examples:
                      - Missing Authorization header
                    example: Missing Authorization header
                required:
                  - statusCode
                  - error
                  - message
        '402':
          description: >-
            This request cannot be fulfilled because the workspace does not have
            an active paid plan
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    enum:
                      - 402
                    examples:
                      - 402
                    example: 402
                  error:
                    type: string
                    enum:
                      - Payment Required
                    examples:
                      - Payment Required
                    example: Payment Required
                  message:
                    type: string
                    examples:
                      - Workspace does not have an active paid plan
                    example: Workspace does not have an active paid plan
                required:
                  - statusCode
                  - error
                  - message
        '403':
          description: >-
            The workspace may not perform this action, for example while it is
            suspended. A key without the required scope gets a 401.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  The workspace may not perform this action, for example while
                  it is suspended. A key without the required scope gets a 401.
                properties:
                  statusCode:
                    type: number
                    example: 403
                  error:
                    type: string
                    example: Forbidden
                  message:
                    type: string
                    example: >-
                      Workspace suspended due to a high bounce or spam complaint
                      rate. Please contact support.
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: WORKSPACE_SUSPENDED
        '404':
          description: The resource does not exist in this workspace.
          content:
            application/json:
              schema:
                type: object
                description: The resource does not exist in this workspace.
                properties:
                  statusCode:
                    type: number
                    example: 404
                  error:
                    type: string
                    example: Not Found
                  message:
                    type: string
                    example: Not found
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: NOT_FOUND
        '408':
          description: >-
            The request timed out. The outcome is unknown: a write may or may
            not have been applied. Read the resource back before retrying.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  The request timed out. The outcome is unknown: a write may or
                  may not have been applied. Read the resource back before
                  retrying.
                properties:
                  statusCode:
                    type: number
                    example: 408
                  error:
                    type: string
                    example: Request Timeout
                  message:
                    type: string
                    example: An internal error occurred
        '409':
          description: The request conflicts with the current state of the resource.
          content:
            application/json:
              schema:
                type: object
                description: The request conflicts with the current state of the resource.
                properties:
                  statusCode:
                    type: number
                    example: 409
                  error:
                    type: string
                    example: Conflict
                  message:
                    type: string
                    example: The resource has changed. Reload it and try again.
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: CONFLICT
        '429':
          description: >-
            You have exceeded the rate limit. Please check the rate limit docs
            for more information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    enum:
                      - 429
                    examples:
                      - 429
                    example: 429
                  error:
                    type: string
                    enum:
                      - Too Many Requests
                    examples:
                      - Too Many Requests
                    example: Too Many Requests
                  message:
                    type: string
                    examples:
                      - Rate limit exceeded
                    example: Rate limit exceeded
                required:
                  - statusCode
                  - error
                  - message
        '500':
          description: >-
            An internal error occurred. The outcome is unknown: a write may or
            may not have been applied. Read the resource back before retrying.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  An internal error occurred. The outcome is unknown: a write
                  may or may not have been applied. Read the resource back
                  before retrying.
                properties:
                  statusCode:
                    type: number
                    example: 500
                  error:
                    type: string
                    example: Internal Server Error
                  message:
                    type: string
                    example: An internal error occurred
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer

````

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