---
title: "Get import job history"
method: GET
path: "/projects/{projectId}/warehouse-sources/imports/{importId}/history"
tags: ["Warehouse Imports"]
---

# Get import job history

`GET /projects/{projectId}/warehouse-sources/imports/{importId}/history`

## Request

- Base URL: `https://mixpanel.com/api/query`
- URL: `https://mixpanel.com/api/query/projects/{projectId}/warehouse-sources/imports/{importId}/history`
- Auth: one of:
  - HTTP basic
  - HTTP basic
- TypeScript: <https://skmtc.dev/mixpanel/apis/query-api/docs/projects/:projectId/warehouse-sources/imports/:importId/history/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the execution history for a warehouse import. Returns 30 most recent events.

## Path parameters

- `projectId` integer, required
- `importId` integer, required

## Response `200`

Success

- object
  - `status` 'ok': "ok" if the request succeeded, "error" otherwise.
  - `results` ImportJobHistory
    - `runs` object[]
      - `status` 'RUNNING' | 'SUCCEEDED' | 'FAILED' | 'CANCELLED'
      - `start_time` integer, nullable
      - `end_time` integer, nullable
      - `num_events_imported` integer, nullable

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/mixpanel/apis/query-api.md) - [All operations](https://skmtc.dev/mixpanel/apis/query-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mixpanel/apis/query-api/revisions/f442da95252a?raw)
