Skip to main content
POST
Create or Fetch User

Authorizations

x-api-key
string
header
required

API key for authentication. Contact Swaps.xyz to obtain an API key.

Body

application/json
evmEoa
string
required

EVM address (wallet address)

Pattern: ^0x[a-fA-F0-9]{40}$
unfreeze
boolean

Set to true to unfreeze a wallet whose proxyWalletStatus is temporary-frozen.

Response

Successful response with user information

userCredentials
object
required

User credentials object containing wallet information

newUser
boolean
required

Whether this is a newly created user (true) or existing user (false)

Example:

true

userId
string
required

Polymarket user ID (EVM address)

Example:

"0x0797bfec6d2d4f733d461bbee8125805e9e9c892"