---
title: "Create import stream"
method: POST
path: "/import/streams"
tags: ["Import Streams"]
---

# Create import stream

`POST /import/streams`

Add a new import stream.

## Request body

- CreateStreamRequest
  - `stream` StreamOptions, required
    - `name` string, required — Name for this stream.
    - `is_enabled` boolean — Whether this stream is enabled.
    - `destination_id` string, uuid, required — The ID of the destination this stream connects to.
    - `dataset_id` string, uuid, required — The ID of the dataset this stream uses as source.
    - `mappings` MappingOptions[], required — Field mappings for this stream.
      - `field_type` string, required — Type of field mapping (field or expression).
      - `column` object — Column reference for field type mappings.
      - `expression` object — Configuration for expression field mappings.
      - `target_field` string, required — The target field name in the destination.

## Response `200`

OK

- object
  - `status` 'success', required
  - `data` GetStreamResponse, required
    - `stream` StreamResource, required
      - `id` string, required
      - `name` string, required
      - `is_enabled` boolean, required
      - `destination_id` string, required
      - `dataset_id` string, required
      - `mappings` MappingResource[], required
        - `field_type` string, required
        - `column` object
        - `expression` object
        - `target_field` string, required
      - `created_at` string, required
      - `updated_at` string, required
  - `message` string, required

## Other responses

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

---

[API](https://skmtc.dev/prequel/apis/prequel-data-export.md) · [All operations](https://skmtc.dev/prequel/apis/prequel-data-export/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prequel/prequel-data-export/revisions/09c662a871f8/schema)
