{ "meta": { "requestId": "req_2c9a0jf23l4k567" }, "error": { "detail": "The requested API could not be found", "status": 404, "title": "Not Found", "type": "https://unkey.com/docs/api-reference/errors-v2/unkey/data/api_not_found" }}
This error occurs when you’re trying to perform an operation on an API that doesn’t exist in the Unkey system. In Unkey, APIs are resources that you create to organize and manage your keys.Common scenarios that trigger this error:
Using an incorrect API ID in your requests
Referencing an API that has been deleted
Attempting to access an API in a workspace you don’t have access to
Typos in API names when using name-based lookups
Here’s an example of a request that would trigger this error:
Copy
Ask AI
# Attempting to create a key for a non-existent APIcurl -X POST https://api.unkey.com/v1/keys.createKey \ -H "Content-Type: application/json" \ -H "Authorization: Bearer unkey_YOUR_API_KEY" \ -d '{ "apiId": "api_nonexistent", "name": "hello world" }'