---
title: "Generate access token with username & password"
method: POST
path: "/auth/generate-token"
tags: ["Authentication"]
---

# Generate access token with username & password

`POST /auth/generate-token`

Generates an access token based on a username & password to perform authenticated requests

## Query parameters

- `refreshToken` boolean

## Request body

- LoginDto
  - `email` string, email
  - `password` string, required
  - `phoneNumber` string
  - `totpCode` string

## Response `200`

OK

- AccessTokenDto
  - `accessToken` string
  - `expiresInSeconds` integer
  - `refreshToken` string

---

[API](https://skmtc.dev/transferz/apis/authentication-api.md) · [All operations](https://skmtc.dev/transferz/apis/authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/transferz/authentication-api/revisions/73249fb480f2/schema)
