Admin API Error Codes
Below is a list of error codes returned by the Portkey Admin API. These help with debugging failed requests and ensuring proper authentication, permissions, and request formatting.Error Reference
Notes on Common Errors
AB01 – Request Validation Error (400)This error usually happens when:
- You’re either missing required parameters
- using incorrect data types (e.g., sending a number instead of a string)
- passing values that are not within the allowed set (enum violations).
AB05 – Unauthorized Access (401)This indicates that the user is not authorized to access the resource, often due to incorrect API key permissions.Common Cause: Your API key does not have the right permissions for this request.Fix: Go to app.portkey.ai → API Keys, and check the permissioning for your key. Ensure it includes the required scopes for the endpoint you’re calling.

