Skip to main content

API Key Authentication

ZKScore API uses Bearer token authentication. All API requests must include your API key in the Authorization header.

Getting an API Key

  1. Visit the Developer Portal
  2. Connect your wallet
  3. Navigate to “API Keys”
  4. Click “Create New API Key”
  5. Copy and securely store your key
Your API key is shown only once. Store it securely and never expose it in client-side code.

Making Authenticated Requests

Include your API key in the Authorization header with the Bearer scheme:

Example Requests

API Key Permissions

API keys can have different permission levels:
Use the minimum required permissions for your use case to enhance security.

Security Best Practices

Always make API calls from your backend server. Never include API keys in:
  • Frontend JavaScript code
  • Mobile app code
  • Public repositories
  • Client-side environment variables
Store API keys in environment variables, not in your code:
.env
Rotate your API keys periodically and immediately if compromised:
  1. Create a new API key
  2. Update your application
  3. Revoke the old key
Create separate API keys for development, staging, and production:
  • dev-app-name
  • staging-app-name
  • prod-app-name

Error Responses

401 Unauthorized

Missing or invalid API key:

403 Forbidden

Insufficient permissions:

Managing API Keys

Create a New Key

List Your Keys

Revoke a Key

Developer API Reference

View complete API key management documentation

Next Steps

Make Your First Request

Follow the quick start guide

Explore API Endpoints

Browse all available endpoints