---
title: "api/authenticate
Authorize a user and login with an api_token. Used for persistent login in webapp."
method: POST
path: "/api/authenticate"
tags: ["Api\\UserController"]
---

# api/authenticate
Authorize a user and login with an api_token. Used for persistent login in webapp.

`POST /api/authenticate`

Header parameter with Bearer [api_token] from the user object. Example: Bearer 1snu2aRRiwQNl2Tul5F0XpKuZO8hqkgXU4GvjzZ3f3pOCiDPFbBDea7W

## Headers

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

## 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/authenticate/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)
