---
title: "Login Endpoint"
method: POST
path: "/api/v1/auth/login"
tags: ["auth"]
---

# Login Endpoint

`POST /api/v1/auth/login`

## Request

- Base URL: `https://api.food24.kz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.food24.kz/api/v1/auth/login`
- Auth: none declared
- TypeScript: <https://skmtc.dev/food24/apis/goodfood/docs/api/v1/auth/login/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body `application/x-www-form-urlencoded`

- BodyLoginEndpointApiV1AuthLoginPost
  - `grant_type` string, nullable
  - `username` string, required
  - `password` string, password, required
  - `scope` string
  - `client_id` string, nullable
  - `client_secret` string, password, nullable

## Response `200`

Successful Response

- Token
  - `access_token` string, required
  - `token_type` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/food24/apis/goodfood.md) - [All operations](https://skmtc.dev/food24/apis/goodfood/llms.txt) - [OpenAPI document](https://skmtc.dev/food24/apis/goodfood/revisions/f75c731597d3?raw)
