API Reference

Complete reference for all PrismGPT API endpoints.

Authentication

Most API endpoints require wallet address authentication. Include your wallet address in request bodies.

Wallet Endpoints

POST/api/wallet/track

Track and initialize a wallet session.

{
  "wallet": "0x..."
}

AI Endpoints

POST/api/ai/query

Query an AI agent with a prompt.

{
  "agent": "general" | "developer" | "blockchain",
  "prompt": "Your question here",
  "wallet": "0x..."
}

Rewards Endpoints

POST/api/rewards/spin

Spin for daily rewards (24hr cooldown).

{
  "wallet": "0x..."
}
GET/api/rewards/spin?wallet=0x...

Check reward status and cooldown.

Leaderboard Endpoints

GET/api/leaderboard?limit=100

Get leaderboard rankings.

Launchpad Endpoints

GET/api/launchpad/projects

Get active launchpad projects (Coming Soon).

POST/api/launchpad/apply

Apply for launchpad (Coming Soon).