The API is made to be easy to understand and authenticate with.
To communicate with the API you'll need to know the BASE URI and an API token.
These can be found under System -> API Tokens
.
- Make sure all requests use the BASE URI before the endpoints.
- Within your request make sure to set the
Authorization
header with your API Token.
curl -i \
-H "Accept: application/json" \
-H "Authorization: <TOKEN>" \
<BASE_URI>/categories
curl -i \
-H "Accept: application/json" \
-H "Authorization: <TOKEN>" \
<BASE_URI>/categories/<ID>
curl -i \
-H "Accept: application/json" \
-H "Authorization: <TOKEN>" \
--data "<DATA>" \
<BASE_URI>/enquiries
It's that simple!