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

# List account targets

> Returns the acting account plus any connected accounts reachable through an active controller connection. Requires the `accounts:read` scope.



## OpenAPI

````yaml /api-reference/openapi.yaml get /v1/accounts
openapi: 3.1.0
info:
  title: Kordless API
  version: 1.0.0
  description: |
    The Kordless API gives you programmatic access to the same verified Book,
    evaluator, and commitment mechanics that the workspace uses.

    ## Authentication

    All requests require a bearer token in the `Authorization` header:

    ```
    Authorization: Bearer sk_test_...
    ```

    Test keys use the `sk_test_` prefix; Live keys use `sk_live_`. The
    environment is encoded in the prefix — a Test key can never address Live
    data.

    ## Idempotency

    Write operations that create or mutate state require an `Idempotency-Key`
    header (up to 200 characters) so retries replay instead of duplicating.

    ## Rate limiting

    Requests are rate-limited per account and environment. The default limit is
    600 requests per minute. Responses include `ratelimit-limit`,
    `ratelimit-remaining`, and `ratelimit-reset` headers.

    ## Request IDs

    Every response includes an `x-request-id` header. Use this ID to find the
    request in the logs or when contacting support.
servers:
  - url: https://your-kordless-instance.com
    description: Replace with your Kordless instance base URL
security:
  - BearerAuth: []
tags:
  - name: Accounts
    description: List and retrieve account targets.
  - name: Quote spec
    description: Read the published Book specification.
  - name: Quote simulations
    description: Run non-persistent price simulations.
  - name: Quotes
    description: Produce formal, persisted quotes.
  - name: Commitments
    description: Create and confirm commitments on quotes.
  - name: Request logs
    description: Inspect API request history.
paths:
  /v1/accounts:
    get:
      tags:
        - Accounts
      summary: List account targets
      description: >-
        Returns the acting account plus any connected accounts reachable through
        an active controller connection. Requires the `accounts:read` scope.
      operationId: listAccounts
      parameters:
        - name: limit
          in: query
          description: Maximum number of accounts to return (1–100, default 25).
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
      responses:
        '200':
          description: A list of account targets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    enum:
                      - list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Account'
components:
  schemas:
    Account:
      type: object
      properties:
        id:
          type: string
          description: The account ID.
        object:
          type: string
          enum:
            - account
        name:
          type: string
          description: The account name.
        environment:
          type: string
          enum:
            - test
            - live
        relationship:
          type: string
          enum:
            - self
            - view
            - integration
            - full_access
          description: The relationship between the acting account and this target.
        billing_account_id:
          type: string
          description: The account responsible for billing.
        account_connection_id:
          type: string
          nullable: true
          description: The connection ID, if this is a connected account.
        capabilities:
          type: array
          items:
            type: string
          description: Capabilities configured on this account.
        quotable:
          type: boolean
          description: Whether this account has a published Book to quote against.
        created_at:
          type: string
          format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass your API key as a bearer token. Test keys start with `sk_test_`;
        Live keys start with `sk_live_`.

````