# Accessing your audit logs

Set up your API query tool to access your audit logs.

* The endpoint to be used to access your audit logs is: https://api.&lt;env&gt;.cloud.talend.com/security/audit/logs
* For the complete API documentation of the audit logging service, see the [Audit Logs](https://api.talend.com/apis/audit-logs/2021-03/) documentation.

where &lt;env&gt; is the name of your Cloud region. If you do not know what your region name is, see [Accessing Talend Cloud applications](https://help.qlik.com/talend/en-US/installation-guide-windows/Cloud/talend-cloud-application-url).

Prerequisites to access audit logs:

* Your license must be Trial, Evaluation, Enterprise, or Signature.

* The user account to be used has the Audit logs - View permissions.

* Generate access tokens:

  * For users, generate a personal access token by following [Generating a Personal Access Token](https://help.qlik.com/talend/r/en-US/Cloud/management-console-user-guide/cloud-access-token).
  * For service accounts, generate a service access token by following [Generating a service account token](https://help.qlik.com/talend/r/en-US/Cloud/api-user-guide/generate-service-account-token).

  Once generated, a service account token expires after 30 minutes. If it expires, generate a new token using the POST method at the endpoint https://api.&lt;env&gt;.cloud.talend.com/security/oauth/token. For more information about generating a token, see [Generating a service account token](https://help.qlik.com/talend/r/en-US/Cloud/api-user-guide/generate-service-account-token).

### In this section

* [Using the /security/audit/logs endpoint to get your audit logs](https://help.qlik.com/talend/en-US/api-user-guide/Cloud/use-get-to-access-audit-logs)