> ## 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 a campaign

> Everything needed to show a campaign: name, images, story, goal, category and the total raised through Donate. A completed campaign stays readable with `eligible: false`. A hidden campaign answers 200 with `available: false`: a stand-in name and image to show in its place and none of its own details or totals, so a page that shows a coin's recipients keeps working. Only an id that names no campaign answers 404. Public: no API key is needed. Send one to use your organization's rate limit.



## OpenAPI

````yaml /openapi.json get /v2/campaigns/{campaignId}
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/campaigns/{campaignId}:
    get:
      tags:
        - Campaigns
      summary: Get a campaign
      description: >-
        Everything needed to show a campaign: name, images, story, goal,
        category and the total raised through Donate. A completed campaign stays
        readable with `eligible: false`. A hidden campaign answers 200 with
        `available: false`: a stand-in name and image to show in its place and
        none of its own details or totals, so a page that shows a coin's
        recipients keeps working. Only an id that names no campaign answers 404.
        Public: no API key is needed. Send one to use your organization's rate
        limit.
      operationId: getCampaign
      parameters:
        - name: campaignId
          in: path
          required: true
          schema:
            type: string
            description: The `id` of a campaign.
        - name: donate-api-key
          in: header
          required: false
          schema:
            type: string
          description: >-
            Optional. Your API key. With it the request counts against your
            organization's rate limit; without it, against the limit of your IP
            address.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    enum:
                      - campaign
                    type: string
                  id:
                    type: string
                  available:
                    type: boolean
                    description: >-
                      Whether this is the recipient's own profile. When false,
                      `name` and `imageUrl` are a stand-in to show in its place,
                      or null when nothing has this id.
                  name:
                    type: string
                  imageUrl:
                    anyOf:
                      - type: string
                        description: An absolute http or https URL.
                      - type: 'null'
                  url:
                    anyOf:
                      - type: string
                        description: An absolute http or https URL.
                      - type: 'null'
                    description: >-
                      The campaign's page on Donate. Null when `available` is
                      false.
                  source:
                    anyOf:
                      - enum:
                          - donate
                          - tiltify
                        type: string
                        description: >-
                          Where a campaign was created: on Donate, or imported
                          from a provider. More providers can be added.
                      - type: 'null'
                    description: Null when `available` is false.
                  sourceUrl:
                    anyOf:
                      - type: string
                        description: An absolute http or https URL.
                      - type: 'null'
                    description: >-
                      The campaign's page at its provider. Null for a campaign
                      created on Donate.
                  goalUsdE6:
                    anyOf:
                      - type: string
                        description: >-
                          US dollars multiplied by 10^6, as a decimal string.
                          "1250000" is $1.25.
                      - type: 'null'
                    description: >-
                      The campaign's goal, in the same unit as
                      `stats.totalUsdE6`. Null when it has none, and always for
                      an imported campaign: its provider's goal counts support
                      Donate does not see.
                  status:
                    anyOf:
                      - enum:
                          - active
                          - completed
                        type: string
                      - type: 'null'
                    description: >-
                      A completed campaign stays readable and can no longer be
                      named in a new config. Null when `available` is false.
                  eligible:
                    type: boolean
                    description: >-
                      Whether this campaign can be named in a new config. False
                      for a completed campaign, and for an active one whose
                      recipients cannot be paid through a new config.
                  categoryId:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: An `id` from `GET /v2/categories`.
                  media:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          enum:
                            - image
                            - video
                          type: string
                          description: >-
                            `image`: `url` is the image. `video`: `url` is a
                            page that plays the video.
                        url:
                          type: string
                          description: An absolute http or https URL.
                      required:
                        - type
                        - url
                  stats:
                    anyOf:
                      - 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
                      - type: 'null'
                    description: >-
                      Amounts attributed to this campaign through Donate only.
                      Null when `available` is false.
                  createdAt:
                    anyOf:
                      - type: string
                        description: >-
                          RFC 3339 instant in UTC, such as
                          2026-11-19T09:12:04.118Z.
                      - type: 'null'
                    description: Null when `available` is false.
                  description:
                    type: string
                    description: >-
                      The campaign's story as plain text. Empty when `available`
                      is false.
                required:
                  - type
                  - id
                  - available
                  - name
                  - imageUrl
                  - url
                  - source
                  - sourceUrl
                  - goalUsdE6
                  - status
                  - eligible
                  - categoryId
                  - media
                  - stats
                  - createdAt
                  - description
              example:
                type: campaign
                id: cmr2icrm701xu04jxvybvmgwn
                available: true
                name: Kintara for St. Jude
                imageUrl: >-
                  https://donategg-user-assets-prod.s3.us-east-1.amazonaws.com/image/e6a658a4-ee8a-4428-960d-56e16bfe9c91/1874bf55-7026-40be-a1ff-5fbedb6a0fd1.png
                url: https://www.donate.gg/campaigns/kintara-for-st-jude
                source: donate
                sourceUrl: null
                goalUsdE6: '10000000000'
                status: active
                eligible: true
                categoryId: community
                media:
                  - type: image
                    url: >-
                      https://donategg-user-assets-prod.s3.us-east-1.amazonaws.com/image/e6a658a4-ee8a-4428-960d-56e16bfe9c91/1874bf55-7026-40be-a1ff-5fbedb6a0fd1.png
                stats:
                  totalUsdE6: '13999894404'
                  pendingUsdE6: '328679'
                  settledUsdE6: '13999565725'
                  donationCount: 558
                  pendingCount: 2
                  settledCount: 556
                  firstDonationAt: '2026-06-30T21:01:47.000Z'
                  lastDonationAt: '2026-07-27T16:04:31.000Z'
                createdAt: '2026-07-01T20:08:14.287Z'
                description: >-
                  Step up to the Kintara Wishing Well and make a wish that makes
                  a difference! Players can donate through the in-game wishing
                  well, with all donations from this campaign going to St. Jude.
        '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`: An API key was sent and is not valid. A request
            without a key is never answered 401 here.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    enum:
                      - UNAUTHENTICATED
                  message:
                    type: string
              example:
                code: UNAUTHENTICATED
                message: This API key is not valid.
        '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: []

````

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