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

# Get the totals of your config

> What has been donated through one of your configs, in US dollars and in each token as it was sent. A config of another project answers 403. Requires your API key.



## OpenAPI

````yaml /openapi.json get /v2/configs/{configId}/stats
openapi: 3.1.1
info:
  title: Donate API
  version: 2.0.0
  description: >-
    Find charities and campaigns, create donation configs, and read what coins
    and donors have given. Every path starts with its version. Build on `/v2`.
    Its responses hold their own resource and references `{ type, id }` to
    others; every list is `{ items, nextCursor }`; amounts are integer strings
    whose name carries the unit (`UsdE6`, `Atomic`); and every error is `{
    "code": string, "message": string }`. `/v1` is the earlier surface: it keeps
    working, knows only charities, and has its own shapes and error body (`{
    "error": string, "code": string }`). Public reads work without a key and are
    rate limited per IP address; send `donate-api-key` to use the rate limit of
    your organization, which all its keys share. Creating and listing configs,
    reading project analytics and requesting a charity require the key.
servers:
  - url: https://api.donate.gg/api
    description: Every operation path starts with its version.
security: []
tags:
  - name: Beneficiaries
    description: >-
      A beneficiary is something a donation can pay: a charity or a campaign.
      Search for one to name in a config, or resolve the references a config or
      a coin holds into what to show.
  - name: Charities
    description: Registered non-profits listed on Donate.
  - name: Campaigns
    description: >-
      Fundraisers created on Donate or imported from a provider, their donation
      messages and their deposit addresses.
  - name: Configs
    description: >-
      A config is a permanent split: the beneficiaries a donation pays and the
      weight each receives. A donation is made against a config id.
  - name: Coins
    description: >-
      A coin is a token whose fees donate through a config: who it pays, what it
      has given, and how it ranks.
  - name: Donations
    description: >-
      The state of a donation that crosses chains. The donations a charity or a
      campaign has received are listed under Charities and Campaigns.
  - name: Charity requests
    description: >-
      Find a charity in an official register and ask Donate to list it when it
      is not listed yet.
  - name: Reference data
    description: Supported chains and campaign categories.
  - name: Users
    description: People with a Donate profile.
paths:
  /v2/configs/{configId}/stats:
    get:
      tags:
        - Configs
      summary: Get the totals of your config
      description: >-
        What has been donated through one of your configs, in US dollars and in
        each token as it was sent. A config of another project answers 403.
        Requires your API key.
      operationId: getConfigStats
      parameters:
        - name: configId
          in: path
          required: true
          schema:
            type: string
            description: >-
              Config id: `id` (0x hex, in either case) or `idBase58` of a
              config.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  stats:
                    type: object
                    properties:
                      totalUsdE6:
                        type: string
                        description: >-
                          US dollars multiplied by 10^6, as a decimal string.
                          "1250000" is $1.25.
                      pendingUsdE6:
                        type: string
                        description: >-
                          US dollars multiplied by 10^6, as a decimal string.
                          "1250000" is $1.25.
                      settledUsdE6:
                        type: string
                        description: >-
                          US dollars multiplied by 10^6, as a decimal string.
                          "1250000" is $1.25.
                      donationCount:
                        type: number
                      pendingCount:
                        type: number
                      settledCount:
                        type: number
                      firstDonationAt:
                        anyOf:
                          - type: string
                            description: >-
                              RFC 3339 instant in UTC, such as
                              2026-11-19T09:12:04.118Z.
                          - type: 'null'
                      lastDonationAt:
                        anyOf:
                          - type: string
                            description: >-
                              RFC 3339 instant in UTC, such as
                              2026-11-19T09:12:04.118Z.
                          - type: 'null'
                    required:
                      - totalUsdE6
                      - pendingUsdE6
                      - settledUsdE6
                      - donationCount
                      - pendingCount
                      - settledCount
                      - firstDonationAt
                      - lastDonationAt
                  volumes:
                    type: array
                    items:
                      type: object
                      properties:
                        chainId:
                          type: number
                          description: >-
                            Chain id. 101 is Solana; EVM chains use their
                            EIP-155 id.
                        tokenAddress:
                          type: string
                        amountAtomic:
                          type: string
                          description: >-
                            An amount in a token's smallest unit, as a decimal
                            string.
                      required:
                        - chainId
                        - tokenAddress
                        - amountAtomic
                required:
                  - stats
                  - volumes
              example:
                stats:
                  totalUsdE6: '181242751330'
                  pendingUsdE6: '0'
                  settledUsdE6: '181242751330'
                  donationCount: 423
                  pendingCount: 0
                  settledCount: 423
                  firstDonationAt: '2026-04-29T18:02:19.000Z'
                  lastDonationAt: '2026-10-28T04:16:10.000Z'
                volumes:
                  - chainId: 101
                    tokenAddress: So11111111111111111111111111111111111111112
                    amountAtomic: '2168403305040'
        '400':
          description: '`VALIDATION_ERROR`: The request is invalid.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    enum:
                      - VALIDATION_ERROR
                    type: string
                  message:
                    type: string
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        path:
                          type: string
                        code:
                          enum:
                            - required
                            - invalid
                            - too_small
                            - too_large
                            - unknown
                            - duplicate
                          type: string
                        message:
                          type: string
                      required:
                        - path
                        - code
                        - message
                required:
                  - code
                  - message
        '401':
          description: '`UNAUTHENTICATED`: The API key is missing or not valid.'
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - UNAUTHENTICATED
                  message:
                    type: string
              example:
                code: UNAUTHENTICATED
                message: >-
                  This operation needs your API key. Send it in the
                  donate-api-key header.
        '403':
          description: '`FORBIDDEN`: This belongs to another project.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    enum:
                      - FORBIDDEN
                    type: string
                  message:
                    type: string
                required:
                  - code
                  - message
        '404':
          description: '`NOT_FOUND`: Not found.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    enum:
                      - NOT_FOUND
                    type: string
                  message:
                    type: string
                required:
                  - code
                  - message
        '429':
          description: >-
            `RATE_LIMIT_EXCEEDED`: Too many requests. Wait for the time in the
            Retry-After header.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    enum:
                      - RATE_LIMIT_EXCEEDED
                    type: string
                  message:
                    type: string
              example:
                code: RATE_LIMIT_EXCEEDED
                message: >-
                  Too many requests. Wait for the time in the Retry-After
                  header.
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: donate-api-key
      description: >-
        Your project API key, from the Developer portal. Required to create and
        list configs, to read project analytics and to request a charity. Send
        it from your server, never from a browser.

````

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