Get Audit Logs
const url = 'https://api.exolink.cloud/tenant/example/logs/audit';const options = { method: 'GET', headers: {'x-exo-logs-format': 'csv', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.exolink.cloud/tenant/example/logs/audit \ --header 'Authorization: Bearer <token>' \ --header 'x-exo-logs-format: csv'Get audit logs for the tenant.
Without x-exo-logs-format the response is the JSON list of log rows. With it, the logs are
stored as a file and the response carries a download link instead.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Tenant domain prefix
Header Parameters
Section titled “Header Parameters”Start of the log range. Defaults to the start of the current UTC day.
End of the log range. Defaults to the end of the current UTC day.
Return a download link instead of the logs. csv stores a CSV file, any other value a JSON file.
Example
csvResponses
Section titled “Responses”Audit logs, or the download link
object
object
Presigned URL of the log file
Validity of the URL in seconds
File size in bytes
Example
{ "expiresIn": 3600}Missing, invalid or expired credentials
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Not authorized", "errorCode": "ERR_API_NOT_AUTHORIZED"}The caller may not perform this action
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Forbidden", "errorCode": "ERR_API_FORBIDDEN"}Result too large to return
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Content too large", "errorCode": "ERR_API_CONTENT_TOO_LARGE"}