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

# Get Accounts

> Fetches existing accounts according to query parameters.



## OpenAPI

````yaml openapi.json get /accounts
openapi: 3.1.0
info:
  title: Sudo Sandbox API
  version: '1.0'
servers:
  - url: https://api.sandbox.sudo.cards
security:
  - sec0: []
paths:
  /accounts:
    get:
      summary: Get Accounts
      description: Fetches existing accounts according to query parameters.
      operationId: get-accounts
      parameters:
        - name: page
          in: query
          description: Specifies the position the response data should begin from.
          schema:
            type: integer
            format: int32
            default: 0
        - name: limit
          in: query
          description: The number of accounts to fetch.
          schema:
            type: integer
            format: int32
            default: 100
        - name: currency
          in: query
          description: The currency type of the accounts you wish to fetch.
          schema:
            type: string
            enum:
              - ALL
              - NGN
              - USD
            default: ALL
        - name: type
          in: query
          description: Specifies whether to fetch the settlement accounts or the wallets
          schema:
            type: string
            enum:
              - account
              - wallet
            default: account
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value: '{}'
              schema:
                type: object
                properties: {}
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: '{}'
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: Authorization
      x-bearer-format: bearer
      x-default: '{{APIKey}}'

````