778 B
778 B
nav_order |
---|
8 |
Using the App API
In order to use the app as an API, you will need to configure requests to the API as so:
- Configure your request with Basic Auth. Set the username to be the same as
API_USER
and password as theAPI_KEY
(API_USER
andAPI_KEY
are environment variables that should be set for the application) - Check the endpoint you are calling is an action that is
create
,show
orupdate
- Check you are setting the following request headers:
Content-Type = application/json
Action = application/json
N.B. If you use*/*
instead, the request won't be recognised as an API request`
Currently only the logs controller is configured to accept and authenticate API requests, when the above API environment variables are set.