Blaze
  • Overview
    • Overview of workflows
  • Fundamentals
    • Getting set up
      • Access controls
      • Invite your team
      • Integrations
      • Custom Bot
    • Team and workspace settings
      • For workspace owners
      • For collaborators
    • FAQ
      • Subscription & Pricing
      • Workspace Settings
      • Lead Generation
      • Campaigns and Outreach
      • Forms and Rewards
  • Product Guides
    • Lead Gen and Segments
      • Segment Types
        • Saved segments
        • Curated segments
        • Community Segments
        • Uploaded Segments
      • How to filter segments
        • Twitter Audience filters
        • LinkedIn Audience filters
        • Telegram Audience filters
        • Wallet Audience filters
      • How to upload segments
        • Upload CSV
        • Paste URLs
      • How to create a lead list using Find Leads feature
      • Use Social Search to find leads or trending content
        • Twitter Social Search
          • X Post Search
          • X Account Followers
          • X Spaces Listeners
        • LinkedIn Social Search
          • LinkedIn Post Authors
          • LinkedIn Post Reactor/Commentor
      • How to use Segment Wizard to build lead lists instantly
      • How to generate a lead list or segment of wallets using Wallet CRM
        • How to refine & create a segment of wallets
        • Reach out to Wallet CRM leads
      • How to split a segment into multiple subsegments for A/B testing
      • Capture leads and sign ups with Forms
        • Create and share a form
        • View form responses
        • Embed a form on your website
        • Auto-send forms to new Discord users
    • DM Campaigns and Marketing Automation
      • Run multi-step DM campaigns
      • AI Personalization
      • AI Replies (Coming Soon)
      • Start Ad Campaigns using Blaze
      • Unified Inbox
      • Manage Discord Campaigns and DMs
        • Discord DM Users
      • Rewards, Social Referrals and Quests
        • Create a Rewards Campaign
          • Available Actions
          • Edit campaign
        • Share quest page and track performance
        • Distribute Rewards
      • Run campaigns via XMTP Wallet Messaging
      • Distribute Airdrops to on-chain leads
      • Distribute NFTs to your users
    • Social Media Management - Twitter
      • Post and Schedule Tweets
      • Post and Schedule Farcaster Casts
      • Post Library
      • Top Performing Tweets
      • Twitter Analytics
        • Understand Twitter growth and engagement
    • Discord Analytics
      • Comprehensive Overview of your Discord Community
      • Create Discord Custom Report of your community
      • Find Sentiment of Discord Community
      • Analyze Engagement rate of your Discord Members
      • Find Topics discussed by your Discord Community
      • Product Feedback + User Insights
        • Messages
        • Message Explorer
        • Trend Explorer
        • Collect feedback with forms
        • Invite Attribution
      • Measure cross-platform marketing campaigns
    • Wallet metrics glossary
    • KOL Index
    • Cross Platform Analytics
      • Create and analyze a Twitter campaign
  • Blaze API
    • Getting started
      • Set up the Zapier integration
      • Set up API access
    • Data API
      • Active Users
      • Price
      • New users
      • Transaction Count
      • Market Cap
      • Transaction Fees
      • Official Account Metrics
      • Community Mentions Metrics
      • Retention Metrics
    • Community API
      • Ping
      • Member Details
      • Member Activity
      • Members Activity By Id
      • Discord Messages
      • Invite Attributions
    • CRM and Rewards API
      • Overview
        • Schema
        • Transaction Operations
      • Create User
      • Update User
      • Delete User
      • Create Transaction
      • Retrieve Transactions
      • Update Transaction
      • Delete Transaction
      • Leaderboard
      • Tasks and User Completion
    • Wallet Intelligence and Identity API
      • Wallet Holdings
      • Smart Contract Interactions
      • Average Token Hold Time
      • Wallet Traits
      • Wallet Scores
      • Wallet Socials
      • Token Holders
  • Get in touch
    • Support
    • Feedback
Powered by GitBook
On this page
  • GraphQL Query
  • Variables
  • Response
  • Examples

Was this helpful?

  1. Blaze API
  2. CRM and Rewards API

Leaderboard

GraphQL Endpoint to fetch the leaderboard of a quest or aggregated points for any quest participant.

GraphQL Query

query Leaderboard($activityTrackerId: Int!, $page: Int, $pageSize: Int) {
  leaderboard(activityTrackerId: $activityTrackerId, page: $page, pageSize: $pageSize) {
    activityTrackerId
    totalParticipants
    participants {
      walletAddress
      twitterId
      discordId
      email
      twitterUsername
      discordUsername
      points
      rank
    }
  }
}

Variables

{
    "pageSize": Int, // Number of events entries in a fetch. Upper limit = 100
    "page": Int, // Page number
    "activityTrackerId": Int // activity tracker id
}

Response

{
    "data": {
        "leaderboard": {
            "totalParticipants": Int, // Total number of participants in activity tracker
            "activityTrackerId": Int, // activity tracker id
            "leaderboardList": Array<{
                "walletAddress": String, // Wallet Address if available
                "twitterId": String, // twitter id if available
                "discordId": String, // discord id if available
                "email": String, // email address if available
                "twitterUsername": String, // Twitter username if available
                "discordUsername": String, // Discord username if available
                "points": Int, // Total points at the time of creation of the leaderboard
                "rank": Int, // Rank of the user on the leaderboard
            }>
        }
    }
}

Examples

POST https://dashboard.withblaze.app/api/graphql-api

Query Parameters

Name
Type
Description

page

1

pageSize

10

Max Limit - 100

activityTrackerId*

QUEST-ID

Required: Activity tracker id

If the quest ID is not specified, then the request will throw an error

Headers

Name
Type
Description

x-api-key*

API-KEY

Your Blaze API Key

PreviousDelete TransactionNextTasks and User Completion

Last updated 1 year ago

Was this helpful?