Skip to main content
POST
Redeem Position

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

User's EVM wallet address

Pattern: ^0x[a-fA-F0-9]{40}$
conditionId
string
required

Polymarket condition ID for the position to redeem

Example:

"0x52f13a5eaf375170189f326e58cc6d217515de1cf9e41bff17be7779ea9a295c"

assetId
string
required

Polymarket asset ID for the asset to redeem

Example:

"25851216745091725550702226389795916287148711992808817855215289655518936398397"

expiration
integer
required

Unix timestamp (seconds) when signatureByEvmEoa expires. Must be in the future and ≤ 300s ahead.

signatureByEvmEoa
string
required

EIP-712 signature by the EOA over the RedeemPosition typed data. See the Polymarket Signing Guide.

Pattern: ^0x[a-fA-F0-9]*$
dstToken
object

Optional destination token. When set, redeemed USDC.e is swapped into this token (address + chainId) before delivery.

dstWalletAddress
string

Optional wallet that receives the proceeds instead of the caller's evmEoa.

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

Response

Position redeemed successfully

txId
string
required

Workflow transaction ID. Track execution with GET /workflows/getStatus.

txHash
string
required

Transaction hash of the redemption

Pattern: ^0x[a-fA-F0-9]*$
status
string
required

Status message of the redemption