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

# List Agency Accounts Summary

> Count your agency's in-force policy book by month — one row per calendar month of policy term start, carrying how many policies start that month and how many of them carry each line of coverage. Use this for a book-size or production-by-month view instead of pulling every policy and counting them yourself.

Results cover **your own agency only**. A caller from another agency is indistinguishable from an agency with no policies: both get `200` with an empty `summary` array. There is no `404` on this endpoint.

## What counts as in your book

Same inclusion rule as [List Agency Accounts](/api-reference/submissions/list-agency-accounts): a policy counts when its latest settled transaction is bound, approved for cancellation, or cancelled. **Cancelled policies are counted** while still inside their term. A policy with changes still in progress counts at its last settled status, so an unfinished endorsement never hides it from the count.

This endpoint returns no per-policy status, so a month's count mixes live policies with cancelled-but-still-in-term ones and gives you no way to separate them. Call [List Agency Accounts](/api-reference/submissions/list-agency-accounts) when you need to tell them apart.

## The parameters change the question being answered

**Send no parameters** and you count only policies in force today — today falls inside the term, and the expiration date itself counts as inside.

**Send a date window** and the in-force-today test is dropped. You get every policy whose term *starts* inside the window, including policies whose term has already expired and policies whose term starts in the future. A windowed call is a production-by-month history, not a snapshot of your live book.

Both bounds must be sent **together**. A request carrying only `effective_from`, or only `effective_to`, is rejected with `422` — a one-sided window is refused rather than silently widened.

## How the counts are built

`policy_count` counts distinct policies whose term starts in that month. It is never `0`: a month with no policies produces no row at all rather than a row of zeros.

`policies_by_line` always carries all six keys, and `0` is a real value. One policy adds `1` to **every** line it bound, so these six numbers normally sum to more than `policy_count` — they are not a breakdown of it. Lines are counted from the policy's original binding, so a line added by a later endorsement is not reflected here.

`WC` is reserved — Workers' Comp is not yet issued, so that count is `0` today.

## Months, and the row cap

Rows come back newest month first. Up to **500 months** are returned per call. The cap counts months, not policies: a single month holding thousands of policies is still one row, and 500 months is over forty years, so in practice `has_more` is `false` and `guidance` is `null`. Should it ever fire, the oldest months are dropped — re-request with a narrower window, as `guidance` says.

`month` is `YYYY-MM`; the query parameters are ISO `YYYY-MM-DD` — not the `MM/DD/YYYY` used by the quote and bind endpoints. `has_more` is a true JSON boolean, not the `"Y"`/`"N"` used for insurance answers elsewhere in this API.

## The rate limit is shared with List Agency Accounts

Both endpoints draw on the **same** per-account budget: 60 requests a minute and 250 a day across the two of them combined. Polling both in a loop exhausts one counter, not two.



## OpenAPI

````yaml get /list-accounts/summary
openapi: 3.0.0
info:
  title: Cover Whale API V1
  contact:
    name: Cover Whale API Team
  version: '1.0'
servers:
  - url: https://api.coverwhale.dev/v1
security:
  - AccessToken: []
tags:
  - name: Authentication
    description: Authenticating & Interacting with the API
paths:
  /list-accounts/summary:
    get:
      tags:
        - Submissions
      summary: List Agency Accounts Summary
      description: >-
        Count your agency's in-force policy book by month — one row per calendar
        month of policy term start, carrying how many policies start that month
        and how many of them carry each line of coverage. Use this for a
        book-size or production-by-month view instead of pulling every policy
        and counting them yourself.


        Results cover **your own agency only**. A caller from another agency is
        indistinguishable from an agency with no policies: both get `200` with
        an empty `summary` array. There is no `404` on this endpoint.


        ## What counts as in your book


        Same inclusion rule as [List Agency
        Accounts](/api-reference/submissions/list-agency-accounts): a policy
        counts when its latest settled transaction is bound, approved for
        cancellation, or cancelled. **Cancelled policies are counted** while
        still inside their term. A policy with changes still in progress counts
        at its last settled status, so an unfinished endorsement never hides it
        from the count.


        This endpoint returns no per-policy status, so a month's count mixes
        live policies with cancelled-but-still-in-term ones and gives you no way
        to separate them. Call [List Agency
        Accounts](/api-reference/submissions/list-agency-accounts) when you need
        to tell them apart.


        ## The parameters change the question being answered


        **Send no parameters** and you count only policies in force today —
        today falls inside the term, and the expiration date itself counts as
        inside.


        **Send a date window** and the in-force-today test is dropped. You get
        every policy whose term *starts* inside the window, including policies
        whose term has already expired and policies whose term starts in the
        future. A windowed call is a production-by-month history, not a snapshot
        of your live book.


        Both bounds must be sent **together**. A request carrying only
        `effective_from`, or only `effective_to`, is rejected with `422` — a
        one-sided window is refused rather than silently widened.


        ## How the counts are built


        `policy_count` counts distinct policies whose term starts in that month.
        It is never `0`: a month with no policies produces no row at all rather
        than a row of zeros.


        `policies_by_line` always carries all six keys, and `0` is a real value.
        One policy adds `1` to **every** line it bound, so these six numbers
        normally sum to more than `policy_count` — they are not a breakdown of
        it. Lines are counted from the policy's original binding, so a line
        added by a later endorsement is not reflected here.


        `WC` is reserved — Workers' Comp is not yet issued, so that count is `0`
        today.


        ## Months, and the row cap


        Rows come back newest month first. Up to **500 months** are returned per
        call. The cap counts months, not policies: a single month holding
        thousands of policies is still one row, and 500 months is over forty
        years, so in practice `has_more` is `false` and `guidance` is `null`.
        Should it ever fire, the oldest months are dropped — re-request with a
        narrower window, as `guidance` says.


        `month` is `YYYY-MM`; the query parameters are ISO `YYYY-MM-DD` — not
        the `MM/DD/YYYY` used by the quote and bind endpoints. `has_more` is a
        true JSON boolean, not the `"Y"`/`"N"` used for insurance answers
        elsewhere in this API.


        ## The rate limit is shared with List Agency Accounts


        Both endpoints draw on the **same** per-account budget: 60 requests a
        minute and 250 a day across the two of them combined. Polling both in a
        loop exhausts one counter, not two.
      operationId: getListAccountsSummary
      parameters:
        - name: Content-Type
          in: header
          required: true
          schema:
            type: string
          example: application/json
        - name: Accept
          in: header
          required: true
          schema:
            type: string
          example: application/json
        - name: AccessToken
          in: header
          required: true
          schema:
            type: string
          example: eyJraWQiOiJnRk5oTTh2RnRKWXVDVXU1S........
        - name: effective_from
          in: query
          required: false
          description: >-
            Inclusive earliest policy term start to count, as `YYYY-MM-DD`. Must
            be sent together with `effective_to`; sending it alone returns
            `422`. When both are omitted, the count is restricted to policies in
            force today.
          schema:
            type: string
            format: date
          example: '2026-01-01'
        - name: effective_to
          in: query
          required: false
          description: >-
            Inclusive latest policy term start to count, as `YYYY-MM-DD`. Must
            be the same as or after `effective_from`, and must be sent together
            with it; sending it alone returns `422`.
          schema:
            type: string
            format: date
          example: '2026-06-30'
      responses:
        '200':
          description: >-
            Your agency's book counted by month. Always this shape, including
            when the book is empty.
          content:
            application/json:
              schema:
                type: object
                properties:
                  summary:
                    description: >-
                      One entry per calendar month that has at least one
                      qualifying policy, newest first. An empty array when the
                      agency has none — never null.
                    type: array
                    items:
                      type: object
                      properties:
                        month:
                          description: >-
                            The calendar month of policy term start, `YYYY-MM`.
                            Rows are ordered newest month first.
                          type: string
                          example: 2026-03
                        policy_count:
                          description: >-
                            Distinct policies whose term starts in this month.
                            Never `0` — a month with no policies produces no
                            row.
                          type: integer
                          minimum: 1
                          example: 42
                        policies_by_line:
                          description: >-
                            How many of the month's policies carry each line of
                            coverage. All six keys are always present and `0` is
                            a real value. One policy increments every line it
                            bound, so these sum to more than `policy_count`.
                            `WC` is reserved — Workers' Comp is not yet issued,
                            so it is `0` today.
                          type: object
                          properties:
                            AL:
                              type: integer
                              minimum: 0
                              example: 42
                            APD:
                              type: integer
                              minimum: 0
                              example: 31
                            MTC:
                              type: integer
                              minimum: 0
                              example: 12
                            TGL:
                              type: integer
                              minimum: 0
                              example: 4
                            NTL:
                              type: integer
                              minimum: 0
                              example: 2
                            WC:
                              type: integer
                              minimum: 0
                              example: 0
                  pagination:
                    description: Always present, including on an empty result.
                    type: object
                    properties:
                      returned:
                        description: >-
                          Number of month rows in this response. `0` on an empty
                          book.
                        type: integer
                        example: 9
                      has_more:
                        description: >-
                          A JSON boolean — `true` only when more than 500 months
                          qualified and the oldest were dropped.
                        type: boolean
                        example: false
                      guidance:
                        description: >-
                          How to narrow the request, in words. Null when
                          `has_more` is `false`.
                        type: string
                        nullable: true
                        example: >-
                          This call returned greater than 500 months. Call again
                          with a narrower effective_from / effective_to date
                          range.
        '401':
          description: Missing, malformed or expired `AccessToken`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Unauthorized
        '403':
          description: >-
            The token is valid but is not attached to an agency, so no book can
            be resolved.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unable to resolve caller company
        '422':
          description: >-
            A date parameter is not `YYYY-MM-DD`, only one of the two bounds was
            sent, or `effective_to` is earlier than `effective_from`. The
            request is rejected rather than returning an unfiltered count.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: >-
                      The effective to must be the same as or after effective
                      from.
                  errors:
                    type: object
                    example:
                      effective_to:
                        - >-
                          The effective to must be the same as or after
                          effective from.
        '429':
          description: >-
            Rate limit exceeded — more than 60 requests in a minute, more than
            250 in a day on your account, or a temporary block after sustained
            breaches. The `Retry-After` header gives the seconds to wait; the
            body repeats it as `retry_after`, adds a human-readable
            `retry_after_human`, and names the limited `scope`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Rate limit exceeded. Temporarily banned.
                  retry_after:
                    description: Seconds to wait before retrying.
                    type: integer
                    example: 3600
                  retry_after_human:
                    description: The same wait, phrased for a person.
                    type: string
                    example: 1 hour
                  scope:
                    description: Which limit was hit.
                    type: string
                    example: book
components:
  securitySchemes:
    AccessToken:
      type: apiKey
      description: >-
        JWT returned as AccessToken by the /authentication endpoint (the Cognito
        ID token carrying the email claim). It expires after 3600 seconds.
      name: AccessToken
      in: header

````

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