> For the complete documentation index, see [llms.txt](https://developers.doku.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.doku.com/accept-payments/direct-api/snap/integration-guide/get-token-api.md).

# Get Token API

### Get Token Overview

Get Access Token is an authentication method to ensure confidentiality, system and data integrity, availability of a system, and as a fraud detection method. It is a mandatory process that is regulated and set mandatory by Bank Indonesia.

Before starting any transaction process involving virtual account, one party need to do get access token activity before hitting the API to the other (e.g merchant want to hit create VA API to DOKU, then merchant need to hit the get access token API and granted the access token.

{% hint style="info" %}
For Virtual Account use : B2B Token
{% endhint %}

{% hint style="info" %}
For Direct Debit use : B2B Token and B2C Token
{% endhint %}

{% hint style="info" %}
For e-Wallet use : B2B Token and B2C Token
{% endhint %}

In the header request, there is an object called X-SIGNATURE that needs encryption of combination signature, to learn more about the usage, you can check here [Signature from API Get Method](/get-started-with-doku-api/signature-component/non-snap/signature-from-api-get-method.md)
