cURL
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" }
Creates a new Swaps account for a user or fetches an existing one based on the provided EVM address.
Limited demo key for API Reference: 5c951bc81da566bbd030ba8e20724063.
5c951bc81da566bbd030ba8e20724063
EVM address (wallet address)
Successful response with user information
User credentials object containing wallet information
Show child attributes
Whether this is a newly created user (true) or existing user (false)
true
Polymarket user ID (EVM address)
"0x0797bfec6d2d4f733d461bbee8125805e9e9c892"