> ## Documentation Index
> Fetch the complete documentation index at: https://docs.peeker.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List domain health

> Returns Peeker's deliverability numbers for every connected domain:
the health tag, sent, replies, reply and bounce rates for the last 7,
14 and 30 days, warmup score, inbox counts and the latest blacklist
check.

Peeker publishes these numbers as numbered versions. A new version
goes live only after the sync that feeds it has fully finished, so
every page you read comes from one finished version. `meta.version`
and `meta.published_at` say which one. A `page_token` stays on the
version it started on for one hour after a newer version goes live.

To sync only what changed, store `meta.version` and pass it as
`changed_since_version` next time. You get every row whose numbers
changed in a later version. Domains that left the list do not show up
in that read; a full read without `changed_since_version` returns the
current set.

Unknown numbers are `null`, never `0`. Before the first version is
published, `data` is empty and `meta.version` is `null`.




## OpenAPI

````yaml /openapi.yaml get /domains/health
openapi: 3.1.0
info:
  title: Peeker Partner API
  version: 1.0.0
  description: >
    White-label Peeker's email infrastructure: Google Workspace and Microsoft

    365 inboxes, deliverability monitoring, and self-healing domain swaps,

    from your own app. Create a provider workspace target, order licenses with
    imported or

    Peeker-managed domains, and Peeker's backend handles provisioning,

    DNS, forwarding, and lifecycle webhooks.


    Create a provider workspace target with `POST /workspaces`, then send its

    `wrk_...` ID to `POST /orders`. For Smartlead, create one main workspace,

    then add `client_id` to an order only when it should go to a client

    workspace. Omit it to order into the main workspace.


    ## Read first


    - **[Authentication](/authentication)**: bearer keys, live vs sandbox,
    request IDs.

    - **[Rate limits](/rate-limits)**: 600/min per environment, shared by all
    your keys, 429 backoff.

    - **[Webhooks](/webhooks)**: signed events and delivery rules.

    - **[Async jobs](/concepts/async-jobs)**: what to poll vs subscribe to.

    - **[Best practices](/best-practices)**: errors, paging, idempotency.


    ## Concepts


    - **[Orders](/concepts/orders)**: statuses, sizing, pending actions, cancel.

    - **[Domains](/concepts/domains)**: inventory, `usable_for`, import,
    forwarding.

    - **[Bundles](/concepts/bundles)**: saved templates and capacity.

    - **[Swaps](/concepts/swaps)**: standard vs premium, renames.


    ## Workflow guides


    - **[Provider ordering](/guides/provider-ordering)** — create a provider
    workspace target and order through it.

    - **[Buying domains & ordering](/guides/buying-domains)** — the default
    flow: bundle, availability, order, webhooks.

    - **[Importing domains](/guides/importing-domains)** — bring in existing
    customer domains.

    - **[Forwarding](/guides/forwarding)** — point a domain at a marketing site.

    - **[How to implement domain swaps](/guides/domain-swaps)** — standard vs
    premium swaps.

    - **[Renaming inbox senders](/guides/user-name-swaps)** — change mailbox
    personas on a warm domain.


    ## Public ID prefixes


    | Prefix | Resource |

    | --- | --- |

    | `cus_` | Customer tracking record |

    | `wrk_` | Provider workspace |

    | `bun_` | Bundle |

    | `ord_` | Order |

    | `dom_` | Domain |

    | `pcl_` | Pool reservation |

    | `prp_` | Pool replacement |

    | `prl_` | Pool release |

    | `imp_` | Domain import job |

    | `fwj_` | Domain forwarding job |

    | `brj_` | Burned-domain replacement job |

    | `swp_` | Domain swap |

    | `act_` | Pending action |

    | `evt_` | Webhook event |
servers:
  - url: https://api.peeker.ai/partner/v1
    description: >-
      Same base URL for live and sandbox. The key prefix (`pk_live_…` /
      `pk_test_…`) picks the environment.
security:
  - BearerAuth: []
tags:
  - name: Account
    x-group: Account
    description: >
      Confirm an API key with `GET /me`. Returns environment (live or sandbox),

      permission preset, and the partner profile. See
      [Authentication](/authentication).
  - name: Provider workspaces
    x-group: Provider workspaces
    description: |
      A provider workspace is one reusable provider connection. Create it once,
      keep the returned `wrk_...` ID, and use it in orders and pool attach.
      Optional customer tracking stays on the target. Provider credentials stay
      internal and are never echoed.

      EmailBison requires a workspace API-user key. Super-admin keys are
      rejected. Instantly and Smartlead connections require `api_key`.
      Smartlead workspace creation takes a main API key and a label. Do not send
      `client_id` or customer data. Its login email and password are optional,
      but must be sent together. Google orders do not need the pair, and orders
      never accept it. Smartlead Microsoft orders and pool attach still use the
      workspace-saved pair. Add
      `client_id` to the order destination when the order belongs to a client
      workspace; omit it for the main workspace.
      PlusVibe setup requires `api_key` and the remote `workspace_id`. PlusVibe
      orders and pool attach use that API key and need no login. Its login
      email and password are optional, but must be sent together. Instantly
      login credentials belong on an order destination.
  - name: Bundles
    x-group: Bundles
    description: |
      Saved order template sized by monthly sending volume (`bun_…`). Pass
      `bundle_id` on an order instead of custom license counts.

      Lifecycle: [How bundles work](/concepts/bundles).
  - name: Domains
    x-group: Domains
    description: >
      Sending domains in your partner account (`dom_…`). Same ID whether or not

      the domain is on an order.


      **Status values**


      | Value | What it means |

      | --- | --- |

      | `available` | The domain is in inventory but not on an order yet. |

      | `in_progress` | We're setting it up. |

      | `active` | Live and warming or healthy. |

      | `failed` | Something broke that we can't fix automatically. |

      | `action_required` | We need your help (e.g. update nameservers). |


      **Inventory vs connected**


      - `category=inventory` — yours but not on any order. Inventory rows
        don't include `provider`.
      - `category=connected` — on an active order. The row carries the link
        fields `provider`, `customer_id`, `order_id`, `usable_for`, and
        `forwarding_url`.

      **`usable_for` matrix**


      When you check a domain's availability:


      | Who's on the domain | `usable_for` |

      | --- | --- |

      | Nobody, or just Google | `["google", "microsoft"]` |

      | Microsoft (or both) | `["google"]` |

      | Premium / invalid / errored | not orderable; `available: false` with a
      `reason` |


      **Imports and forwarding are jobs**


      Both **import** and **forwarding** are async jobs. Posting to those

      endpoints starts the job and gives you back a row with `status:

      "in_progress"`. Poll the job's GET endpoint to see when it finishes:


      - Import jobs: prefix `imp_…`. Includes the `nameserver_groups` your
        customer needs to set at their registrar.
        - Forwarding jobs: prefix `fwj_…`. Already-correct domains are
          returned in `completed` with newly updated domains.
  - name: Domain pool
    x-group: Domain pool
    description: |
      Assign an exact quantity from pre-warmed Google inventory. Each domain
      needs at least one active Google inbox on a paid Google order (commonly
      two), complete provider mailbox identity, and no explicit burned provider
      result. Attach is all-or-nothing: full quantity or
      `insufficient_inventory` with no pool change. Attach and release are
      async. Poll the resource or subscribe to `pool.*` webhooks.

      Guide: [Pre-warmed pool](/guides/pre-warmed-pool).
  - name: Prewarmed inboxes
    x-group: Prewarmed inboxes
    description: |
      Buy domains whose inboxes Peeker has already warmed. List live stock
      with `GET /prewarmed`, then buy exact domains with
      `POST /prewarmed/purchase`. Each purchase is a normal order (`ord_…`):
      follow it with `GET /orders/{id}` and find it in `GET /orders`.

      Guide: [Prewarmed inboxes](/guides/prewarmed-inboxes).
  - name: Orders
    x-group: Orders
    description: |
      One purchase of domains plus Google and/or Microsoft licenses for one
      customer (`ord_…`). Use a saved `bundle_id` **or** custom license counts,
      never both. Requires `Idempotency-Key`.

      Lifecycle: [How orders work](/concepts/orders).
  - name: Domain swaps
    x-group: Domain swaps
    description: |
      Replace a domain inside an existing order without losing the order
      (`swp_…`). For persona-only changes use `POST /swaps/user_names`.

      Statuses and standard vs premium: [How swaps work](/concepts/swaps).
  - name: Webhooks
    x-group: Webhooks
    description: |
      Signed JSON POSTs for orders, domains, imports, forwarding, pool, and
      swaps. Register the URL and secret in the
      [Partner portal](https://app.peeker.ai/partner/webhooks). Event IDs look
      like `evt_01HZX`.

      Delivery is at least once (up to 5 attempts). Verify `Peeker-Signature`
      and dedupe `Peeker-Event-Id` for at least 24 hours.

      Full catalog: [Webhooks](/webhooks).
paths:
  /domains/health:
    get:
      tags:
        - Domains
      summary: List domain health
      description: |
        Returns Peeker's deliverability numbers for every connected domain:
        the health tag, sent, replies, reply and bounce rates for the last 7,
        14 and 30 days, warmup score, inbox counts and the latest blacklist
        check.

        Peeker publishes these numbers as numbered versions. A new version
        goes live only after the sync that feeds it has fully finished, so
        every page you read comes from one finished version. `meta.version`
        and `meta.published_at` say which one. A `page_token` stays on the
        version it started on for one hour after a newer version goes live.

        To sync only what changed, store `meta.version` and pass it as
        `changed_since_version` next time. You get every row whose numbers
        changed in a later version. Domains that left the list do not show up
        in that read; a full read without `changed_since_version` returns the
        current set.

        Unknown numbers are `null`, never `0`. Before the first version is
        published, `data` is empty and `meta.version` is `null`.
      operationId: listDomainHealth
      parameters:
        - in: query
          name: status
          description: Only rows with this health tag.
          schema:
            type: string
            enum:
              - healthy
              - improving
              - underperforming
              - burned
              - warming
              - disconnected
              - inactive
              - connected
              - swapping
              - swapped
        - in: query
          name: changed_since_version
          description: >-
            Only rows that changed in a version newer than this one. Pass the
            `meta.version` from your last full read.
          schema:
            type: integer
            minimum: 0
        - $ref: '#/components/parameters/PerPage'
        - $ref: '#/components/parameters/PageToken'
      responses:
        '200':
          description: A page of domain health rows.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SuccessEnvelope'
                  - type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/DomainHealth'
                      links:
                        $ref: '#/components/schemas/ListLinks'
                      meta:
                        $ref: '#/components/schemas/DomainHealthListMeta'
              examples:
                typical_page:
                  summary: One healthy domain
                  value:
                    data:
                      - id: dom_01HZX0D01A2B3C4D5E6F7G8H
                        domain: acme-mail.com
                        health:
                          status: healthy
                          evidence_date: '2026-11-09'
                        windows:
                          7d:
                            sent: 1240
                            replies: 19
                            reply_rate: 1.53
                            bounce_rate: 0.4
                            leads_contacted: 1180
                          14d:
                            sent: 2410
                            replies: 35
                            reply_rate: 1.45
                            bounce_rate: 0.5
                            leads_contacted: 2290
                          30d:
                            sent: 5020
                            replies: 71
                            reply_rate: 1.41
                            bounce_rate: 0.6
                            leads_contacted: 4730
                        warmup_score: 98
                        inboxes:
                          total: 3
                          disconnected: 0
                        blacklist:
                          status: clean
                          spamhaus_dbl: false
                          surbl: false
                          checked_at: '2026-11-10T04:12:00Z'
                        changed_in_version: 42
                    links:
                      first: >-
                        https://api.peeker.ai/partner/v1/domains/health?per_page=25
                      next: null
                    meta:
                      path: https://api.peeker.ai/partner/v1/domains/health
                      per_page: 25
                      returned: 1
                      version: 42
                      published_at: '2026-11-10T06:00:00Z'
        '400':
          $ref: '#/components/responses/InvalidRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    PerPage:
      in: query
      name: per_page
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
      description: How many rows per page (default 25, max 100).
    PageToken:
      in: query
      name: page_token
      schema:
        type: string
      description: >-
        Opaque signed token from the `page_token` query parameter of
        `links.next`. Prefer requesting the complete `links.next` URL directly;
        it is a URL, not a token. GET /orders also accepts that complete
        next-page URL as this parameter's value. When passing a token or URL in
        this parameter, keep the same list filters. Stop when `links.next` is
        null; do not send the strings "null" or "undefined".
  schemas:
    SuccessEnvelope:
      type: object
      required:
        - data
      properties:
        data: {}
    DomainHealth:
      type: object
      required:
        - id
        - domain
        - health
        - windows
        - warmup_score
        - inboxes
        - blacklist
        - changed_in_version
      properties:
        id:
          type: string
          example: dom_01HZX0D01A2B3C4D5E6F7G8H
        domain:
          type: string
          example: acme-mail.com
        health:
          type: object
          required:
            - status
            - evidence_date
          properties:
            status:
              type: string
              nullable: true
              enum:
                - healthy
                - improving
                - underperforming
                - burned
                - warming
                - disconnected
                - inactive
                - connected
                - swapping
                - swapped
                - null
              description: The same deliverability tag the Peeker dashboard shows.
              example: healthy
            evidence_date:
              type: string
              format: date
              nullable: true
              description: The day of the newest sending data behind the tag.
              example: '2026-11-09'
        windows:
          type: object
          required:
            - 7d
            - 14d
            - 30d
          properties:
            7d:
              $ref: '#/components/schemas/DomainHealthWindow'
            14d:
              $ref: '#/components/schemas/DomainHealthWindow'
            30d:
              $ref: '#/components/schemas/DomainHealthWindow'
        warmup_score:
          type: number
          nullable: true
          example: 98
        inboxes:
          type: object
          required:
            - total
            - disconnected
          properties:
            total:
              type: integer
              nullable: true
              example: 3
            disconnected:
              type: integer
              nullable: true
              example: 0
        blacklist:
          type: object
          nullable: true
          description: The latest daily blacklist check. `null` before the first check.
          required:
            - status
            - spamhaus_dbl
            - surbl
            - checked_at
          properties:
            status:
              type: string
              enum:
                - clean
                - listed
                - check_error
              example: clean
            spamhaus_dbl:
              type: boolean
              example: false
            surbl:
              type: boolean
              example: false
            checked_at:
              type: string
              format: date-time
              example: '2026-11-10T04:12:00Z'
        changed_in_version:
          type: integer
          description: The version in which this row's numbers last changed.
          example: 42
    ListLinks:
      type: object
      required:
        - first
        - next
      properties:
        first:
          type: string
          format: uri
          example: https://api.peeker.ai/partner/v1/domains?per_page=25
        next:
          type: string
          format: uri
          nullable: true
          example: >-
            https://api.peeker.ai/partner/v1/domains?per_page=25&page_token=eyJ...
    DomainHealthListMeta:
      allOf:
        - $ref: '#/components/schemas/ListMeta'
        - type: object
          required:
            - version
            - published_at
          properties:
            version:
              type: integer
              nullable: true
              description: >-
                The published version this page comes from. `null` before the
                first one.
              example: 42
            published_at:
              type: string
              format: date-time
              nullable: true
              example: '2026-11-10T06:00:00Z'
    DomainHealthWindow:
      type: object
      required:
        - sent
        - replies
        - reply_rate
        - bounce_rate
        - leads_contacted
      properties:
        sent:
          type: integer
          nullable: true
          example: 1240
        replies:
          type: integer
          nullable: true
          example: 19
        reply_rate:
          type: number
          nullable: true
          description: Replies as a percent of the reply-rate base.
          example: 1.53
        bounce_rate:
          type: number
          nullable: true
          description: Bounces as a percent of sent.
          example: 0.4
        leads_contacted:
          type: integer
          nullable: true
          example: 1180
    ListMeta:
      type: object
      required:
        - path
        - per_page
        - returned
      properties:
        path:
          type: string
          format: uri
          example: https://api.peeker.ai/partner/v1/domains
        per_page:
          type: integer
          example: 25
        returned:
          type: integer
          example: 25
    ErrorEnvelope:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
            - message
            - request_id
          properties:
            code:
              type: string
              description: Stable machine-readable code. Branch on this field.
              enum:
                - invalid_request
                - unauthorized
                - forbidden
                - not_found
                - rate_limited
                - provider_not_supported
                - provider_mismatch
                - provider_credentials_invalid
                - provider_login_credentials_required
                - provider_unavailable
                - emailbison_super_admin_key
                - smartlead_connection_required
                - smartlead_client_id_required
                - smartlead_client_not_found
                - idempotency_key_required
                - idempotency_conflict
                - idempotency_in_progress
                - workspace_promotion_required
                - workspace_credentials_conflict
                - workspace_sync_unavailable
                - order_shape_conflict
                - domain_count_mismatch
                - insufficient_inventory
                - domain_not_imported
                - domains_not_submittable
                - premium_domain_not_supported
                - domain_not_usable_for_provider
                - domain_already_in_active_order
                - internal_error
              example: emailbison_super_admin_key
            message:
              type: string
              description: Human-readable explanation. Wording may change.
              example: >-
                Use an EmailBison workspace/user API key; super-admin keys are
                not accepted.
            request_id:
              type: string
              description: >-
                Stable request identifier, identical to the `Peeker-Request-Id`
                response header.
              example: 550e8400-e29b-41d4-a716-446655440000
            field:
              type: string
              description: Dot path to the invalid request property, when applicable.
              example: credentials.api_key
            details:
              type: object
              additionalProperties: true
              description: Structured context specific to `error.code`.
  responses:
    InvalidRequest:
      description: Bad request body, or fields that don’t belong to this provider.
      headers:
        Peeker-Request-Id:
          $ref: '#/components/headers/PeekerRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: Missing, invalid, or revoked API key.
      headers:
        Peeker-Request-Id:
          $ref: '#/components/headers/PeekerRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: >-
        Too many requests. Wait `Retry-After` seconds (also in
        `error.details.retry_after_seconds`), then retry.
      headers:
        Retry-After:
          description: Seconds to wait before retrying; capacity is not reserved.
          schema:
            type: integer
            minimum: 1
        Peeker-Request-Id:
          $ref: '#/components/headers/PeekerRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InternalError:
      description: Unexpected server error. Retry with backoff and keep the request ID.
      headers:
        Peeker-Request-Id:
          $ref: '#/components/headers/PeekerRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  headers:
    PeekerRequestId:
      description: Stable request identifier. Log it with the status and response body.
      schema:
        type: string
        example: 550e8400-e29b-41d4-a716-446655440000
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        Partner API key (`pk_live_…` or `pk_test_…`).
      x-default: Bearer pk_test_<your-test-key>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.