---
title: "Relay a Polymarket deposit-wallet withdrawal"
method: POST
path: "/polymarket/withdraw"
tags: ["Processing"]
---

# Relay a Polymarket deposit-wallet withdrawal

`POST /polymarket/withdraw`

Relay a user-signed Polymarket deposit-wallet `WALLET` batch (approve/unwrap pUSD or transfer USDC.e) through the Polymarket relayer using server-held builder credentials. Submitted calls must target known Polymarket contracts.

## Headers

- `x-api-key` string, required — API key for authentication
- `x-api-version` string — API version identifier (e.g. "2026-04.amazon"). Optional today, will become required in a future release.

## Request body

- PolymarketWithdrawRequestBody
  - `depositWallet` string, required — Ethereum address (0x followed by 40 hex characters)
  - `owner` string, required — Ethereum address (0x followed by 40 hex characters)
  - `nonce` string, required — Numeric string representing a bigint value
  - `deadline` string, required — Numeric string representing a bigint value
  - `calls` PolymarketCall[], required
    - `target` string, required — Ethereum address (0x followed by 40 hex characters)
    - `value` string, required — Numeric string representing a bigint value
    - `data` string, required — Hex-encoded string (0x followed by hex characters)
  - `signature` string, required — Hex-encoded string (0x followed by hex characters)

## Response `200`

Withdrawal relayed successfully

- PolymarketWithdrawResponse
  - `message` string, required
  - `txHash` string, required — Hex-encoded string (0x followed by hex characters)

## Other responses

- `400` — Invalid request, disallowed call, or unauthorized
- `403` — API key lacks required deposits scope
- `502` — Polymarket relayer rejected or failed the batch
- `503` — Polymarket builder credentials not configured

---

[API](https://skmtc.net/rhinestonewtf/apis/deposit-service-api.md) · [All operations](https://skmtc.net/rhinestonewtf/apis/deposit-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rhinestonewtf/deposit-service-api/revisions/ce4e0abfe33a/schema)
