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

Error CodeHTTP StatusMessageType
AB01400Request Validation ErrorClient Error
AB02404Request Validation ErrorClient Error
AB03403User not allowed to access the resourceClient Error
AB04500Internal Server ErrorServer Error
AB05401Unauthorized accessClient Error
AB06429Rate limit exceededClient Error
AB07409Resource already existsClient Error
AB08404Resource not foundClient Error
AB09402Subscription exhaustedClient Error

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.aiAPI Keys, and check the permissioning for your key. Ensure it includes the required scopes for the endpoint you’re calling.

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

Error CodeHTTP StatusMessageType
AB01400Request Validation ErrorClient Error
AB02404Request Validation ErrorClient Error
AB03403User not allowed to access the resourceClient Error
AB04500Internal Server ErrorServer Error
AB05401Unauthorized accessClient Error
AB06429Rate limit exceededClient Error
AB07409Resource already existsClient Error
AB08404Resource not foundClient Error
AB09402Subscription exhaustedClient Error

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.aiAPI Keys, and check the permissioning for your key. Ensure it includes the required scopes for the endpoint you’re calling.