---
title: "Generate access token"
method: POST
path: "/v1/auth/token"
tags: ["Authentication"]
---

# Generate access token

`POST /v1/auth/token`

## Request

- Base URL: `https://api.monogoto.io`
- URL: `https://api.monogoto.io/v1/auth/token`
- Auth: none required
- TypeScript: <https://skmtc.dev/monogoto/apis/monogoto-softsim-apis/docs/v1/auth/token/post.ts> (a function with typed inputs; its response is checked against the schema)

Authenticate and generate a JWT access token for subsequent API requests.

## Request body

- object
  - `username` string, required
  - `password` string, password, required

## Response `200`

JWT token generated successfully.

- object
  - `token` string: JWT Bearer token
  - `expires_in` integer

## Other responses

- `401`: Invalid username or password.

---

[API](https://skmtc.dev/monogoto/apis/monogoto-softsim-apis.md) - [All operations](https://skmtc.dev/monogoto/apis/monogoto-softsim-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/monogoto/apis/monogoto-softsim-apis/revisions/150b75e17112?raw)
