---
title: "end user' google, facebook, apple, crypto' signature"
method: POST
path: "/v1/users/"
tags: ["Users"]
---

# end user' google, facebook, apple, crypto' signature

`POST /v1/users/`

## Request

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

**Auth**: App JWT

Crate End user endpoint, should be used with Authorization header set to App JWT.
App JWT example: {JWT token}

## Request body

- union
  - UserGoogleAppleFacebookLogin
    - `loginType` 'google' | 'facebook' | 'apple', required
    - `authToken` string, required
    - `signupPlan` 'business' | 'free'
    - `utm` string
  - SignatureRegistration
    - `walletAddress` string, required
    - `signature` string, required
    - `msg` string, required
    - `firstName` string, required
    - `lastName` string, required
    - `utm` string

## Response `201`

```
{
  success: boolean,
  user: {
    defaultWallet: {
      walletAddress: string
    },
    _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
  },
  msg: string,
  token: string,
  refreshToken: string
}
```

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: ``` { errors: [{msg: string}] } ```
- `500`: ``` {error: string} ```

---

[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)
