Skip to main content
POST
/
execution
/
redeem
Redeem winnings for resolved positions
curl --request POST \
  --url https://api.agg.market/execution/redeem \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-app-id: <api-key>' \
  --data '
{
  "venueMarketOutcomeIds": [
    "<string>"
  ]
}
'
{
  "redeemId": "<string>",
  "results": [
    {
      "venueMarketOutcomeId": "<string>",
      "status": "submitted",
      "callsId": "<string>",
      "pendingUserOpId": "<string>",
      "txHash": "<string>",
      "reason": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.agg.market/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-app-id
string
header
required

Your application ID. Required for all app-tier and user-tier routes.

Authorization
string
header
required

JWT access token returned by POST /auth/verify. Required for user-tier routes.

Body

application/json
venueMarketOutcomeIds
string[]
required
Required array length: 1 - 20 elements

Response

200

redeemId
string
required
results
object[]
required