Authentication
Some API calls require authentication. These are colored yellow in the API Query list. Authentication is done in one of two ways:
- basic <username>:<password> (Not recommended)
- token <username>:<token>
- session <username>:<session id> (Recommended)
Authorization: basic user:password123or
Authorization: token user:679c2955085b46e48155b84f4c878844or
Authorization: session user:ea234b864515411d9d834e2bd561af98
PLEASE NOTE: Neither the password nor the token are obfuscated, so it is strongly advised to use HTTPS
Optional Headers
The following headers can be appended to any request:- Accept
- Version
Accept
The Accept argument may contain one of two categories:- */json (*/* will default to text/json)
- */plain
The */json choice will incapsulate all output with a status code, of the format:
{'status': 'success', 'data': <output of */plain>}