# OAuth2 Authenticate

This authentication is required to use the Audit Trails 2 enpoints.

{% hint style="info" %}
Use scope '**at2**' in order get access to the Audit Trail 2 endpoints.

The payload consists is a JWT token object that is divided in three properties as follow:

* the token type.
* the duration of time the access token is granted for (in seconds).
* the JWT token containing the caller's id or application, an expiration date, and a set of entitlements related to the specified scope, signed by the caller's private RSA key.
  {% endhint %}

{% openapi src="/files/QTYCdVMbKdCr4AG0pr4r" path="/idm/tokens" method="post" expanded="true" fullWidth="true" %}
[login-api-public.yaml](https://544392450-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F909t04Fk8FiEI7fBcmlw%2Fuploads%2Fgit-blob-0a6a293d0a6cdb3b172f2d2f3cb550af3be41315%2Flogin-api-public.yaml?alt=media)
{% endopenapi %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rest-api.symphony.com/main/audit-trail-2/oauth2-authenticate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
