---
title: "Retrieves a list of Integration log drains (deprecated)"
method: GET
path: "/v2/integrations/log-drains"
tags: ["logDrains"]
---

# Retrieves a list of Integration log drains (deprecated)

`GET /v2/integrations/log-drains`

Retrieves a list of all Integration log drains that are defined for the authenticated user or team. When using an OAuth2 token, the list is limited to log drains created by the authenticated integration.

## Query parameters

- `teamId` string
- `slug` string

## Response `200`

A list of log drains

- object[]
  - `clientId` string — The oauth2 client application id that created this log drain
  - `configurationId` string — The client configuration this log drain was created with
  - `createdAt` number, required — A timestamp that tells you when the log drain was created
  - `id` string, required — The unique identifier of the log drain. Always prefixed with `ld_`
  - `deliveryFormat` 'json' | 'ndjson' | 'protobuf' — The delivery log format
  - `name` string, required — The name of the log drain
  - `ownerId` string, required — The identifier of the team or user whose events will trigger the log drain
  - `projectId` string, nullable
  - `projectIds` string[] — The identifier of the projects this log drain is associated with
  - `url` string, required — The URL to call when logs are generated
  - `sources` string[] — The sources from which logs are currently being delivered to this log drain.
  - `createdFrom` 'integration' | 'self-served' — Whether the log drain was created by an integration or by a user
  - `headers` object — The headers to send with the request
  - `environments` string[] — The environment of log drain
  - `branch` string — The branch regexp of log drain
  - `samplingRate` number — The sampling rate of log drain
  - `source` union, required
    - object
      - `kind` 'self-served', required
    - object
      - `kind` 'integration', required
      - `resourceId` string
      - `externalResourceId` string
      - `integrationId` string, required
      - `integrationConfigurationId` string, required

## Other responses

- `400`
- `401` — The request is not authorized.
- `403` — You do not have permission to access this resource.
- `410`

---

[API](https://skmtc.net/vercel/apis/api.md) · [All operations](https://skmtc.net/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/api/versions/61d1ba3f6dac/schema)
