---
title: "Create Data Source"
method: POST
path: "/api/v1/datasource"
tags: ["Data Source"]
---

# Create Data Source

`POST /api/v1/datasource`

Create a new datasource

## Request body

- IDataSourceCreate
  - `ds_type` 'pdf' | 'doc' | 'http' | 'tool' | 'text_blob' | 'image' | 'text_image', required
  - `name` string, nullable
  - `description` string, nullable
  - `attributes` object
  - `ds_status` 'empty' | 'initialized' | 'queued' | 'crawling' | 'in_process' | 'retry_pending' | 'ready_for_use' | 'failed'
  - `org_id` string, uuid, nullable

## Response `201`

Successful Response

- IPostResponseBaseIDataSourceRead
  - `message` string, nullable
  - `meta` union
    - object
    - unknown
  - `data` IDataSourceRead
    - `ds_type` 'pdf' | 'doc' | 'http' | 'tool' | 'text_blob' | 'image' | 'text_image', required
    - `name` string, nullable
    - `description` string, nullable
    - `attributes` object
    - `ds_status` 'empty' | 'initialized' | 'queued' | 'crawling' | 'in_process' | 'retry_pending' | 'ready_for_use' | 'failed'
    - `org_id` string, uuid, nullable
    - `id` string, uuid, required

## Other responses

- `422` — Validation Error

---

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