> For the complete documentation index, see [llms.txt](https://docs.uaepass.ae/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uaepass.ae/feature-guides/signature-integration-guide/digital-signature-multiple-document/signing-guide/untitled/1.-obtaining-the-token-for-accessing-the-signature-operations.md).

# 1. Token

Firstly, the document signature application/portal calls the UAEPASS API to obtain the access token using client credentials issued to them.

<mark style="color:green;">`POST`</mark> <https://stg-id.uaepass.ae/trustedx-authserver/oauth/main-as/token>

#### Headers

<table data-full-width="false"><thead><tr><th width="750">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>Authorization</td><td>string</td><td>Basic ZG9jc2lnbjpkZW1vZGVtbw==</td></tr><tr><td>Content-Type</td><td>string</td><td>application/x-www-form-urlencoded</td></tr><tr><td>grant_type </td><td>string</td><td>client_credentials</td></tr><tr><td>scope</td><td>string</td><td>urn:safelayer:eidas:sign:process:document</td></tr></tbody></table>

{% tabs %}
{% tab title="200 Content-Type: application/json;charset=utf-8
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache" %}

```
{
"access_token" : "{string}" 
"token_type" : "bearer", 
"expires_in" : 300

```

{% endtab %}
{% endtabs %}
