---
title: "GET /external-services/{id}/data-imports/{run_id}"
method: GET
path: "/external-services/{id}/data-imports/{run_id}"
tags: ["External Services"]
---

# GET /external-services/{id}/data-imports/{run_id}

`GET /external-services/{id}/data-imports/{run_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/external-services/{id}/data-imports/{run_id}`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required
- `run_id` integer, required

## Response `200`

The data import run

- DataImportRunResponse: One data import run.
  - `atomic` boolean, required: Whether a failed run leaves no imported data behind.
  - `cancel_requested` boolean, required
  - `created_at` string, date-time, required
  - `created_by` integer, nullable
  - `error_message` string, nullable: Why the run did not succeed, in one or two sentences.
  - `finished_at` string, date-time, nullable
  - `helper_output` string, nullable: Last lines the transfer printed (dump/restore tool output), with every secret removed. Present for successful runs too.
  - `id` integer, required
  - `phase` string, required: `preparing_target`, `transferring`, `verifying` or `finished`. Only a successful run reaches `finished`; otherwise this is where it stopped.
  - `replace_existing` boolean, required
  - `service_id` integer, required
  - `service_type` string, required
  - `source` string, required: Source connection string with its credentials masked.
  - `source_database` string, required
  - `started_at` string, date-time, required
  - `started_by` DataImportRunStarter, nullable: The user who started a data import.
    - `email` string, required
    - `name` string, required
    - `user_id` integer, required
  - `status` string, required: `running`, `succeeded`, `failed`, `cancelled` or `interrupted`.
  - `target_database` string, required
  - `target_object_count` integer, nullable: Tables/collections in the target after a successful import.
  - `target_size_bytes` integer, nullable
  - `timeout_seconds` integer, required
  - `updated_at` string, date-time, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Service or run not found
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-08** `60e75ea854a4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:id/data-imports/:run_id/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
