---
title: "POST /v1/customer/token"
method: POST
path: "/v1/customer/token"
tags: ["Customer"]
---

# POST /v1/customer/token

`POST /v1/customer/token`

## Request body

- CustomerTokenRequestDTO
  - `firstName` string — The first name of the customer
  - `lastName` string — The last name of the customer
  - `email` string, email — The email of the customer
  - `phoneNumber` string — The phone number of the customer (in international / E.164 format)
  - `displayName` string — The display name of the customer
  - `remoteId` string — The id of the customer in the ticketing system. For the SDK this needs to be stable and unique
  - `subscriberCustomerId` string — The id of the customer in your own primary database or a unique identifier, for example a cookie
  - `subscriberToken` string — A token that can be used to authenticate the customer in the your system, like a JWT
  - `avatarUrl` string — The URL of the customer avatar
  - `expiry` string — The expiry of the conversation initialization token, if not provided it will be set to 1 hour

## Response `201`

A generated JWT token

- string

## Other responses

- `400` — Bad request

---

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