Skip to main content
Every request to the NGN Market API must include a valid API key in the Authorization header. The API validates the key on every request and returns an error immediately if it is missing, malformed, or revoked.

Generate an API key

API keys are created and managed from your developer dashboard.
  1. Log in at ngnmarket.com
  2. Go to DashboardDeveloper
  3. Click Generate API key, give it a name, and confirm
  4. Copy the key immediately.
Your key will look like this:
Copy your key before leaving the page. If you lose it, revoke it and generate a new one.

Attach the key to requests

Pass your key in the Authorization header using the Bearer scheme on every request:
The WebSocket API is the one exception to the header rule above. Browsers can’t set a custom header on a WebSocket handshake, so it takes your key as a ?api_key= query parameter instead.

Managing your keys

From the developer dashboard, you can view all your keys (name, creation date, last used), create up to 5 active keys per account, each named so you can tell which app or environment it belongs to, and revoke a key at any time. Revoking a key invalidates it immediately, any request using a revoked key returns INVALID_API_KEY from that point on, and revoked keys stay visible in the dashboard for your audit trail.
Create one key per app or environment (e.g. “Production”, “Staging”, “Local dev”). If a key is ever exposed, you can revoke just that one without affecting the others.
All keys on your account share a single monthly quota pool. Quota usage is tracked per account, not per key. See Rate limits for details.

Authentication errors