---
title: "Import from data sources"
method: POST
path: "/datasources/import"
tags: ["datasources"]
---

# Import from data sources

`POST /datasources/import`

Creates an import job from selected files in the data sources bucket

## Request body

- ModelsDataSourcesImportRequest
  - `business_node_id` string — BusinessNodeID is the business node (must be a leaf node) to associate imported documents with.
  - `keys` string[] — Keys are the object keys (paths) of files to import from the data sources bucket. These are relative to the business's directory (e.g., "data-source-name/folder/file.pdf").
  - `name` string — Name is an optional name for the import job.
  - `replace_existing` boolean — ReplaceExisting if true will re-process documents with the same filename.

## Response `200`

OK

- ModelsDataSourcesImportResponse
  - `files_queued` integer
  - `files_skipped` integer
  - `import_id` string
  - `message` string
  - `supplier_imports` ModelsSupplierImportInfo[] — Supplier catalogs detected and routed
    - `classification_system` string
    - `files_detected` integer
    - `media_files_detected` integer
    - `supplier_name` string
  - `unsupported_examples` string[] — First few unsupported filenames
  - `unsupported_files` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/resourcly/apis/resourcly-api.md) · [All operations](https://skmtc.net/resourcly/apis/resourcly-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/resourcly/resourcly-api/revisions/7f97d8cd0f1e/schema)
