> ## 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

> Pull your agency's whole active book of business in one call — every policy currently inside its term, with its status, the insured, the term dates, how many changes it has had, and the policy number for each line of coverage. Use this instead of asking about one policy at a time when you need to reconcile your book or discover policies your system does not already know about. For how large your book is by month, rather than a list of its policies, use [List Agency Accounts Summary](/api-reference/submissions/list-agency-accounts-summary).

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 `submissions` array. There is no `404` on this endpoint.

## What counts as in your book

With no date parameters, a policy is returned when today falls inside its term (the expiration date itself counts as inside) and its latest settled transaction is bound, approved for cancellation, or cancelled.

Sending a date window **replaces** that in-force test rather than narrowing it — see [Books larger than one page](#books-larger-than-one-page) below.

**Cancelled policies are returned** while still inside their term — read `status` to tell them apart rather than assuming everything listed is live. A policy with changes still in progress is reported at its last settled status, so an unfinished endorsement never hides a policy from the list.

`status` is one of three values:

| Value | Meaning |
|---|---|
| `Bound` | In force, no cancellation approved. |
| `Request to Cancel` | Cancellation **approved but not yet executed** — not "someone asked to cancel". |
| `Canceled` | Cancellation executed; the policy is still inside its term. |

A cancellation that has been requested but not yet approved is **not** visible here: that policy is still reported as `Bound`. Do not infer a pending cancellation from this endpoint.

## Books larger than one page

Up to **500 policies** are returned per call, newest term start first. There is no `page`, `limit`, `per_page` or `cursor` parameter — sending one has no effect. When `has_more` is `true`, call again with a narrower `effective_from` / `effective_to` window, which `pagination.guidance` also tells you in words.

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.

A window **replaces** the in-force-today test; it does not narrow it. A windowed call returns every policy whose term *starts* inside the window, including policies whose term has already expired and policies whose term starts in the future. So to rebuild your live book from windowed calls, **discard any policy whose `expiration_date` is earlier than today**. If your windows overlap, the same policy comes back in both — de-duplicate on `submission_id`.

`has_more` is a true JSON boolean, not the `"Y"`/`"N"` used for insurance answers elsewhere in this API.

## Two fields worth reading carefully

**`endorsement_count`** counts every transaction after the original binding — endorsements, cancellations, reinstatements and renewals, whether or not they completed. It does not count the original new business. The [transactions endpoint](/api-reference/submissions/get-submission-transactions) publishes a field of the same name that counts something narrower (bound endorsements only), so the two will not agree. For a policy that moved to your agency part-way through its life, this count covers only the part of its life spent in your book.

**Dates** are ISO `YYYY-MM-DD` on this endpoint, both in the query parameters and in the response — not the `MM/DD/YYYY` used by the quote and bind endpoints.



## OpenAPI

````yaml get /list-accounts
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:
    get:
      tags:
        - Submissions
      summary: List Agency Accounts
      description: >-
        Pull your agency's whole active book of business in one call — every
        policy currently inside its term, with its status, the insured, the term
        dates, how many changes it has had, and the policy number for each line
        of coverage. Use this instead of asking about one policy at a time when
        you need to reconcile your book or discover policies your system does
        not already know about. For how large your book is by month, rather than
        a list of its policies, use [List Agency Accounts
        Summary](/api-reference/submissions/list-agency-accounts-summary).


        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 `submissions` array. There is no `404` on this endpoint.


        ## What counts as in your book


        With no date parameters, a policy is returned when today falls inside
        its term (the expiration date itself counts as inside) and its latest
        settled transaction is bound, approved for cancellation, or cancelled.


        Sending a date window **replaces** that in-force test rather than
        narrowing it — see [Books larger than one
        page](#books-larger-than-one-page) below.


        **Cancelled policies are returned** while still inside their term — read
        `status` to tell them apart rather than assuming everything listed is
        live. A policy with changes still in progress is reported at its last
        settled status, so an unfinished endorsement never hides a policy from
        the list.


        `status` is one of three values:


        | Value | Meaning |

        |---|---|

        | `Bound` | In force, no cancellation approved. |

        | `Request to Cancel` | Cancellation **approved but not yet executed** —
        not "someone asked to cancel". |

        | `Canceled` | Cancellation executed; the policy is still inside its
        term. |


        A cancellation that has been requested but not yet approved is **not**
        visible here: that policy is still reported as `Bound`. Do not infer a
        pending cancellation from this endpoint.


        ## Books larger than one page


        Up to **500 policies** are returned per call, newest term start first.
        There is no `page`, `limit`, `per_page` or `cursor` parameter — sending
        one has no effect. When `has_more` is `true`, call again with a narrower
        `effective_from` / `effective_to` window, which `pagination.guidance`
        also tells you in words.


        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.


        A window **replaces** the in-force-today test; it does not narrow it. A
        windowed call returns every policy whose term *starts* inside the
        window, including policies whose term has already expired and policies
        whose term starts in the future. So to rebuild your live book from
        windowed calls, **discard any policy whose `expiration_date` is earlier
        than today**. If your windows overlap, the same policy comes back in
        both — de-duplicate on `submission_id`.


        `has_more` is a true JSON boolean, not the `"Y"`/`"N"` used for
        insurance answers elsewhere in this API.


        ## Two fields worth reading carefully


        **`endorsement_count`** counts every transaction after the original
        binding — endorsements, cancellations, reinstatements and renewals,
        whether or not they completed. It does not count the original new
        business. The [transactions
        endpoint](/api-reference/submissions/get-submission-transactions)
        publishes a field of the same name that counts something narrower (bound
        endorsements only), so the two will not agree. For a policy that moved
        to your agency part-way through its life, this count covers only the
        part of its life spent in your book.


        **Dates** are ISO `YYYY-MM-DD` on this endpoint, both in the query
        parameters and in the response — not the `MM/DD/YYYY` used by the quote
        and bind endpoints.
      operationId: getListAccounts
      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 return, as `YYYY-MM-DD`.
            Must be sent together with `effective_to`; sending it alone returns
            `422`. When both are omitted, the response 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 return, 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 in-force book. Always this shape, including when the
            book is empty.
          content:
            application/json:
              schema:
                type: object
                properties:
                  submissions:
                    description: >-
                      One entry per in-force policy. An empty array when the
                      agency has none — never null.
                    type: array
                    items:
                      type: object
                      properties:
                        submission_id:
                          description: The submission (policy) identifier, always a string.
                          type: string
                          example: '248131581577'
                        status:
                          description: >-
                            Current settled status. See the status table above —
                            `Request to Cancel` means approved, not merely
                            requested.
                          type: string
                          enum:
                            - Bound
                            - Request to Cancel
                            - Canceled
                          example: Bound
                        dot_number:
                          description: >-
                            The carrier's DOT number, as a string. Null when
                            none is recorded.
                          type: string
                          nullable: true
                          example: '1234567'
                        insured_name:
                          description: >-
                            The insured's business legal name. Null when none is
                            recorded.
                          type: string
                          nullable: true
                          example: EXAMPLE TRUCKING LLC
                        effective_date:
                          description: >-
                            Policy term start, `YYYY-MM-DD`. This is the date
                            the paging parameters filter on.
                          type: string
                          format: date
                          example: '2026-03-01'
                        expiration_date:
                          description: >-
                            Policy term end, `YYYY-MM-DD`. A policy is still
                            listed on its expiration date.
                          type: string
                          format: date
                          example: '2027-03-01'
                        endorsement_count:
                          description: >-
                            Transactions after the original binding —
                            endorsements, cancellations, reinstatements and
                            renewals, completed or not. Excludes the original
                            new business. Counts only the part of the policy's
                            life spent in your agency's book.
                          type: integer
                          example: 3
                        policies:
                          description: >-
                            One entry per bound line of coverage. Can be an
                            empty array when no line has completed binding.
                          type: array
                          items:
                            properties:
                              coverage:
                                description: >-
                                  Line of coverage. Always returned in the order
                                  AL, APD, MTC, NTL, TGL, WC. `WC` is reserved —
                                  Workers' Comp is not yet issued, so no entry
                                  carries it today.
                                type: string
                                enum:
                                  - AL
                                  - APD
                                  - MTC
                                  - NTL
                                  - TGL
                                  - WC
                                example: AL
                              policy:
                                description: >-
                                  The policy number for that line. Null when the
                                  line is bound but carries no policy number yet
                                  — the entry is still returned, because the
                                  coverage exists.
                                type: string
                                nullable: true
                                example: CWAL0012345
                            type: object
                  pagination:
                    description: Always present, including on an empty result.
                    type: object
                    properties:
                      returned:
                        description: >-
                          Number of policies in this response. `0` on an empty
                          book.
                        type: integer
                        example: 500
                      has_more:
                        description: >-
                          A JSON boolean — `true` when at least one further
                          policy exists beyond this page.
                        type: boolean
                        example: true
                      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 rows. 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 book.
          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.