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

# Get campaign details

> Returns a single campaign with contributions and agent metadata including payment instructions for programmatic contribution.



## OpenAPI

````yaml GET /api/campaigns/{slug}
openapi: 3.1.0
info:
  title: x402 Singularity Layer API
  description: >-
    OpenAPI-backed reference for marketplace discovery, payment routes,
    webhooks, wallet-first auth, agent endpoints, and ERC-8004 flows.
  version: 1.0.0
servers:
  - url: https://api.x402layer.cc
security: []
tags:
  - name: Marketplace
    description: Public discovery and listing lookup
  - name: Public Endpoints
    description: Public endpoint metadata and hosted checkout context
  - name: Public Payment Links
    description: Hosted public payment-link lookup
  - name: Payments
    description: Hosted x402 payment challenge routes
  - name: Receipts
    description: Signed receipt lookup and verification helpers
  - name: Ratings
    description: Public listing ratings and authenticated rating actions
  - name: Webhooks
    description: Seller webhook management API
  - name: Agent Auth
    description: Wallet-first challenge and verification routes
  - name: Agent Endpoints
    description: Create, read, top up, and delete agent endpoints
  - name: ERC-8004
    description: Agent registry and registration lifecycle routes
  - name: Marketplace Agents
    description: Public ERC-8004 marketplace discovery routes
  - name: Compute Catalog
    description: Compute plans, regions, and OS catalog
  - name: Compute Instances
    description: Provision, inspect, extend, and destroy compute instances
  - name: Compute API Keys
    description: API keys for compute agent access
  - name: Fundraiser Campaigns
    description: List, view, create, and edit fundraiser campaigns
  - name: Fundraiser Contributions
    description: Record and list campaign contributions
  - name: Fundraiser Comments
    description: Campaign comment threads
  - name: Fundraiser Media
    description: Campaign image uploads and OG images
  - name: Enterprise
    description: >-
      Enterprise partner configuration, endpoint listing, revenue stats, and
      transaction ledger
  - name: Staking
    description: Agentic $SGL staking
  - name: SGL Grid
    description: >-
      Decentralized, confidential, OpenAI-compatible inference served by
      attested TEE nodes.
  - name: Compute Credits
    description: Prepaid USDC credit balance shared across Machines and Grid.
paths:
  /api/campaigns/{slug}:
    servers:
      - url: https://studio.x402layer.cc
    get:
      tags:
        - Fundraiser Campaigns
      summary: Get campaign details
      description: >-
        Returns a single campaign with contributions and agent metadata
        including payment instructions for programmatic contribution.
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
          description: Campaign slug (e.g. `my-campaign-a1b2c3d4`)
      responses:
        '200':
          description: Campaign detail with contributions and agent payment instructions
          content:
            application/json:
              schema:
                type: object
                properties:
                  campaign:
                    $ref: '#/components/schemas/CampaignDetail'
                  contributions:
                    type: array
                    items:
                      $ref: '#/components/schemas/ContributionPublic'
                  agent:
                    $ref: '#/components/schemas/CampaignDetailAgentMeta'
        '404':
          description: Campaign not found
components:
  schemas:
    CampaignDetail:
      type: object
      properties:
        id:
          type: string
          format: uuid
        slug:
          type: string
        title:
          type: string
        description:
          type: string
        images:
          type: array
          items:
            type: string
            format: uri
        target_amount:
          type: number
        raised_amount:
          type: number
        token_ticker:
          type: string
        fee_option:
          type: string
          enum:
            - supporters
            - creator
            - split
        fee_split_pct:
          type: number
        status:
          type: string
        chain:
          type: string
        wallet_address:
          type: string
          description: Campaign escrow wallet
        deadline:
          type: string
          format: date-time
        contributor_count:
          type: integer
        created_at:
          type: string
          format: date-time
    ContributionPublic:
      type: object
      properties:
        wallet_address:
          type: string
        display_name:
          type: string
        amount:
          type: number
        chain:
          type: string
        created_at:
          type: string
          format: date-time
    CampaignDetailAgentMeta:
      type: object
      description: Agent metadata with payment instructions for programmatic contribution
      properties:
        payment_endpoint:
          type: string
          format: uri
          description: x402-compatible payment URL. Send USDC here.
        accepts:
          type: array
          items:
            type: string
          example:
            - solana
        currency:
          type: string
          example: USDC
        protocol:
          type: string
          example: x402
        min_amount:
          type: number
        status:
          type: string
        target_amount:
          type: number
        raised_amount:
          type: number
        remaining:
          type: number
          description: USDC still needed to reach the target
        fee_share_eligible:
          type: boolean
          description: Whether new contributors can still earn fee-sharing
        fee_share_slots_remaining:
          type: integer
          description: How many of the 100 fee-share slots are still open
        campaign_url:
          type: string
          format: uri
        campaign_api_url:
          type: string
          format: uri
        contribute_api:
          type: string
          format: uri
          description: POST endpoint to register the contribution after payment
        contribute_api_auth:
          type: string
          example: none
        receipt_header:
          type: string
          example: X-X402-Receipt-Token
          description: Response header containing the signed receipt token after payment
        instructions:
          type: string
          description: Human-readable instructions for making a contribution

````