---
title: "Login For Access Token"
method: POST
path: "/token"
tags: ["Auth"]
---

# Login For Access Token

`POST /token`

## Request

- Base URL: `https://api.envelopebudget.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.envelopebudget.com/token`
- Auth: none declared

Handles the login process and returns an access token.

Parameters:
    username (str): The username of the user.
    password (str): The password of the user.
    db: The database instance.

Returns:
    dict: A dictionary containing the access token and token type.

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/envelopebudget/apis/envelopebudget-api.md) · [All operations](https://skmtc.dev/envelopebudget/apis/envelopebudget-api/llms.txt) · [OpenAPI document](https://skmtc.dev/envelopebudget/apis/envelopebudget-api/revisions/0988535610ff?raw)
