List Data Sources
Retrieve all data sources with optional filtering and pagination
Endpoint
GET /api/v1/providers/datasourcesDescription
Returns the properties and status for all data sources. When filtering is applied, only data sources matching the filter will be returned.
Data sources represent discrete instances of services that Veza connects to for discovery and extraction of authorization metadata. Each cloud provider may have one or more associated data sources.
API Reference
When specified, only data sources matching the filter will be returned. Valid attributes: datasource_type Valid operators: EQ E.g. 'datasource_type eq "extractor"'
The maximum number of results to be returned. Fewer results may be returned even when more pages exist.
The token specifying the specific page of results to retrieve.
OK
Default error response
GET /api/v1/providers/datasources HTTP/1.1
Host: your-tenant.cookiecloud.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "datasource_list": [
    {
      "external_datasource_id": "text",
      "external_provider_id": "text",
      "datasource_type": "text",
      "extraction_start": "2025-10-30T18:56:22.861Z",
      "extraction_end": "2025-10-30T18:56:22.861Z",
      "datasource_name": "text",
      "is_deleted": true,
      "datasource_id": "text",
      "has_warning": true
    }
  ],
  "snapshot_not_found": true,
  "pagination_context": "text",
  "has_more": true
}Query Parameters
filter
string
Optional
When present, only returns data sources matching the filter. Available options: name, agent_type, status, state, provider_id, data_provider_id, datasource_type
order_by
string
Optional
Sort results by: name, agent_type, status, state, provider_id, data_provider_id, or datasource_type
page_size
integer
Optional
The maximum number of results to return. Fewer results may be returned even when more pages exist
page_token
string
Optional
The token specifying the specific page of results to retrieve
Request Examples
curl -X GET "$BASE_URL/api/v1/providers/datasources" \
  -H "authorization: Bearer $VEZA_TOKEN"curl -X GET "$BASE_URL/api/v1/providers/datasources?filter=status+eq+\"SUCCESS\"" \
  -H "authorization: Bearer $VEZA_TOKEN"curl -X GET "$BASE_URL/api/v1/providers/datasources?page_size=10&order_by=name" \
  -H "authorization: Bearer $VEZA_TOKEN"Response Examples
Standard Response:
{
  "values": [
    {
      "id": "6961b032-3fd7-4baa-a230-146d1b70ec27",
      "name": "AWS EC2 (527398259632)",
      "datasource_type": "EXTRACTOR",
      "agent_type": "AWS_EC2",
      "status": "SUCCESS",
      "provider_id": "cd0cf102-e86c-4599-9cbe-64d2c6b83236",
      "path": "AWS/ec2",
      "state": "ENABLED",
      "effective_state": "ENABLED",
      "created_at": "2021-10-26T07:10:38Z",
      "updated_at": "2021-10-26T07:10:38Z",
      "synced_at": "2022-01-13T20:53:23Z",
      "parsed_at": "2022-01-13T20:53:29Z"
    }
  ],
  "next_page_token": "ec67g",
  "has_more": false
}Last updated
Was this helpful?
