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

# Get apiv1campaignsactive



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/campaigns/active
openapi: 3.1.0
info:
  title: Decibel Trading API
  description: >-
    RESTful API for Decibel. Provides read-only endpoints for market data,
    trading operations, positions, and analytics.
  contact:
    name: Decibel Team
    url: https://decibel.trade/
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.mainnet.aptoslabs.com/decibel
    description: Mainnet
  - url: https://api.testnet.aptoslabs.com/decibel
    description: Testnet
security:
  - bearerAuth: []
tags:
  - name: Market Data
    description: Market information and real-time data endpoints
  - name: User
    description: User information and account management
  - name: Account
    description: Account-specific endpoints and data
  - name: Trades
    description: Trading operations and history
  - name: Positions
    description: User position management
  - name: Orders
    description: Order management and history
  - name: TWAP
    description: Time-weighted average price orders
  - name: Bulk Orders
    description: Bulk order management
  - name: Vaults
    description: Vault operations and management
  - name: Analytics
    description: Analytics and performance metrics
  - name: Points
    description: Points-related account metrics
  - name: Trading Points
    description: Trading points endpoints
  - name: Trading Hz
    description: Trading Hz endpoints
  - name: Tier
    description: Tier information endpoints
  - name: Streaks
    description: User streak tracking endpoints
  - name: Predeposit Rewards
    description: Season 0 predeposit USDC rewards
  - name: Referrals
    description: Referral code management and tracking
  - name: Affiliates
    description: Affiliate code and earnings endpoints
  - name: Campaigns
    description: On-chain reward campaign endpoints
paths:
  /api/v1/campaigns/active:
    get:
      tags:
        - Campaigns
      operationId: handle_active
      responses:
        '200':
          description: Active campaigns
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CampaignMetadata'
        '500':
          description: Database error
components:
  schemas:
    CampaignMetadata:
      type: object
      required:
        - campaign_id
        - campaign_type
        - status
        - title
        - reward_asset
        - start_ts_sec
        - end_ts_sec
        - claim_start_ts_sec
        - claim_end_ts_sec
        - total_funded
      properties:
        campaign_id:
          type: integer
          format: int64
          minimum: 0
        campaign_type:
          $ref: '#/components/schemas/CampaignType'
        claim_end_ts_sec:
          type: integer
          format: int64
          minimum: 0
        claim_start_ts_sec:
          type: integer
          format: int64
          minimum: 0
        description:
          type:
            - string
            - 'null'
        end_ts_sec:
          type: integer
          format: int64
          minimum: 0
        reward_asset:
          type: string
        start_ts_sec:
          type: integer
          format: int64
          minimum: 0
        status:
          $ref: '#/components/schemas/CampaignStatus'
        title:
          type: string
        total_funded:
          type: integer
          format: int64
          description: >-
            Reward-asset subunits; divide by the asset's decimals client-side
            for display.
          minimum: 0
    CampaignType:
      type: string
      description: u8 mapping mirrors `campaign_manager.move::campaign_type_to_u8`.
      enum:
        - fee_rebate
        - maker_incentive
        - liquidation_rebate
        - volume_milestone
    CampaignStatus:
      type: string
      description: >-
        Wire form: lowercase string in `campaign_status_updates.new_status`.
        Empty row →

        `Draft` (synthesized read-side, never written).
      enum:
        - draft
        - funded
        - active
        - expired
        - reclaimed
        - cancelled
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from Geomi. See
        [Authentication](/api-reference/rest/authentication) for setup
        instructions.

````