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

# Upload entity ID dataset

## Description

The **Upload Entity ID Dataset** endpoint accepts a CSV of entity IDs and stores it as a reusable dataset. Use it when an async job's input list is larger than you want to send inline, or when the same list feeds several jobs.

<AccordionGroup>
  <Accordion title="How It Works">
    * **Input:** Upload a CSV file of entity IDs as `multipart/form-data`, along with the entity type, a name, and a description.
    * **Processing:** The system stores the list and assigns it an identifier.
    * **Output:** A `list_id` you can reference when submitting an async job, plus metadata about the stored dataset.
  </Accordion>

  <Accordion title="Request Schema">
    | Field         | Type   | Description                         |
    | :------------ | :----- | :---------------------------------- |
    | `file`        | file   | CSV file with entity IDs (Required) |
    | `entity_type` | string | Entity type (Required)              |
    | `name`        | string | Dataset name (Required)             |
    | `description` | string | Dataset description (Required)      |
  </Accordion>

  <Accordion title="Response Schema">
    | Field         | Type    | Description                              |
    | :------------ | :------ | :--------------------------------------- |
    | `list_id`     | string  | Identifier used to reference the dataset |
    | `name`        | string  | Dataset name                             |
    | `description` | string  | Dataset description                      |
    | `rowCount`    | integer | Number of entity IDs stored              |
    | `entityType`  | string  | Entity type of the stored IDs            |
    | `tenantId`    | string  | Tenant the dataset belongs to            |
    | `expiresAt`   | string  | When the stored dataset expires          |
  </Accordion>

  <Accordion title="Best Practices">
    * **Check `rowCount`** after upload to confirm the whole file was ingested.
    * **Mind `expiresAt`** — datasets are not stored indefinitely; re-upload before running a job against an expired list.
    * **Reuse one dataset across enrichments** instead of uploading the same IDs repeatedly.
    * **Keep async input within the 10,000-record limit** per job.
  </Accordion>
</AccordionGroup>

<Icon icon="thumbtack" iconType="solid" color="red" /> **See [async jobs](/v2/async-jobs) for how uploaded datasets feed into a job run.**


## OpenAPI

````yaml post /v2/async/entity-id-datasets/upload
openapi: 3.1.0
info:
  title: Partner Service
  version: 0.3.18
servers:
  - url: https://api.explorium.ai
    description: AgentSource Server
security: []
paths:
  /v2/async/entity-id-datasets/upload:
    post:
      tags:
        - EntityIdDatasets
      summary: Upload Entity Ids
      operationId: v2_entity_id_lists_upload
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_v2_entity_id_lists_upload'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2EntityIdsUploadResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - APIKeyHeader: []
components:
  schemas:
    Body_v2_entity_id_lists_upload:
      properties:
        file:
          type: string
          format: binary
          title: File
          description: CSV file with entity IDs
        entity_type:
          type: string
          enum:
            - business
            - prospect
          title: Entity Type
          description: Entity type
        name:
          type: string
          title: Name
          description: Dataset name
        description:
          type: string
          title: Description
          description: Dataset description
      type: object
      required:
        - file
        - entity_type
        - name
        - description
      title: Body_v2_entity_id_lists_upload
    V2EntityIdsUploadResponse:
      properties:
        list_id:
          type: string
          title: List Id
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        rowCount:
          type: integer
          title: Rowcount
        entityType:
          type: string
          enum:
            - business
            - prospect
          title: Entitytype
        tenantId:
          type: string
          title: Tenantid
        expiresAt:
          type: string
          format: date-time
          title: Expiresat
      type: object
      required:
        - list_id
        - name
        - description
        - rowCount
        - entityType
        - tenantId
        - expiresAt
      title: V2EntityIdsUploadResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: api_key

````