---
title: "Register a new customer account"
method: POST
path: "/customer/register"
tags: ["Authentication"]
---

# Register a new customer account

`POST /customer/register`

Create a new customer account and return an API token for immediate authentication.

## Request body

- object
  - `name` string, required — The customer's full name
  - `email` string, required — The customer's email address
  - `password` string, required — The customer's password
  - `password_confirmation` string, required — Password confirmation
  - `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)
