---
title: "Get List Of Data Sources Linked To Assistant Id"
method: GET
path: "/api/v1/assistant/{assistant_id}/data_sources"
tags: ["Assistant"]
---

# Get List Of Data Sources Linked To Assistant Id

`GET /api/v1/assistant/{assistant_id}/data_sources`

Retrieve data sources. Requires admin or manager role

Required roles:
- admin
- manager

## Path parameters

- `assistant_id` string, uuid, required

## Query parameters

- `page` integer
- `size` integer

## Response `200`

Successful Response

- IGetResponsePaginatedIDataSourceRead
  - `message` string, nullable
  - `meta` object
  - `data` PageBaseIDataSourceRead, required
    - `items` IDataSourceRead[], required
      - `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
    - `total` integer, nullable, required
    - `page` integer, nullable, required
    - `size` integer, nullable, required
    - `pages` integer, nullable
    - `previous_page` integer, nullable — Page number of the previous page
    - `next_page` integer, nullable — Page number of the next page

## 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/versions/cdca56191be9/schema)
