---
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/v2025-07-15/reference/get_data_sources"
revision: "2025-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
jsonApi: {"fields":{"data-source":["title","visibility","description"]},"pagination":{"style":"cursor","defaultPageSize":"20"}}
related: ["https://developers.klaviyo.com/en/v2025-07-15/reference/custom-objects/llms.txt","https://developers.klaviyo.com/en/v2025-07-15/reference/get_data_source.md","https://developers.klaviyo.com/en/v2025-07-15/reference/create_data_source.md","https://developers.klaviyo.com/en/v2025-07-15/reference/delete_data_source.md","https://developers.klaviyo.com/en/v2025-07-15/reference/bulk_create_data_source_records.md"]
---

# Get Data Sources

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-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: 2025-07-15` (required)
- Scopes: `custom-objects:read`
- Rate limits: Burst: `3/s`, Steady: `60/m`

## 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: 2025-07-15'
```

## Query parameters

- `fields[data-source]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-07-15/reference.md) Allowed values: `title`, `visibility`, `description`
- `page[cursor]` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-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: `2025-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: `925e385b52fb405715f3616c337cc65c`
  - `attributes` (object, required)
    - `title` (string, required): The title of the data source Example: `My Data Source`
    - `visibility` (string, required): The status of this data source Allowed values: `private`, `shared`
    - `description` (string, required): The description of the data source Example: `This is a data source`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object)
  - `self` (string<uri>, required)
  - `first` (string<uri>)
  - `last` (string<uri>)
  - `prev` (string<uri>)
  - `next` (string<uri>)

#### Example response body

```json
{
  "data": [
    {
      "type": "data-source",
      "id": "925e385b52fb405715f3616c337cc65c",
      "attributes": {
        "title": "My Data Source",
        "visibility": "private",
        "description": "This is a data source"
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "first": "https://www.example.com",
    "last": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  }
}
```

### 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"
      }
    }
  ]
}
```
