PerpDB.xyz
API Docs
Getting started
  • Introduction
  • Authentication
  • Errors & Rate Limits
  • OpenAPI
  • MCP
  • Credits
Resources
  • Protocols
    • GETList protocols
    • GETProtocol stats
  • Markets
    • GETList markets
    • GETMarket stats
  • Positions
    • GETOpen positions stats
    • GETOpen positions search
    • GETPosition stats
    • GETPosition lifecycle
  • Accounts
    • GETAccounts stats
    • GETAccounts search
    • GETAccount stats
    • GETAccount history
  • Liquidations
    • GETLiquidations search
    • GETLiquidation history
  • Open interest
    • GETCurrent open interest
    • GETOpen interest history
  • Volume
    • GETVolume history
  • Funding rates
    • GETCurrent funding rates
    • GETFunding rate history
  • PerpDB WebSockets
    • WSSLifecycle fills
Guide

Authentication

Every endpoint requires an API key in the x-api-key header. Keys are managed from the API Keys & Usage page in your Account menu. A missing, invalid, or revoked key returns 401 Unauthorized.

Header
← BackIntroductionNext →Errors & Rate Limits