> ## 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.

# Create a config

> Create a config with active charity beneficiaries. New configs reject hidden, disabled, or opted-out beneficiaries with CHARITY_NOT_ACTIVE. Identical existing configs remain retrievable through an idempotent retry, regardless of current beneficiary status. Requires 1-5 beneficiaries. The standard API fee is 20% (2,000 basis points), set by the server. The stored config fee is retained for historical replay and ID compatibility. After Solana fee-policy activation, current pricing uses the developer project and original attribution address. Use GET /configs/{configId}/fee for an estimate. Native Solana donations use their donation event slot; bridged EVM donations use their finalized Solana USDC delivery slot, not the source block or later admission slot. Requires your API key. New integrations use `POST /v2/configs`.



## OpenAPI

````yaml /openapi.json post /v1/configs
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:
  /v1/configs:
    post:
      tags:
        - Configs
      summary: Create a config
      description: >-
        Create a config with active charity beneficiaries. New configs reject
        hidden, disabled, or opted-out beneficiaries with CHARITY_NOT_ACTIVE.
        Identical existing configs remain retrievable through an idempotent
        retry, regardless of current beneficiary status. Requires 1-5
        beneficiaries. The standard API fee is 20% (2,000 basis points), set by
        the server. The stored config fee is retained for historical replay and
        ID compatibility. After Solana fee-policy activation, current pricing
        uses the developer project and original attribution address. Use GET
        /configs/{configId}/fee for an estimate. Native Solana donations use
        their donation event slot; bridged EVM donations use their finalized
        Solana USDC delivery slot, not the source block or later admission slot.
        Requires your API key. New integrations use `POST /v2/configs`.
      operationId: v1.configs.create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                charityBeneficiaries:
                  type: array
                  items:
                    type: object
                    properties:
                      charityId:
                        type: string
                      weight:
                        type: number
                    required:
                      - charityId
                      - weight
              required:
                - charityBeneficiaries
            example:
              charityBeneficiaries:
                - charityId: 9b4dae4e-d8c1-4322-a594-35a4858296b2
                  weight: 1
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: object
                    properties:
                      hex:
                        type: string
                      base58:
                        type: string
                    required:
                      - hex
                      - base58
                  feeBps:
                    type: string
                    description: >-
                      Stored config fee in basis points, retained for historical
                      replay. Use the effective-fee endpoint for current Solana
                      pricing.
                  users:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        weight:
                          type: string
                      required:
                        - id
                        - weight
                  charities:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        slug:
                          type: string
                        name:
                          type: string
                        logo:
                          type: string
                          description: >-
                            Charity logo URL. Opted-out charities return a
                            Donate placeholder; other statuses retain stored
                            branding.
                        website:
                          type: string
                        mission:
                          type: string
                        address:
                          type: string
                        city:
                          type: string
                        state:
                          type: string
                        country:
                          enum:
                            - US
                            - UK
                            - CA
                            - DE
                            - ES
                            - FR
                            - IE
                            - IT
                            - JP
                            - NL
                            - PT
                            - AR
                            - BR
                            - CL
                            - CO
                            - PE
                            - NZ
                            - 'NO'
                            - AU
                            - LEGACY
                          type: string
                        zipCode:
                          type: string
                        taxId:
                          type: string
                        status:
                          enum:
                            - ACTIVE_ONBOARDED
                            - ACTIVE_NOT_ONBOARDED
                            - ACTIVE_REVIEWING_TERMS
                            - SOFT_HIDDEN
                            - PLATFORM_DISABLED
                            - OPTED_OUT
                          type: string
                        configId:
                          type: string
                        socials:
                          type: object
                          properties:
                            blog:
                              anyOf:
                                - type: string
                                - type: 'null'
                            twitter:
                              anyOf:
                                - type: string
                                - type: 'null'
                            facebook:
                              anyOf:
                                - type: string
                                - type: 'null'
                            instagram:
                              anyOf:
                                - type: string
                                - type: 'null'
                            linkedin:
                              anyOf:
                                - type: string
                                - type: 'null'
                            youtube:
                              anyOf:
                                - type: string
                                - type: 'null'
                            blogUrl:
                              anyOf:
                                - type: string
                                - type: 'null'
                            twitterUrl:
                              anyOf:
                                - type: string
                                - type: 'null'
                            twitterHandle:
                              anyOf:
                                - type: string
                                - type: 'null'
                            facebookUrl:
                              anyOf:
                                - type: string
                                - type: 'null'
                            facebookHandle:
                              anyOf:
                                - type: string
                                - type: 'null'
                            instagramUrl:
                              anyOf:
                                - type: string
                                - type: 'null'
                            instagramHandle:
                              anyOf:
                                - type: string
                                - type: 'null'
                            linkedinUrl:
                              anyOf:
                                - type: string
                                - type: 'null'
                            linkedinHandle:
                              anyOf:
                                - type: string
                                - type: 'null'
                            youtubeUrl:
                              anyOf:
                                - type: string
                                - type: 'null'
                            youtubeHandle:
                              anyOf:
                                - type: string
                                - type: 'null'
                            youtubeChannelId:
                              anyOf:
                                - type: string
                                - type: 'null'
                          required:
                            - blog
                            - twitter
                            - facebook
                            - instagram
                            - linkedin
                            - youtube
                            - blogUrl
                            - twitterUrl
                            - twitterHandle
                            - facebookUrl
                            - facebookHandle
                            - instagramUrl
                            - instagramHandle
                            - linkedinUrl
                            - linkedinHandle
                            - youtubeUrl
                            - youtubeHandle
                            - youtubeChannelId
                        isEnabled:
                          type: boolean
                        stats:
                          type: object
                          properties:
                            pendingUsdE6:
                              type: string
                            finalizedUsdE6:
                              type: string
                            displayedUsdE6:
                              type: string
                            pendingCount:
                              type: number
                            finalizedCount:
                              type: number
                            donationCount:
                              type: number
                            firstDonationAt:
                              anyOf:
                                - type: string
                                - type: 'null'
                            lastDonationAt:
                              anyOf:
                                - type: string
                                - type: 'null'
                          required:
                            - pendingUsdE6
                            - finalizedUsdE6
                            - displayedUsdE6
                            - pendingCount
                            - finalizedCount
                            - donationCount
                            - firstDonationAt
                            - lastDonationAt
                        weight:
                          type: string
                      required:
                        - id
                        - slug
                        - name
                        - logo
                        - website
                        - mission
                        - address
                        - city
                        - state
                        - country
                        - zipCode
                        - taxId
                        - status
                        - configId
                        - socials
                        - isEnabled
                        - weight
                required:
                  - id
                  - feeBps
                  - users
                  - charities
        '400':
          description: '400'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      error:
                        type: string
                      code:
                        enum:
                          - VALIDATION_ERROR
                        type: string
                      issues:
                        type: array
                        items:
                          anyOf:
                            - {}
                            - type: 'null'
                    required:
                      - error
                      - code
                  - type: object
                    properties:
                      error:
                        type: string
                      code:
                        enum:
                          - CHARITY_NOT_FOUND
                        type: string
                    required:
                      - error
                      - code
                  - type: object
                    properties:
                      error:
                        type: string
                      code:
                        enum:
                          - CHARITY_NOT_ACTIVE
                        type: string
                    required:
                      - error
                      - code
                  - type: object
                    properties:
                      error:
                        type: string
                      code:
                        enum:
                          - DUPLICATE_CHARITY_IDS
                        type: string
                    required:
                      - error
                      - code
                  - type: object
                    properties:
                      error:
                        type: string
                      code:
                        enum:
                          - INVALID_JSON
                        type: string
                    required:
                      - error
                      - code
        '413':
          description: '413'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    enum:
                      - PAYLOAD_TOO_LARGE
                    type: string
                required:
                  - error
                  - code
      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.