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:
- Navigate to Organisatie overzicht (Organization overview).
- Open the API Keys tab.
- Click Create key and choose either a test or production key.
API keys are scoped to a project. Each project can have multiple test and production keys.