description | icon |
---|---|
Seamlessly integrate Appetize into your CI/CD pipeline by making use of our REST API. |
cloud |
{% hint style="warning" %} If you are using an Enterprise Private Instance of Appetize, please replace all API calls from api.appetize.io to your custom domain, e.g. custom.appetize.io. {% endhint %}
- Get Your API Token
All users with admin or developer roles may request an API token after logging in and navigating to Organization -> API Token. - Use Basic Authentication:
When sending requests to the Appetize REST API that requires authentication, use Basic Authentication. - Encode your token + ":" using Base64 encoding.
- Attach Token to Requests
In your HTTP headers, include an Authorization header with the value "Basic" followed by the encoded token.
See our Sample Code for an example on how to get started.
{% hint style="info" %} All HTTP POST Requests must use JSON. {% endhint %}
{% hint style="info" %} All HTTP Responses will be in JSON. {% endhint %}
Status code | Details |
---|---|
200 | OK - Everything worked as expected. |
400 | Bad Request - Often missing a required parameter. |
401 | Unauthorized - No valid API token provided. |
404 | Not Found - No app found for publicKey specified. |
500, 502, 503, 504 | Server error - something went wrong on our server. |