---
updatedAt: 2026-10-25T15:46:36.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Get Dataset Sources

Retrieve all Dataset Sources based on the provided filters.

- **source_id**: ID of the source
- **folder**: Path within the bucket to ingest data from
- **id**: ID of the dataset source
- **dataset_id**: ID of the dataset
- **created_by**: Creator of the dataset source
- **ingest_type**: Type of ingestion

Returns a paged list of dataset sources. Filter by `source_id`, `dataset_id`, `folder`, `id`, `created_by`, or `ingest_type`.

## When to use it

Use it to find every dataset fed by one source, or every source feeding one dataset.

## Required parameters

This call takes no required parameters.

Optional query parameters: `source_id`, `folder`, `id`, `dataset_id`, `created_by`, `ingest_type`. Use `page` and `size` to page through the results.

## Response

A successful call returns `200 OK` with a page of `DatasetSourceResponseWithSource` objects in `items`, plus `total`, `page`, `size`, `pages`, and the `next`, `previous`, `first`, and `last` page links.

**Related:** [Get a dataset source](https://docs.superwise.ai/reference/get_dataset_source), [Create a dataset source](https://docs.superwise.ai/reference/create_dataset_source), [List sources](https://docs.superwise.ai/reference/get_sources)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/dataset-sources": {
      "get": {
        "tags": [
          "Dataset-sources"
        ],
        "summary": "Get Dataset Sources",
        "description": "Retrieve all Dataset Sources based on the provided filters.\n\n- **source_id**: ID of the source\n- **folder**: Path within the bucket to ingest data from\n- **id**: ID of the dataset source\n- **dataset_id**: ID of the dataset\n- **created_by**: Creator of the dataset source\n- **ingest_type**: Type of ingestion",
        "operationId": "get_dataset_sources",
        "parameters": [
          {
            "name": "source_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source Id"
            }
          },
          {
            "name": "folder",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Folder"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Id"
            }
          },
          {
            "name": "dataset_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Dataset Id"
            }
          },
          {
            "name": "created_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Created By"
            }
          },
          {
            "name": "ingest_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/IngestType"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Ingest Type"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "description": "Page number",
              "default": 1,
              "title": "Page"
            },
            "description": "Page number"
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "description": "Page size",
              "default": 50,
              "title": "Size"
            },
            "description": "Page size"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_DatasetSourceResponseWithSource_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "info": {
    "title": "Superwise Main Entities",
    "description": "API reference",
    "version": "0.1.0"
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "DatasetSourceResponseWithSource": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "source_id": {
            "type": "string",
            "format": "uuid",
            "title": "Source Id"
          },
          "internal_dataset_id": {
            "type": "string",
            "title": "Internal Dataset Id"
          },
          "folder": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Folder"
          },
          "query": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Query"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "created_by": {
            "type": "string",
            "title": "Created By"
          },
          "ingest_type": {
            "$ref": "#/components/schemas/IngestType",
            "default": "insert"
          },
          "increment_field_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IncrementFieldType"
              },
              {
                "type": "null"
              }
            ]
          },
          "increment_field_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Increment Field Name"
          },
          "table_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Table Name"
          },
          "data_retrieval_cron_expression": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data Retrieval Cron Expression"
          },
          "increment_field_last_value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Increment Field Last Value"
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SourceGetS3"
              },
              {
                "$ref": "#/components/schemas/SourceGetAzure"
              },
              {
                "$ref": "#/components/schemas/SourceGetGCS"
              }
            ],
            "title": "Source",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "AZURE_BLOB_STORAGE": "#/components/schemas/SourceGetAzure",
                "GCS": "#/components/schemas/SourceGetGCS",
                "S3": "#/components/schemas/SourceGetS3"
              }
            }
          }
        },
        "type": "object",
        "required": [
          "id",
          "source_id",
          "internal_dataset_id",
          "created_by",
          "source"
        ],
        "title": "DatasetSourceResponseWithSource"
      },
      "IncrementFieldType": {
        "type": "string",
        "enum": [
          "DATETIME",
          "DATE",
          "NUMERIC"
        ],
        "title": "IncrementFieldType"
      },
      "IngestType": {
        "type": "string",
        "enum": [
          "insert",
          "update"
        ],
        "title": "IngestType"
      },
      "Page_DatasetSourceResponseWithSource_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DatasetSourceResponseWithSource"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "title": "Page"
          },
          "size": {
            "type": "integer",
            "minimum": 1,
            "title": "Size"
          },
          "pages": {
            "type": "integer",
            "minimum": 0,
            "title": "Pages"
          },
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next"
          },
          "previous": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Previous"
          },
          "first": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "First"
          },
          "last": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "page",
          "size",
          "pages"
        ],
        "title": "Page[DatasetSourceResponseWithSource]"
      },
      "SourceAzureParams": {
        "properties": {
          "event_hub_namespace_id": {
            "type": "string",
            "pattern": "^/subscriptions/[a-z0-9-]+/resourceGroups/[\\w.()-]+/providers/Microsoft\\.EventHub/namespaces/[A-Za-z0-9-]{6,50}$",
            "title": "Event Hub Namespace Id"
          },
          "event_hub_name": {
            "type": "string",
            "title": "Event Hub Name"
          },
          "storage_account_id": {
            "type": "string",
            "pattern": "^/subscriptions/[a-z0-9-]+/resourceGroups/[\\w.()-]+/providers/Microsoft\\.Storage/storageAccounts/[a-z0-9]{3,24}$",
            "title": "Storage Account Id"
          }
        },
        "type": "object",
        "required": [
          "event_hub_namespace_id",
          "event_hub_name",
          "storage_account_id"
        ],
        "title": "SourceAzureParams"
      },
      "SourceGCSParams": {
        "properties": {
          "bucket_name": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9_-]{1,61}[a-z0-9](\\.[a-z0-9][a-z0-9_-]{1,61}[a-z0-9])*$",
            "title": "Bucket Name"
          },
          "topic_name": {
            "type": "string",
            "pattern": "^projects/[a-z][a-z0-9-]{3,29}/topics/[A-Za-z][A-Za-z0-9_.~%+-]{2,254}$",
            "title": "Topic Name"
          }
        },
        "type": "object",
        "required": [
          "bucket_name",
          "topic_name"
        ],
        "title": "SourceGCSParams"
      },
      "SourceGetAzure": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "created_by": {
            "type": "string",
            "title": "Created By"
          },
          "type": {
            "type": "string",
            "const": "AZURE_BLOB_STORAGE",
            "title": "Type"
          },
          "params": {
            "$ref": "#/components/schemas/SourceAzureParams"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "created_by",
          "type",
          "params"
        ],
        "title": "SourceGetAzure"
      },
      "SourceGetGCS": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "created_by": {
            "type": "string",
            "title": "Created By"
          },
          "type": {
            "type": "string",
            "const": "GCS",
            "title": "Type"
          },
          "params": {
            "$ref": "#/components/schemas/SourceGCSParams"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "created_by",
          "type",
          "params"
        ],
        "title": "SourceGetGCS"
      },
      "SourceGetS3": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "created_by": {
            "type": "string",
            "title": "Created By"
          },
          "type": {
            "type": "string",
            "const": "S3",
            "title": "Type"
          },
          "params": {
            "$ref": "#/components/schemas/SourceS3Params"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "created_by",
          "type",
          "params"
        ],
        "title": "SourceGetS3"
      },
      "SourceS3Params": {
        "properties": {
          "bucket_arn": {
            "type": "string",
            "pattern": "^arn:aws(-cn|-us-gov)?:s3:([a-z]{2}(-gov)?-[a-z]+-\\d)?:(\\d{12})?:[0-9a-z][0-9a-z.-]{2,62}$",
            "title": "Bucket Arn"
          },
          "queue_arn": {
            "type": "string",
            "pattern": "^arn:aws(-cn|-us-gov)?:sqs:[a-z]{2}(-gov)?-[a-z]+-\\d:\\d{12}:.+$",
            "title": "Queue Arn"
          }
        },
        "type": "object",
        "required": [
          "bucket_arn",
          "queue_arn"
        ],
        "title": "SourceS3Params"
      }
    },
    "securitySchemes": {
      "implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://authentication.superwise.ai/identity/resources/auth/v1/api-token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "implicit": []
    }
  ],
  "servers": [
    {
      "url": "api.superwise.ai",
      "description": "Superwise Api Gateway"
    }
  ]
}
```