---
title: "api/login
Login via login form"
method: POST
path: "/api/login"
tags: ["Api\\UserController"]
---

# api/login
Login via login form

`POST /api/login`

## Headers

- `Content-Type` string
- `Accept` string
- `Accept-language` string

## Request body

- object
  - `email` string, required — Email address of the user.
  - `password` string, required — Password of the user.

## Response `200`

- object
  - `id` integer
  - `name` string
  - `email` string
  - `avatar` string
  - `api_token` string
  - `created_at` string
  - `updated_at` string
  - `last_login` string
  - `policy_accepted` string
  - `email_verified_at` string

## Changes

> 15 revisions in range; 1 could not be searched.

- **2022-06-20** `a87569f002e1` — 1 info
  - added the new optional `header` request parameter `Accept-language`
- **2022-06-10** `568ca15f3476` — 1 warning
  - deleted the `header` request parameter `Accept-language`

[Change history](https://skmtc.dev/beepnl/apis/beep/changes/api/login/post.md)

---

[API](https://skmtc.dev/beepnl/apis/beep.md) · [All operations](https://skmtc.dev/beepnl/apis/beep/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/beepnl/beep/revisions/7f1e35deb524/schema)
