Skip to main content
POST
Merge 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"

Response

Positions merged 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 merge