Authentication
Every request to the Konfiwear API requires an API key. Keys are scoped to a single workspace and can be restricted to specific resources and access levels.
1. Generate an API Key
Navigate to Settings → API Keys in your workspace dashboard. Click Create API Key, choose a name, select the resource scopes you need, and set an optional expiration.
The full API key is shown exactly once at creation time. Copy it immediately and store it in a secure location (for example an environment variable or secrets manager).
2. Authenticate Requests
Include your API key in the X-Api-Key header on every request. No other authentication headers are needed.
curl
curl -X GET 'https://api.konfiwear.com/api/v1/products' \
-H 'X-Api-Key: kfw_live_your_key_here'JavaScript
const response = await fetch('https://api.konfiwear.com/api/v1/products', {
headers: {
'X-Api-Key': process.env.KONFIWEAR_API_KEY,
},
});
const { data, pagination } = await response.json();