Logs
API Key Scope: logs / index
Authorizations
AuthorizationstringRequired
Pass the username and password of a user in the authorization header. This currently gives full access.
Query parameters
limitintegerOptional
The number of items to display for pagination.
offsetintegerOptional
The number of items to skip for pagination.
sort_bystring[]Optional
Sort results by attribute.
Can sort on multiple attributes, separated by |.
Order direction can be suffixing the attribute by either :asc (default) or :desc.
degreestringOptional
Filter on degree
datestringOptional
Filter on date
messagestringOptional
Filter on message
is_a_notificationstringOptional
Lets know if the request should return all the logs or only the notifications
Responses
200
List of logs.
application/json
get
/logsGET /api/v2/logs HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
200
List of logs.
{
"count": 1,
"logs": [
{
"date": "2022-01-01T10:48:08.000Z",
"message": "this is a message",
"degree": 10
}
]
}API Key Scope: logs / post
Authorizations
AuthorizationstringRequired
Pass the username and password of a user in the authorization header. This currently gives full access.
Responses
204
Log notifications clear
post
/logs/clear_notificationsPOST /api/v2/logs/clear_notifications HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
204
Log notifications clear
No content
Last updated
Was this helpful?