Skip to main content

API Key Authentication

All Nonce Private API requests require authentication using a Workspace API Key passed in the Authorization header.

Header Format

Use the standard Bearer token format:

Obtaining an API Key

You can generate API keys directly from the Nonce Dashboard:
  1. Log in to Nonce Dashboard
  2. Navigate to the Workspace you want to access via API
  3. Go to OrganizationManageAPI Keys
  4. Click Create API Key and provide a descriptive name
  5. Copy and securely store the generated key (it will only be shown once)
Create API Keys

Create API Key from Dashboard

API keys are scoped to a specific Workspace. Make sure to generate the key from the correct Workspace that matches the workspace_id in your API requests.

Authentication Errors

Example Error Response

Security Best Practices

  • Never expose your API key in client-side code
  • Store API keys in environment variables
  • Rotate your API keys periodically
  • Use separate API keys for different environments (development, production)
  • Revoke unused or compromised keys immediately from the Dashboard