> **This method is rolling out in `crm 26.2100.0`.** It is not available in every Bitrix24 account. If the method is not enabled yet, the API returns `422 METHOD_NOT_YET_AVAILABLE`.

## List end-to-end analytics sources

`GET /v1/crm-tracking/sources`

List end-to-end analytics sources used to configure attribution of customer interactions.

Requires the `crm` scope, the `crm-tracking-v3` flag, and the feature enabled in the Bitrix24 account. `READONLY` keys can read this resource.

## Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `limit` (query) | number | `50` | Page size, an integer from 1 to 500. |
| `offset` (query) | number | `0` | Number of records to skip, a nonnegative integer. |
| `archived` (query) | boolean | `false` | `true` lists archived sources. Omit it or pass `false` to list active sources and unconfigured built-in sources. |

Pagination: each request returns one page. Increase `offset` by `limit` to request the next page. Sorting and additional filters are not supported.

## Examples

### curl — personal key

```bash
curl "https://vibecode.bitrix24.com/v1/crm-tracking/sources?limit=50&offset=0" \
  -H "X-Api-Key: YOUR_API_KEY"
```

### curl — OAuth application

```bash
curl "https://vibecode.bitrix24.com/v1/crm-tracking/sources?limit=50&offset=0" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"
```

### JavaScript — personal key

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/crm-tracking/sources?limit=50&offset=0', {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})
const result = await res.json()
console.log(result)
```

### JavaScript — OAuth application

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/crm-tracking/sources?limit=50&offset=0', {
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})
const result = await res.json()
console.log(result)
```

## Response fields

| Field | Type | Description |
|---|---|---|
| `success` | boolean | `true` |
| `data` | array | Sources. |
| `data[].id` | number or null | Source ID. `null` for a built-in source without saved configuration. |
| `data[].code` | string or null | Built-in source code. `null` for a custom source. |
| `data[].kind` | string | `own` for a custom source, `builtIn` for a built-in source. |
| `data[].name` | string | Source name. |
| `data[].color` | string or null | Source color. |
| `data[].isActive` | boolean | Whether the source is active. |
| `data[].isConfigurable` | boolean | Whether the source can be configured. |
| `data[].isConfigured` | boolean | Whether source configuration has been saved. |
| `data[].refDomains` | string[] | Referring domains. |
| `data[].utmSources` | string[] | Values of the `utm_source` parameter. |
| `meta.limit` | number | Requested page size. |
| `meta.offset` | number | Requested offset. |

## Response example

Example page structure containing a custom source and a built-in source.

```json
{
  "success": true,
  "data": [
    {
      "id": 2,
      "code": null,
      "kind": "own",
      "name": "VIBE-PROBE source",
      "color": "#55d0e0",
      "isActive": true,
      "isConfigurable": true,
      "isConfigured": true,
      "refDomains": [],
      "utmSources": [
        "vibeprobe"
      ]
    },
    {
      "id": null,
      "code": "google",
      "kind": "builtIn",
      "name": "Google Ads",
      "color": "#3889db",
      "isActive": true,
      "isConfigurable": true,
      "isConfigured": false,
      "refDomains": [],
      "utmSources": []
    }
  ],
  "meta": {
    "limit": 50,
    "offset": 0
  }
}
```

## Error response example

400 — unsupported query parameter:

```json
{
  "success": false,
  "error": {
    "code": "UNKNOWN_FILTER_FIELD",
    "message": "Unknown query parameter"
  }
}
```

## Errors

| HTTP | Code | Description |
|---|---|---|
| 400 | `INVALID_PARAMS` | Invalid pagination or `archived` value. |
| 400 | `UNKNOWN_FILTER_FIELD` | An unsupported query parameter, filter, or sort was supplied. |
| 403 | `SCOPE_DENIED` | The key lacks the `crm` scope. |
| 401 | `TOKEN_MISSING` | The key has no configured tokens. |
| 422 | `METHOD_NOT_YET_AVAILABLE` | The flag is off or the method is not enabled in the account. `error.release` is `crm 26.2100.0`. |
| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 returned an invalid response. |

Other Bitrix24 refusal codes, HTTP statuses, and messages are preserved. For the full list of common API errors, see [Errors](/docs/errors).

## See also

- [Get an analytics source](/docs/entities/crm-tracking/sources-get)
- [Update an analytics source](/docs/entities/crm-tracking/sources-update)
- [List analytics channels](/docs/entities/crm-tracking/channels-list)
