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

# List Managed Accounts

> Requires the `reseller.accounts.read` token ability.

The accounts the reseller manages. Pass `include=domains` to embed each
account's domains, and `search` to filter on username, name or email.



## OpenAPI

````yaml /api-reference/openapi.json get /reseller/accounts
openapi: 3.1.2
info:
  title: Hosting Panel API
  version: 1.0.0
  description: >-
    The customer-facing hosting panel API. A request is scoped to the hosting
    account its bearer token belongs to; the token abilities decide which
    endpoints it may call.
servers:
  - url: https://hosting-panel.net/api/v1
security:
  - sanctum: []
tags:
  - name: Account
  - name: Domains
  - name: DNS
  - name: Email Accounts
  - name: Forwarders
  - name: Databases
  - name: FTP Accounts
  - name: Cron Jobs
  - name: URL Schedules
  - name: Node.js Applications
  - name: Valkey
  - name: Photon Optimizer
  - name: Statistics
  - name: PSI Metrics
  - name: PHP Versions
  - name: Reseller
paths:
  /reseller/accounts:
    get:
      tags:
        - Reseller
      summary: List Managed Accounts
      description: |-
        Requires the `reseller.accounts.read` token ability.

        The accounts the reseller manages. Pass `include=domains` to embed each
        account's domains, and `search` to filter on username, name or email.
      operationId: account.index
      parameters:
        - name: include
          in: query
          schema:
            type: string
            enum:
              - domains
        - name: search
          in: query
          schema:
            type: string
            maxLength: 255
        - name: per_page
          in: query
          description: Results per page. Defaults to 50, capped at 200.
          schema:
            type: integer
            default: 50
            minimum: 1
            maximum: 200
      responses:
        '200':
          description: Array of `ResellerAccountSummaryResource`
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ResellerAccountSummaryResource'
                required:
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    ResellerAccountSummaryResource:
      type: object
      properties:
        id:
          type: integer
        username:
          type:
            - string
            - 'null'
        name:
          type: string
        email:
          type: string
        package:
          type:
            - object
            - 'null'
          properties:
            id:
              type: integer
            name:
              type: string
            type:
              type: string
          required:
            - id
            - name
            - type
        webserver_fqdn:
          type:
            - string
            - 'null'
        suspended:
          type: boolean
        terminate_at:
          type:
            - string
            - 'null'
        created_at:
          type:
            - string
            - 'null'
        domains:
          type: array
          items:
            $ref: '#/components/schemas/DomainResource'
      required:
        - id
        - username
        - name
        - email
        - package
        - webserver_fqdn
        - suspended
        - terminate_at
        - created_at
      title: ResellerAccountSummaryResource
    DomainResource:
      type: object
      properties:
        id:
          type: integer
        domain:
          type: string
        document_root:
          type:
            - string
            - 'null'
        php_version:
          type: string
        is_alias:
          type: boolean
        alias_of:
          type:
            - object
            - 'null'
          properties:
            type:
              type: string
              enum:
                - subdomain
                - domain
            id:
              type: integer
            name:
              type: string
          required:
            - type
            - id
            - name
        ssl:
          type: object
          properties:
            managed:
              type: boolean
            expires_at:
              type:
                - string
                - 'null'
          required:
            - managed
            - expires_at
        mail_routing:
          type: string
          enum:
            - local
            - external
        created_at:
          type:
            - string
            - 'null'
      required:
        - id
        - domain
        - document_root
        - php_version
        - is_alias
        - alias_of
        - ssl
        - mail_routing
        - created_at
      title: DomainResource
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    sanctum:
      type: http
      description: >-
        An API access token, sent as `Authorization: Bearer <token>`. Its
        abilities decide which endpoints it may call.
      scheme: bearer

````

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