💎
Diamond Network
  • 👋Welcome
  • 🛡️Authentication
  • 🛑App Errors
  • 💬Support
  • API Products
    • 🔑Verify
      • 🔒Unlockables
      • 🔗Unlockable Links
      • ✨Browser SDK
      • 👨‍💻REST API
      • 🛑Verify Errors
      • ❔Guides
        • Gated Content
        • Holders Discount
        • Wallet Login
        • Trait-based Rewards
  • NFT-Inator
    • 🎇NEW: Reserve your club
    • Features
      • Tiers
    • Getting Started
      • Create an account
      • Start a project
      • Project Stage
      • Upload Traits
      • Adjust project settings
    • Design custom tokens
      • Prototype UI
      • Design & save tokens
      • Creating a promo video
      • Download your art & metadata
    • Generate a collection
      • Generator UI
      • Token Sets
      • Managing traits & rarity
      • Rules
      • Rarity views
      • Filtering & editing tokens
    • Export a project
      • Pre-existing artwork
      • Promo video
      • Export Collection
        • Basic Settings
        • NFT-Preview
        • IPFS Upload
        • Export Files
      • IPFS Options
        • NFT.storage
        • Pinata
    • Smart contract deployer
      • Initial Setup
      • Deploy a contract
        • Minting
        • Payouts & royalties
        • Features
        • Deploy to testnet
      • Reserve your club
    • Managing a smart contract
      • Dashboard
      • Artwork
      • Allowlist
      • Airdrop
      • Withdraw
      • Mint Button
      • Source & ABI
      • Settings
Powered by GitBook
On this page
  • Using API keys
  • Rate Limits
  • Cross Domain Apps

Was this helpful?

Authentication

How to get credentials and authenticate with the Diamond Network APIs

PreviousWelcomeNextApp Errors

Last updated 3 years ago

Was this helpful?

All requests to Diamond Network APIs must be authenticated with a public or private API key. You can use the same credentials to access all current and future APIs, provided the product is available to your account.

on the dashboard to get your credentials

Format
Type
Usage

pk_XXXXXX

Public

For frontend use with the Verify or

sk_XXXXXX

Secret

Backend use to create & manage or use the

Using API keys

When using the REST API, pass your API key as header X-API-KEY. For the initialise using your public API key.

Never reveal your secret API key on the frontend!

Rate Limits

When using the public API key, requests are rate limited per-IP, allowing 60 requests every 15 minutes. This quota is shared across all Diamond Network APIs and apps.

Requests using the secret API key are rate limited per-app, allowing 900 requests every 15 minutes. This quota is not shared, and only applies to your app, however it cannot be used from the frontend.

When exceeding your rate limit you'll receive HTTP Error 429 Too Many Requests. You can monitor the remaining request quota and rate limit reset with the RateLimit-Remaining and RateLimit-Reset headers returned in every request.

If you're frequently hitting the rate limit please contact us to increase your limits.

Cross Domain Apps

Cross domain apps are not currently supported, each app can only be accessed from a single domain (or subdomain). Please create a new app for each domain if you wish to use our APIs across multiple domains.

🛡️
Register a free app
Browser SDK
Browser SDK
Verification API
Unlockables
Verification API