# Generate Access Token

> For the complete documentation index, see [llms.txt](https://docs.fondy.io/llms.txt).

This endpoint generates an access token for the application by sending a POST request with 
the required parameters. The parameters include the `application_id`, `date`, and `signature`. 
Refer to Fondy support to obtain the necessary `application_id` and secret key.

**POST** `/authorizer/token/application/get`

Base URL: `https://wallet.fondy.eu`

This endpoint generates an access token for the application by sending a POST request with 
the required parameters. The parameters include the `application_id`, `date`, and `signature`. 
Refer to Fondy support to obtain the necessary `application_id` and secret key.

## Body

Content type: `application/json`

- `application_id` (string, required)
  Company ID. Contact Fondy support to obtain the ID and secret key.
- `date` (string, required)
  "Date in any format. Acts as a salt for the SHA-512 signature hash. 
  Examples include '2020-04-06 11:15:27' or a timestamp like '1586171872'."
- `signature` (string, required)
  The signature is formed by concatenating the company private key, company id, and date parameter through a vertical bar "|" (in utf-8 encoding). From the received line, you need to take the sha512 hash in hex.

Example:

```json
{
  "application_id": "1234",
  "date": "2020-04-06 11:15:27",
  "signature": "7eec02ed1088b47da639549a109c0e98a75e2d8c76dfa33db4ee18359b2ea677dda37516abc0e439b286261a48d49d3e2fd885d9f09c8ff5c7308afe4180688a"
}
```

## Responses

### 200

Access token successfully generated.

- `request_id` (string)
  Unique ID for tracking the request.
- `token` (string)
  Access token for the application.
- `expires_in` (integer)
  Time in seconds until the token expires.

Example:

```json
{
  "request_id": "SuVhZRMS7JDD2iGS",
  "token": "Yq0GXWeOZ1m8BsiCa4iQPDB84Wjw346",
  "expires_in": 3602
}
```

### 403

Invalid request parameters.

- `error_code` (integer)
  Code indicating the type of error encountered.
- `error_message` (string)
  Message explaining why the request failed.
- `request_id` (string)
  Unique ID for tracking the request.

Example:

```json
{
  "error_code": 403,
  "error_message": "Incorrect signature",
  "request_id": "cGeC7PH59ESqQw30"
}
```