# 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](https://developers.doku.com/get-started-with-doku-api/signature-component/non-snap/signature-from-api-get-method "mention")


---

# 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://developers.doku.com/accept-payments/direct-api/snap/integration-guide/get-token-api.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.
