---
title: "Create a new user and obtain a unique API key or get an API key from an already created account without Steam OAuth"
method: POST
path: "/v1/user"
tags: ["User"]
---

# Create a new user and obtain a unique API key or get an API key from an already created account without Steam OAuth

`POST /v1/user`

## Request

- Base URL: `https://api.waxpeer.com`
- URL: `https://api.waxpeer.com/v1/user`
- Auth: none declared

**Create a new user and obtain a unique API key or get an API key from an already created account without Steam OAuth.**

Both accounts must be unrestricted on Waxpeer.

Target account must be new on Waxpeer or have no active 2fa and enabled the collection of account information (You can enable it on the site if it is turned off).

**The token will not be used as a cookie in Steam during the API key creation/get process.**

## Query parameters

- `api` string, required

## Request body

- object
  - `token` string: Your Steam access token from the target account. Token should be in base64 format and belong to your target account.

## Response `200`

successful operation

**Please open the response schema if you need more information about the response parameters**

- object
  - `success` boolean
  - `msg` 'Missing API' | 'wrong api' | 'You are banned, please contact support' | 'missing_token' | 'Token must be base64 encoded' | 'You have restrictions on your account' | 'You have restrictions on your target account' | 'You can not use your own token' | 'Wrong token' | 'Please disable 2FA on the site first' | 'You have disabled the collection of account information, please enable it on the website' | 'Please try again later' | 'Need to refresh access token', nullable: Error message if success is false
  - `data` PostUser, nullable
    - `api` string: Your target account Waxpeer API key
    - `isNew` boolean: Whether the target account is new to Waxpeer
  - `exp` number, nullable: Token expiration time (is present in the response if the session has expired or has been active for less than an minute and is not accepted)

## Other responses

- `403`: Wrong or missing Waxpeer API key of creator account

---

[API](https://skmtc.dev/waxpeer/apis/waxpeer-api-buy-sell-trade-items-via-p2p-system.md) - [All operations](https://skmtc.dev/waxpeer/apis/waxpeer-api-buy-sell-trade-items-via-p2p-system/llms.txt) - [OpenAPI document](https://skmtc.dev/waxpeer/apis/waxpeer-api-buy-sell-trade-items-via-p2p-system/revisions/dd3dfdd641bb?raw)
