> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get All Accounts

> Retrieve a list of all accounts.



## OpenAPI

````yaml /openapi/product/data-accounts.yaml get /api/data/v1/accounts
openapi: 3.0.0
info:
  title: Data Accounts API
  version: v1
  description: >
    API for interacting with various Domo data operations, including retrieving,
    creating, and managing accounts.
servers:
  - url: https://{instance}.domo.com
    description: Domo Instance
    variables:
      instance:
        default: example
        description: Your Domo instance name
security:
  - developerToken: []
paths:
  /api/data/v1/accounts:
    get:
      tags:
        - Data Accounts API
      summary: Get All Accounts
      description: Retrieve a list of all accounts.
      responses:
        '200':
          description: A list of accounts.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AccountSummary'
              example:
                - accountId: '{account_id}'
                  displayName: Account 1
                - accountId: '{account_id}'
                  displayName: Account 2
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    AccountSummary:
      type: object
      description: Summary information for an account.
      properties:
        accountId:
          type: string
          description: The unique identifier for the account.
        displayName:
          type: string
          description: The display name of the account.
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: A human-readable error message.
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    developerToken:
      type: apiKey
      in: header
      name: X-DOMO-Developer-Token
      description: Developer token for authentication.

````