Test that your token works by calling the health endpoint (no auth required) and then a simple list:
cURL
JavaScript
Python
# Health check (no token needed)curl https://api.oktavius.ai/v1/openapi/health# List your completed extractionscurl -X GET "https://api.oktavius.ai/v1/openapi/extractions" \ -H "Authorization: Bearer okt_live_your_token_here"
const TOKEN = "okt_live_your_token_here";const BASE = "https://api.oktavius.ai/v1/openapi";const res = await fetch(`${BASE}/extractions`, { headers: { Authorization: `Bearer ${TOKEN}` },});if (res.status === 401) { console.error("Invalid token — check your API key");} else { const body = await res.json(); console.log(`${body.pagination.total} extractions available`);}
When artikelnummer is an empty string, the technician entered free text that could not be
matched to an article in the catalog. Your system should handle this case (e.g. flag for manual
resolution).