Inspector APIs are hosted on the following base URI:
https://app.inspector.dev/api
In order to use the API you should authenticate your request by including your API key as a bearer token value in the request's headers:
Authorization: Bearer API_KEY_HERE
If you don't have an API key, you can create a new one in just a few click: https://app.inspector.dev/home/account/api
API keys are created at User level, so they can performs actions based on User permissions.
(e.g.) If the User have "Admin" permissions the API key can delete a project. If the User doesn't have "Admin" permissions the delete action will be blocked.
Make sure you have the following content type headers set on every request:
Accept: application/jsonContent-Type: application/json
Inspector uses conventional HTTP response codes to indicate the success or failure of an API request. The table below contains a summary of the typical response codes:
Code | Description |
200 | Everything is ok. |
401 | No valid API Key was given. |
404 | The request resource could not be found. |
422 | The payload has missing required parameters or invalid data was given. |
429 | Too many attempts. |
500 | Request failed due to an internal error in Inspector. |