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

# list metric_drains

`GET /accounts/{account_id}/metric_drains`

## Request

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

Returns a paginated list of metric 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

- ListMetricDrainsForAccount200Response
  - `_embedded` ListMetricDrainsForAccount200ResponseEmbedded, required
    - `metric_drains` MetricDrain[]
      - `id` integer, required
      - `_type` string, required
      - `handle` string, required
      - `created_at` string, dateTime, required
      - `updated_at` string, dateTime, required
      - `status` string, required
      - `drain_type` string, required
      - `unified` boolean
      - `drain_configuration` MetricDrainDrainConfiguration
        - `address` string, uri
        - `username` string
        - `password` string
        - `database` string
        - `api_key` string
        - `series_url` string, uri
      - `aggregator_ca_certificate` string, required
      - `aggregator_ca_private_key_blob` string, required
      - `aggregator_host` string, required
      - `aggregator_port_mapping` array[], required
        - integer[]
      - `aggregator_instance_id` string, required
      - `aggregator_docker_name` string, required
      - `aggregator_allocation` string[], required
      - `_links` MetricDrainLinks
        - `account` ListAccountsForStack200ResponseLinksStack
          - `href` string, uri
        - `database` ListAccountsForStack200ResponseLinksStack
          - `href` string, uri
        - `operations` ListAccountsForStack200ResponseLinksStack
          - `href` string, uri
        - `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-10-20** `ba72edfe0324`: 1 info
  - added the optional property `_embedded/metric_drains/items/unified` to the response with the `200` status
- **2026-07-24** `1dc1e5b8c6eb`: 1 breaking, 3 info
  - the response property `_embedded/metric_drains/items/drain_configuration` became optional for the status `200`
  - added the new optional `header` request parameter `Prefer`
  - added the new optional `query` request parameter `no_embed`
  - added the new optional `query` request parameter `per_page`

[Operation history](https://skmtc.dev/aptible/apis/aptible-api-v1/changes/accounts/:account_id/metric_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)
