---
title: "Create or Fetch User"
method: POST
path: "/workflows/polymarket/createOrFetchPolymarketUser"
---

# Create or Fetch User

`POST /workflows/polymarket/createOrFetchPolymarketUser`

Creates a new Swaps account for a user or fetches an existing one based on the provided EVM address.

## Request body

- CreateOrFetchPolymarketUserRequest
  - `evmEoa` string, required — EVM address (0x prefix + 40 hex characters)

## Response `200`

Successful response with user information

- CreateOrFetchPolymarketUserResponse
  - `userCredentials` UserCredentials, required
    - `evmEoa` string, required — EVM address (0x prefix + 40 hex characters)
    - `proxyWallet` string — EVM address (0x prefix + 40 hex characters)
    - `proxyWalletStatus` 'ready' | 'deploying' | 'permissioning' | 'failed-deploy' | 'failed-permission' | 'not-created' | 'temporary-frozen' — Status of the proxy wallet
  - `newUser` boolean, required — Whether this is a newly created user (true) or existing user (false)
  - `userId` string, required — Polymarket user ID (EVM address)

## Other responses

- `400` — Bad request due to missing or invalid parameters
- `401` — Unauthorized - Invalid or missing API key
- `500` — Internal server error

---

[API](https://skmtc.dev/swaps/apis/prediction-market-data-api.md) · [All operations](https://skmtc.dev/swaps/apis/prediction-market-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/swaps/prediction-market-data-api/revisions/03e917d60cb7/schema)
