Skip to main content
POST
/
workflows
/
polymarket
/
mergePositions
Merge Position
curl --request POST \
  --url https://api-v2.swaps.xyz/api/workflows/polymarket/mergePositions \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "evmEoa": "<string>",
  "conditionId": "0x52f13a5eaf375170189f326e58cc6d217515de1cf9e41bff17be7779ea9a295c"
}
'
{
  "txHash": "<string>",
  "status": "<string>"
}

Authorizations

x-api-key
string
header
required

Limited demo key for API Reference: 5c951bc81da566bbd030ba8e20724063.

Body

application/json
evmEoa
string
required

User's EVM wallet address

conditionId
string
required

Polymarket condition ID for the position to redeem

Example:

"0x52f13a5eaf375170189f326e58cc6d217515de1cf9e41bff17be7779ea9a295c"

Response

Positions merged successfully

txHash
string
required

Transaction hash of the redemption

status
string
required

Status message of the merge