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

# Login Endpoint

`POST /auth/login`

Authenticates a user by submitting an accessKey (email) and secretKey (password) to get a bearer token.

## Request body

- object
  - `accessKey` string — Configured API User email address
  - `secretKey` string — Configured API User's password

## Response `200`

OK - Login success. A BEARER_TOKEN cookie is set in the response headers.

- object
  - `idUser` integer
  - `username` string
  - `idMerchant` integer

## Other responses

- `403` — Forbidden - Failure: invalid location

---

[API](https://skmtc.dev/d24/apis/docs-d24-com.md) · [All operations](https://skmtc.dev/d24/apis/docs-d24-com/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/d24/docs-d24-com/revisions/fb0e2ddec198/schema)
