This error occurs when the Unkey system encounters an internal error that wasn’t anticipated or couldn’t be handled gracefully. This is generally not caused by anything you did wrong in your request, but rather indicates an issue within Unkey’s systems.Possible causes of this error:
Temporary infrastructure issues
Database connectivity problems
Bugs in the Unkey service
Resource constraints or timeouts
Unexpected edge cases not handled by the application logic
Here’s an example of a request that might trigger this error if there’s an internal issue:
Copy
Ask AI
# A valid request that could trigger an unexpected error if there's an internal issuecurl -X POST https://api.unkey.com/v1/keys.createKey \ -H "Content-Type: application/json" \ -H "Authorization: Bearer unkey_YOUR_API_KEY" \ -d '{ "apiId": "api_123abc", "name": "My API Key" }'