---
title: "Get all data sources"
method: GET
path: "/v1/data_sources/"
tags: ["data_sources"]
---

# Get all data sources

`GET /v1/data_sources/`

Get all data sources.

Returns:
    The list of data sources.

## Query parameters

- `limit` integer — Maximum number of items to return per page (1-100)
- `after` string, nullable — Cursor for forward pagination - get items after this position. Use last_cursor from previous response.
- `before` string, nullable — Cursor for backward pagination - get items before this position. Use first_cursor from previous response.
- `include_total` boolean — Whether to include total count in response (expensive operation)

## Response `200`

The list of data sources

- DataSourceListResponse — A list of data sources with pagination.
  - `pagination` CursorPaginationResponse, required — Response model for cursor-based pagination.
    - `has_more` boolean, required — Contextual direction-aware flag: True if more items exist in the requested pagination direction. For 'after': more items after this page. For 'before': more items before this page.
    - `first_cursor` string, nullable, required — Cursor of the first item in this page. Use for backward pagination. None if page is empty.
    - `last_cursor` string, nullable, required — Cursor of the last item in this page. Use for forward pagination. None if page is empty.
    - `total` integer, nullable — Total number of items available across all pages. Only included when include_total=true was requested. Expensive operation - use sparingly.
  - `data` DataSource[], required — The list of data sources
    - `id` string, required — The ID of the data source
    - `created_at` string, date-time, required — The creation time of the data source
    - `updated_at` string, date-time, required — The last update time of the data source
    - `type` 'notion' | 'linear', required
    - `name` string, required — The name of the data source
    - `metadata` unknown, required
    - `auth_params` union, required — Authentication parameters
      - DataSourceOAuth2Params — Authentication parameters for a OAuth data source.
        - `type` 'oauth2'
        - `created_at` string, date-time — The timestamp when the OAuth2 credentials were created
        - `scope` string, nullable — The OAuth2 scope
        - `access_token` string, nullable — The OAuth2 access token
        - `refresh_token` string, nullable — The OAuth2 refresh token
        - `token_type` string, nullable — The OAuth2 token type
        - `expires_on` string, date-time, nullable — The OAuth2 token expiration timestamp
        - `additional_params` object, nullable — Additional parameters for the OAuth2 flow
      - DataSourceApiKeyParams — Authentication parameters for a API key data source.
        - `type` 'api_key'
        - `api_key` string, required — The API key
    - `object` 'data_source' — The type of the object
  - `object` 'list' — The object type of the response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mixedbread/apis/mxbai-omni.md) · [All operations](https://skmtc.net/mixedbread/apis/mxbai-omni/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixedbread/mxbai-omni/versions/2eece97b5ae5/schema)
