---
title: "Authenticate customer and issue API token"
method: POST
path: "/customer/login"
tags: ["Authentication"]
---

# Authenticate customer and issue API token

`POST /customer/login`

Exchange user credentials for an API token that can be used for subsequent authenticated requests.

## Request body

- object
  - `email` string, required — The user's email address
  - `password` string, required — The user's password
  - `device_name` string, required — A descriptive name for the device

## Response `200`

`LoginResponseResource`

- object
  - `data` LoginResponseResource, required
    - `token` string, required
    - `user` UserResource, required
      - `id` string, required
      - `name` string, required
      - `email` string, required
      - `role` string, required

## Other responses

- `422` — Validation error

---

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