---
title: "list log_drains"
method: GET
path: "/accounts/{account_id}/log_drains"
tags: ["LogDrains"]
---

# list log_drains

`GET /accounts/{account_id}/log_drains`

## Request

- Base URL: `https://api.aptible.com`
- URL: `https://api.aptible.com/accounts/{account_id}/log_drains`
- Auth: API key in header `Authorization`

Returns a paginated list of log drains for the specified account.

## Path parameters

- `account_id` integer, required

## Query parameters

- `page` integer
- `per_page` integer
- `no_embed` boolean

## Headers

- `Prefer` 'no_sensitive_extras=true'

## Response `200`

successful

- ListLogDrainsForAccount200Response
  - `_embedded` ListLogDrainsForAccount200ResponseEmbedded, required
    - `log_drains` LogDrain[]
      - `id` integer, required
      - `_type` string, required
      - `handle` string, required
      - `drain_type` string, required
      - `drain_host` string, required
      - `drain_port` integer, required
      - `created_at` string, dateTime, required
      - `updated_at` string, dateTime, required
      - `status` string, required
      - `drain_username` string
      - `drain_password` string
      - `drain_apps` boolean, required
      - `drain_databases` boolean, required
      - `drain_ephemeral_sessions` boolean, required
      - `drain_proxies` boolean, required
      - `gentlemanjerry_certificate` string, required
      - `gentlemanjerry_docker_name` string, required
      - `gentlemanjerry_instance_id` string, required
      - `gentlemanjerry_host` string, required
      - `gentlemanjerry_port_mapping` array[], required
        - integer[]
      - `gentlemanjerry_allocation` string[], required
      - `url` string
      - `logging_token` string
      - `_links` LogDrainLinks
        - `account` ListAccountsForStack200ResponseLinksStack
          - `href` string, uri
        - `database` ListAccountsForStack200ResponseLinksStack
          - `href` string, uri
        - `operations` ListAccountsForStack200ResponseLinksStack
          - `href` string, uri
        - `containers` ListAccountsForStack200ResponseLinksStack
          - `href` string, uri
        - `ephemeral_containers` ListAccountsForStack200ResponseLinksStack
          - `href` string, uri
        - `self` ListAccountsForStack200ResponseLinksStack
          - `href` string, uri
  - `total_count` integer, required
  - `per_page` integer, required
  - `current_page` integer, required
  - `_links` ListActivityReportsForAccount200ResponseLinks, required
    - `account` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `next` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `prev` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `self` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri

## Other responses

- `default`: Error response. Often a 4xx or 5xx status code

## Changes

- **2026-07-24** `1dc1e5b8c6eb`: 4 breaking, 3 info
  - the response property `_embedded/log_drains/items/drain_password` became optional for the status `200`
  - the response property `_embedded/log_drains/items/drain_username` became optional for the status `200`
  - the response property `_embedded/log_drains/items/logging_token` became optional for the status `200`
  - the response property `_embedded/log_drains/items/url` became optional for the status `200`
  - …3 more

[Operation history](https://skmtc.dev/aptible/apis/aptible-api-v1/changes/accounts/:account_id/log_drains/get.md)

---

[API](https://skmtc.dev/aptible/apis/aptible-api-v1.md) - [All operations](https://skmtc.dev/aptible/apis/aptible-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/aptible/apis/aptible-api-v1/revisions/a21f6b1bc6fe?raw)
