Skip to main content

Audit Logs

XQ's platform provides a detailed chain of custody for every encryption key, recording when it was accessed, by whom, and from where. Through XQ's APIs, developers can easily surface this information to end users, offering transparency and reinforcing trust in the security of their data.

Log User Communications​

You can then list the user communications and present this data to your clients. This endpoint is more of an overview of the communications rather than a deeper dive on a single key.

Parameters — /communications

NameTypeRequiredDescription
api-keystringYesDashboard API key
authorizationstringYesThis is a bearer token required to make most XQ API calls. To get one, a user must first utilize the login/link endpoint, upon which they get a pre-auth token.
fromintegerThe lower boundary time (in milliseconds) to search. A zero value will be ignored.
limitintegerPage size.
pageintegerPage number.
recipientsstringFilter by recipient email. Comma-separated values will match against any recipient in the list.
searchstringGeneric search field for user-defined input. Matches against resource names (email subject, file name, etc.), recipients, and owners.
statusstringThe comma-separated status of the key: 0 - Available, 1 - Revoked, 2 - Expired.
tointegerThe upper boundary time (in milliseconds) to search. A zero value will be ignored.
typestringThe type of key: 0 - Unknown, 1 - File, 2 - Email. Comma-separated values will match against EITHER type.
usersstringFilter by sender's email. Comma-separated values will match against any sender in the list.

GET
Headers
Bearer
curl
curl -X GET 'https://dashboard.xqmsg.net/v2/communications?from=1&to=2&limit=50&page=0&recipients=recipient%40example.com&search=example%20search&status=0%2C1%2C2&type=1%2C2&users=sender%40example.com' \
-H 'api-key: <API_KEY>' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'

Sent from your browser straight to dashboard.xqmsg.net. Credentials stay in this tab and are cleared on reload; missing ones appear as <API_KEY> / <ACCESS_TOKEN> in the curl command.

Detailed Logs for a Specific Key​

To access detailed logs associated with a specific key, developers can use the log endpoint. This endpoint provides a comprehensive chain of custody for the key, offering complete visibility into its access history.

This can help developers present more detailed entries when users want to dive deeper into a specific item.

Parameters — /log

NameTypeRequiredDescription
api-keystringYesDashboard API key
authorizationstringYesThis is a bearer token required to make most XQ API calls. To get one, a user must first utilize the login/link endpoint, upon which they get a pre-auth token.
datastringYesA unique identifier for the requested data.
pageintegerPage number for pagination.
limitintegerThe maximum number of results to return per page.
tzintegerThe timezone offset in hours from UTC.

GET
Headers
Bearer
curl
curl -X GET 'https://dashboard.xqmsg.net/v2/log?page=0&limit=50&data=hLeHS3dszrVM4AnAHEMJRILDRCkXXq6kY3eQW93sN22&tz=-8' \
-H 'api-key: <API_KEY>' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'

Sent from your browser straight to dashboard.xqmsg.net. Credentials stay in this tab and are cleared on reload; missing ones appear as <API_KEY> / <ACCESS_TOKEN> in the curl command.

Basic Usage Statistics from Logs​

Developers can integrate methods to retrieve basic usage statistics from logs, such as the number of alerts and warnings generated by key access attempts.

Parameters — /stats

NameTypeRequiredDescription
api-keystringYesDashboard API key
authorizationstringYesThis is a bearer token required to make most XQ API calls. To get one, a user must first utilize the login/link endpoint, upon which they get a pre-auth token.
actionstringAction types to filter by. Supports regular expression syntax.
fromintegerThe lower boundary time ( in milliseconds ) to search. A zero value will be ignored.
tointegerThe upper boundary time ( in milliseconds ) to search.A zero value will be ignored.
keyidintegerThe API key ID to filter on. A zero value will be ignored.
threatintegerThe threat level to filter on. A zero value will be ignored.
tzintegerTimezone offset (in hours)
userintegerThe User ID to filter on. If left absent, stats against the whole workspace will be returned.

GET
Headers
Bearer
curl
curl -X GET 'https://dashboard.xqmsg.net/v2/log?action=.*&from=0&to=0&keyid=0&threat=0&tz=-8&user=0' \
-H 'api-key: <API_KEY>' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'

Sent from your browser straight to dashboard.xqmsg.net. Credentials stay in this tab and are cleared on reload; missing ones appear as <API_KEY> / <ACCESS_TOKEN> in the curl command.