---
title: "Exchange legacy client JWT for user credentials"
method: POST
path: "/v1/users/client"
tags: ["Users"]
deprecated: true
---

# Exchange legacy client JWT for user credentials

`POST /v1/users/client`

## Request

- Base URL: `https://api.chat.ethora.com`
- URL: `https://api.chat.ethora.com/v1/users/client`
- Auth: HTTP bearer

> **Deprecated.**

**Auth**: Client JWT

Legacy compatibility endpoint for older chat component / mobile SDK flows that still exchange
a `Client JWT` into Ethora user session tokens.

Use `x-custom-token` with payload `data={type: 'client', appId: '', userId: ''}`.

Preferred approach going forward:
- authenticate the end user via the normal login/signup flows and pass the resulting user tokens directly, or
- let the embedding app/backend provide the final Ethora user/session object to the chat component instead of relying on this exchange route.

## Response `200`

```
{
  success: boolean,
  user: {
    defaultWallet: {
      walletAddress: string
    },
    isSuperAdmin: {
      read: boolean,
      write: boolean
    },
    _id: string,
    firstName: string,
    lastName: string,
    email: string,
    username: string,
    tags: string[],
    profileImage: string,
    emails: [
      {
        loginType: string,
        email: string,
        verified: boolean,
        _id: string
      }
    ],
    appId: string,
    xmppPassword: string,
    roles: string[],
    isProfileOpen: boolean,
    isAssetsOpen: boolean,
    isAgreeWithTerms: boolean,
    homeScreen: string,
    registrationChannelType: string,
    createdAt: string,
    updatedAt: string
  },
  token: string,
  refreshToken: string
}
```

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: ``` { error: string } ```
- `500`: Internal Server Error

---

[API](https://skmtc.dev/ethora/apis/platform-api.md) · [All operations](https://skmtc.dev/ethora/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ethora/apis/platform-api/revisions/01b6e64378ee?raw)
