---
title: "Provide an access_token for the user"
method: POST
path: "/users/login"
tags: ["Users"]
---

# Provide an access_token for the user

`POST /users/login`

Provides an access_token for the email or the userId provided in the LoginCommand.</br>
The accepted couples are:
</br>[email, password]</br>
[email, private_key]</br>
[userId, private_key]

## Request body

- object — Login Command
  - `userId` integer — UserId (email or userId is required)
  - `email` string — User email (email or userId is required)
  - `password` string — User Password (password or private_key is required)
  - `private_key` string — Private key (password or private_key is required)

## Response `200`

User successfully authenticated

## Other responses

- `400` — Bad Request - The request was invalid or cannot be otherwise served
- `403` — Forbidden - The request is understood, but has been refused or access is not allowed
- `404` — Not Found - The requested resource could not be found
- `409` — Conflict - The request conflicts with current state of the server

---

[API](https://skmtc.net/uberall/apis/uberall-api.md) · [All operations](https://skmtc.net/uberall/apis/uberall-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uberall/uberall-api/versions/ddc577c548ee/schema)
