Authentication

You'll need to authenticate your requests to access the Enhub API endpoints. All requests require a valid API key sent via the x-api-key header.

API Key

Authenticate every request by including your API key in the x-api-key header:

Example request with API key

curl https://api.enhub.nl/v1/scans \
  -H "x-api-key: {your-api-key}"

Test keys & production keys

Every project has two types of API keys:

  • Test keys — prefixed with zs_test_. Scans created with a test key use pre-computed fixtures instead of the real solver, return instantly, and do not cost credits. See Sandbox for details.
  • Production keys — prefixed with zs_live_. Scans are processed by the real optimization engine and count towards your usage.

Use test keys during development and switch to production keys when you're ready to go live.


Obtaining your API keys

You can create and manage API keys in the Enhub dashboard:

  1. Navigate to Organisatie overzicht (Organization overview).
  2. Open the API Keys tab.
  3. Click Create key and choose either a test or production key.

Was this page helpful?