Admin
Usage History
GET https://api.copyleaks.com/v3/scans/usages/history
This endpoint allows you to export your usage history between two dates.
The output results will be exported to a csv file and it will be attached to the response.
Authentication Required
You need to login with a user and API key in order to access this method. Add this HTTP header to your request:
Authorization: Bearer < Your-Login-Token >
Request
Section titled “Request”Query Parameters
Section titled “Query Parameters” start string Required
The start date to collect usage history from.
Format: dd-MM-yyyy
Example: 01-01-2020
end string Required
The end date to collect usage history from.
Format: dd-MM-yyyy
Example: 31-01-2020
Headers
Section titled “Headers”Authorization: Bearer YOUR_LOGIN_TOKENResponses
Section titled “Responses” 200 OK
The data was exported. Example: csv file will be attached to the response.
Examples
Section titled “Examples”GET https://api.copyleaks.com/v3/scans/usages/history?start=01-01-2020&end=31-01-2020Authorization: Bearer YOUR_LOGIN_TOKENcurl --request GET \ --url 'https://api.copyleaks.com/v3/scans/usages/history?start=01-01-2020&end=31-01-2020' \ --header 'Authorization: Bearer YOUR_LOGIN_TOKEN'