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

# Get reseller statistics

> Returns all-time wallet generation and completed signature statistics
for the authenticated reseller. `totals` summarizes usage across all
owned sub-custodians, while `custodians` provides the same metrics for
each sub-custodian. Sub-custodians without activity are included with
zero values.




## OpenAPI

````yaml /openapi/reseller-api.yaml get /resellers/stats
openapi: 3.1.0
info:
  title: Portal Reseller API
  version: '3.0'
  description: >
    The Portal Reseller API lets approved reseller custodians create and manage

    sub-custodians. Reseller API keys are environment-agnostic and authenticate

    the reseller custodian. Sub-custodian Portal API keys created through this
    API

    are scoped to a specific sub-custodian environment.


    ## Base URL

    `https://api.portalhq.io/api/v3`


    ## Authentication

    Include your Reseller API key as a Bearer token in the `Authorization`
    header

    of every request.
servers:
  - url: https://api.portalhq.io/api/v3
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Reseller Statistics
    description: View aggregate and per-sub-custodian usage statistics
  - name: Sub-Custodians
    description: Create, list, suspend, and reactivate sub-custodians
  - name: Sub-Custodian Environments
    description: View environments for sub-custodians
  - name: Sub-Custodian API Keys
    description: Create and delete sub-custodian Portal API keys
paths:
  /resellers/stats:
    get:
      tags:
        - Reseller Statistics
      summary: Get reseller statistics
      description: |
        Returns all-time wallet generation and completed signature statistics
        for the authenticated reseller. `totals` summarizes usage across all
        owned sub-custodians, while `custodians` provides the same metrics for
        each sub-custodian. Sub-custodians without activity are included with
        zero values.
      operationId: getResellerStatistics
      responses:
        '200':
          description: Reseller statistics retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResellerStatisticsResponse'
              example:
                totals:
                  signaturesCompleted: 24
                  walletsGenerated: 10
                custodians:
                  - custodianId: custodian_123
                    signaturesCompleted: 17
                    walletsGenerated: 6
                  - custodianId: custodian_456
                    signaturesCompleted: 7
                    walletsGenerated: 4
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    ResellerStatisticsResponse:
      type: object
      required:
        - totals
        - custodians
      properties:
        totals:
          $ref: '#/components/schemas/ResellerStatisticsMetrics'
        custodians:
          type: array
          items:
            $ref: '#/components/schemas/SubCustodianStatistics'
    ResellerStatisticsMetrics:
      type: object
      required:
        - signaturesCompleted
        - walletsGenerated
      properties:
        signaturesCompleted:
          type: integer
          minimum: 0
          description: Number of successfully completed signature operations.
        walletsGenerated:
          type: integer
          minimum: 0
          description: Number of wallets generated across supported curves.
    SubCustodianStatistics:
      allOf:
        - $ref: '#/components/schemas/ResellerStatisticsMetrics'
        - type: object
          required:
            - custodianId
          properties:
            custodianId:
              type: string
              description: Sub-custodian ID.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
  responses:
    Unauthorized:
      description: Unauthorized - invalid or missing Reseller API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: >-
        Forbidden - the authenticated custodian is not allowed to perform this
        action
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Reseller API Key
      description: Reseller API key created in the Portal dashboard.

````