---
title: "Create Storage Ingest Source"
method: POST
path: "/companies/{company_id}/storage-ingest-sources"
tags: ["companies"]
---

# Create Storage Ingest Source

`POST /companies/{company_id}/storage-ingest-sources`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/companies/{company_id}/storage-ingest-sources`
- Auth: none declared

Add a cloud-drive ingest source — a drive scan — over a linked storage connection
(accountant/owner).

``base_folder_ref`` is required (the folder picker commits it) — scanning is
always bounded to the selected base folder. No secret: credentials live on the
referenced connection.

## Path parameters

- `company_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Request body

- StorageIngestSourceCreate: ``POST /companies/<id>/storage-ingest-sources`` body (admin). ``base_folder_ref`` is REQUIRED — the folder picker commits it; a source can never be created unscoped (the whole point of the base folder is bounding the scan). The referenced connection must belong to the same company, be ``connected``, and its provider must support ingest (service-enforced).
  - `storage_connection_id` string, required
  - `label` string, required
  - `base_folder_ref` string, required
  - `base_folder_label` string, nullable
  - `direction` 'payable' | 'receivable'
  - `enabled` boolean
  - `poll_batch_cap` integer, nullable
  - `type_allowlist` string[], nullable
  - `include_existing` boolean

## Response `201`

Successful Response

- StorageIngestSourceResponse: ``GET/POST/PUT /storage-ingest-sources/...`` → ``{"storage_ingest_source": ...}``.
  - `storage_ingest_source` StorageIngestSourceOut, required: Serialized cloud-drive ingest source (no secret — credentials live on the referenced storage connection).
    - `id` string, required
    - `company_id` string, required
    - `storage_connection_id` string, required
    - `label` string, required
    - `enabled` boolean, required
    - `poll_batch_cap` integer, nullable
    - `base_folder_ref` string, nullable
    - `base_folder_label` string, nullable
    - `direction` 'payable' | 'receivable', required
    - `type_allowlist` string[], nullable
    - `ingest_since` string, date-time, required
    - `include_existing` boolean, required
    - `last_sync_at` string, date-time, nullable
    - `last_sync_error` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
