---
title: "Run Test Import"
method: POST
path: "/companies/{company_id}/sources/{source_id}/test-import"
tags: ["sources"]
---

# Run Test Import

`POST /companies/{company_id}/sources/{source_id}/test-import`

## Request

- Base URL: `https://app.zalster.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zalster.com/companies/{company_id}/sources/{source_id}/test-import`
- Auth: none declared

Preview a bounded sample through the real pipeline, writing nothing.

## Path parameters

- `company_id` string, uuid, required: Company id
- `source_id` string, uuid, required: Source id

## Request body

- TestImportRequest
  - `document` object, nullable
  - `import_scope` ImportScopeIn: Which part of the feed an import brings in (decision 96). Every field is optional, and a scope that narrows nothing is the whole feed. The bounds, and the rule that ``filter`` and ``external_ids`` do not go together, are checked by ``core.pipeline.scope.normalize_import_scope``, which answers 400 ``invalid-import-scope`` naming each problem.
    - `filter` object, nullable
    - `external_ids` string[], nullable
    - `limit` integer, nullable
    - `pick` 'first' | 'spread'

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zalster/apis/zalster-feed-processor.md) - [All operations](https://skmtc.dev/zalster/apis/zalster-feed-processor/llms.txt) - [OpenAPI document](https://skmtc.dev/zalster/apis/zalster-feed-processor/revisions/d0b9dc66ad36?raw)
