Skip to main content
POST
/
workflows
/
polymarket
/
createOrFetchPolymarketUser
Create or Fetch User
curl --request POST \
  --url https://api-v2.swaps.xyz/api/workflows/polymarket/createOrFetchPolymarketUser \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "evmEoa": "<string>"
}
'
{
  "userCredentials": {
    "evmEoa": "<string>",
    "proxyWallet": "<string>",
    "proxyWalletStatus": "ready"
  },
  "newUser": true,
  "userId": "0x0797bfec6d2d4f733d461bbee8125805e9e9c892"
}

Authorizations

x-api-key
string
header
required

Limited demo key for API Reference: 5c951bc81da566bbd030ba8e20724063.

Body

application/json
evmEoa
string
required

EVM address (wallet address)

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"