Getting started
API reference
Authentication
Organizations
Teams
Groups
Users
Audit events
Appendix
Error responses
When an API request fails, an error response is returned that includes a structured error object. This error object contains:
- A
codeproperty with a standardized error code that can be used for programmatic error handling. - A
messageproperty with a human-readable description of what went wrong.
For example:
{"code": "team_not_found","message": "Team {teamId} not found"}
JSON
Error codes
The following error codes can be returned by the Admin APIs:
permission_deniedtoo_many_requestsmax_limit_reachedbad_request_bodybad_http_methodbad_request_paramsbad_query_paramsendpoint_not_foundinvalid_access_tokenmissing_scopeinvalid_fieldinput_unsafedisplay_name_unavailableteam_not_foundgroup_not_founduser_not_founduser_not_managed
Handling errors
Use the error code to handle errors programmatically in your application. The error codes are standardized across all Admin API endpoints, so you can implement consistent error handling logic. The specific errors an individual endpoint can return are shown in the Error responses section of that endpoint's reference page.