---
title: "Authenticate a widget user"
method: POST
path: "/widget/authenticate-user"
---

# Authenticate a widget user

`POST /widget/authenticate-user`

authenticate the contacts

## Request body

- AuthenticateUserPayloadDto
  - `email` string, email, required
  - `name` string
  - `avatar_url` string, nullable
  - `phone` string
  - `language` 'en' | 'fr' | 'de' | 'nl' | 'pl' | 'pt' | 'es' | 'it' | 'ru' | 'ja' | 'ko' | 'zh' | 'ar' | 'tr' | 'sv' | 'da' | 'no' | 'fi' | 'el' | 'cs' | 'hu' | 'th' | 'vi' | 'id' | 'he' | 'hi' | 'uk' | 'ro' | 'bg' | 'hr' | 'sk' | 'sl' | 'sr' | 'et' | 'lv' | 'lt' | 'is' | 'ga' | 'ms' | 'tl' | 'fa' | 'bn' | 'ta' | 'te' | 'ur' | 'sw' | 'zu' | 'af' | 'sq' | 'hy' | 'az' | 'eu' | 'be' | 'bs' | 'ca' | 'cy' | 'ku' | 'ckb' | 'kmr'
  - `customData` object
  - `chat_context` string
  - `http_action_overrides` PublicAPIHttpOverrides
    - `query_params` object
    - `path_params` object
    - `body_params` object
    - `headers` object

## Response `200`

Default Response

- VerifiedWidgetContactTokenResponseDto
  - `token` string, required — The JWT token to use for further requests
  - `contact` object, required
    - `id` string, required

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.net/open/apis/opencx-api.md) · [All operations](https://skmtc.net/open/apis/opencx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open/opencx-api/revisions/57b06b52302d/schema)
