---
title: "Get Data Sources"
description: "How to call Get Data Sources (GET /api/data-sources) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2026-07-15/reference/get_data_sources"
revision: "2026-07-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_data_sources"
operationId: "get_data_sources"
method: "GET"
endpoint: "https://a.klaviyo.com/api/data-sources"
authentication: "privateKey"
scopes: ["custom-objects:read"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_data_sources.json"
jsonApi: {"fields":{"data-source":["description","id","namespace","title","visibility"]},"pagination":{"style":"cursor","defaultPageSize":"20"}}
related: ["https://developers.klaviyo.com/en/v2026-07-15/reference/custom-objects/llms.txt","https://developers.klaviyo.com/en/v2026-07-15/reference/get_data_source.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_data_source.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_data_source.md"]
---

# Get Data Sources

> This is the Markdown version of https://developers.klaviyo.com/en/v2026-07-15/reference/get_data_sources

```http
GET https://a.klaviyo.com/api/data-sources
```

Get all data sources in an account.

- Revision header: `revision: 2026-07-15` (required)
- Scopes: `custom-objects:read`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_data_sources.json)

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/data-sources' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-07-15'
```

## Query parameters

- `fields[data-source]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `description`, `id`, `namespace`, `title`, `visibility`
- `page[cursor]` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md)
- `page[size]` (integer): Default: 20. Min: 1. Max: 100.

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-07-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object[], required)
  - `type` (string, required): Allowed values: `data-source`
  - `id` (string, required): The ID of the data source Example: `01KH1D6P9Y8TJ7Q6MHXWZMPDN3`
  - `attributes` (object, required)
    - `title` (string, required): The title of the data source Example: `Pet Care CRM`
    - `visibility` (string, required): The status of the data source Allowed values: `private`, `shared`
    - `description` (string, required): The description of the data source Example: `Subscription records exported from the pet care CRM`
    - `namespace` (string, required): The namespace of the data source Example: `custom-objects`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object)
  - `self` (string<uri>, required)
  - `prev` (string<uri>)
  - `next` (string<uri>)
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response

#### Example response body

```json
{
  "data": [
    {
      "type": "data-source",
      "id": "01KH1D6P9Y8TJ7Q6MHXWZMPDN3",
      "attributes": {
        "title": "Pet Care CRM",
        "visibility": "private",
        "description": "Subscription records exported from the pet care CRM",
        "namespace": "custom-objects"
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
