> ## Documentation Index
> Fetch the complete documentation index at: https://moneykit.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Access Token

> Create a new short-lived access token by validating your `client_id` and `client_secret`. The `access_token` is to be forwarded with all subsequent requests as `Authorization: Bearer {access_token}` HTTP header. When the token expires you must regenerate your `access_token`. The `client_id` and `client_secret` can be supplied as POST body parameters, or as a HTTP basic auth header.

<div className="tailwind hidden">
  ```
  curl -i -X POST \
    -u <username>:<password> \
    http://localhost:8080/auth/token \
    -H 'Content-Type: application/x-www-form-urlencoded' \
    -H 'moneykit-version: 2023-02-18' \
    -d grant_type=string \
    -d scope= \
    -d client_id=string \
    -d client_secret=string

  ```

  ```

  {
  "access_token": "52ea3d1b4f9a53fffb67...",
  "token_type": "bearer",
  "expires_in": 3600
  }

  ```
</div>
