Api reference
Error Reference
All API error codes, HTTP status codes, and resolution steps.
| HTTP | Error message | Cause | Resolution |
|---|
401 | Missing API key | No x-api-key header | Add the x-api-key header |
401 | Invalid API key format | Key doesn't start with pk_test_ or pk_live_ | Check for typos or whitespace |
401 | API key not found | Key doesn't exist in the database | Verify the key was copied correctly |
401 | API key expired | The key's expiry date has passed | Create a new key in your dashboard |
| HTTP | Error message | Cause | Resolution |
|---|
403 | Account suspended | Your subscription was cancelled and not renewed | Subscribe to a plan at aldersverificering.dk/account/subscription |
403 | Account overdue — production access suspended | Invoice payment failed | Update your payment method in your dashboard |
403 | Production API access is not enabled | Production access has been disabled on your account | Check your payment status or contact support |
403 | Email verification required | Your account email is not verified | Check your inbox for the verification email |
403 | Origin not whitelisted | The Origin header doesn't match a whitelisted domain | Add the origin in Account → Domains |
| HTTP | Error message | Cause | Resolution |
|---|
400 | Missing required field: seqId | No seqId in request body | Include a UUID v4 seqId |
400 | Missing required field: minAge | No minAge in request body | Include the minAge (e.g. 18) |
405 | Method not allowed | Wrong HTTP method | Use POST |