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
| Name | Type | Required | Description |
|---|---|---|---|
api-key | string | Yes | Dashboard API key |
authorization | string | Yes | This 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. |
from | integer | The lower boundary time (in milliseconds) to search. A zero value will be ignored. | |
limit | integer | Page size. | |
page | integer | Page number. | |
recipients | string | Filter by recipient email. Comma-separated values will match against any recipient in the list. | |
search | string | Generic search field for user-defined input. Matches against resource names (email subject, file name, etc.), recipients, and owners. | |
status | string | The comma-separated status of the key: 0 - Available, 1 - Revoked, 2 - Expired. | |
to | integer | The upper boundary time (in milliseconds) to search. A zero value will be ignored. | |
type | string | The type of key: 0 - Unknown, 1 - File, 2 - Email. Comma-separated values will match against EITHER type. | |
users | string | Filter by sender's email. Comma-separated values will match against any sender in the list. |
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
| Name | Type | Required | Description |
|---|---|---|---|
api-key | string | Yes | Dashboard API key |
authorization | string | Yes | This 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. |
data | string | Yes | A unique identifier for the requested data. |
page | integer | Page number for pagination. | |
limit | integer | The maximum number of results to return per page. | |
tz | integer | The timezone offset in hours from UTC. |
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
| Name | Type | Required | Description |
|---|---|---|---|
api-key | string | Yes | Dashboard API key |
authorization | string | Yes | This 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. |
action | string | Action types to filter by. Supports regular expression syntax. | |
from | integer | The lower boundary time ( in milliseconds ) to search. A zero value will be ignored. | |
to | integer | The upper boundary time ( in milliseconds ) to search.A zero value will be ignored. | |
keyid | integer | The API key ID to filter on. A zero value will be ignored. | |
threat | integer | The threat level to filter on. A zero value will be ignored. | |
tz | integer | Timezone offset (in hours) | |
user | integer | The User ID to filter on. If left absent, stats against the whole workspace will be returned. |