Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/polymarket/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"address": "0x9156dd10bea4c8d7e2d591b633d1694b1d764756",
"toChainId": "1",
"toTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"recipientAddr": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}'curl --request POST \
--url https://api.aisa.one/apis/v1/polymarket/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": "0x9156dd10bea4c8d7e2d591b633d1694b1d764756",
"recipientAddr": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"toChainId": "1",
"toTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
'import requests
url = "https://api.aisa.one/apis/v1/polymarket/withdraw"
payload = {
"address": "0x9156dd10bea4c8d7e2d591b633d1694b1d764756",
"recipientAddr": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"toChainId": "1",
"toTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '0x9156dd10bea4c8d7e2d591b633d1694b1d764756',
recipientAddr: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
toChainId: '1',
toTokenAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
})
};
fetch('https://api.aisa.one/apis/v1/polymarket/withdraw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/polymarket/withdraw",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '0x9156dd10bea4c8d7e2d591b633d1694b1d764756',
'recipientAddr' => '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
'toChainId' => '1',
'toTokenAddress' => '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/polymarket/withdraw"
payload := strings.NewReader("{\n \"address\": \"0x9156dd10bea4c8d7e2d591b633d1694b1d764756\",\n \"recipientAddr\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"toChainId\": \"1\",\n \"toTokenAddress\": \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/polymarket/withdraw")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"0x9156dd10bea4c8d7e2d591b633d1694b1d764756\",\n \"recipientAddr\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"toChainId\": \"1\",\n \"toTokenAddress\": \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/withdraw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"0x9156dd10bea4c8d7e2d591b633d1694b1d764756\",\n \"recipientAddr\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"toChainId\": \"1\",\n \"toTokenAddress\": \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"\n}"
response = http.request(request)
puts response.read_body{
"address": {
"btc": "bc1q8eau83qffxcj8ht4hsjdza3lha9r3egfqysj3g",
"evm": "0x23566f8b2E82aDfCf01846E54899d110e97AC053",
"svm": "CrvTBvzryYxBHbWu2TiQpcqD5M7Le7iBKzVmEj3f36Jb"
},
"note": "Send funds to these addresses to bridge to your destination chain and token."
}Bridge
Create withdrawal addresses
Create withdrawal addresses for bridging pUSD out of Polymarket.
POST
https://api.aisa.one
/
apis
/
v1
/
polymarket
/
withdraw
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/polymarket/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"address": "0x9156dd10bea4c8d7e2d591b633d1694b1d764756",
"toChainId": "1",
"toTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"recipientAddr": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}'curl --request POST \
--url https://api.aisa.one/apis/v1/polymarket/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": "0x9156dd10bea4c8d7e2d591b633d1694b1d764756",
"recipientAddr": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"toChainId": "1",
"toTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
'import requests
url = "https://api.aisa.one/apis/v1/polymarket/withdraw"
payload = {
"address": "0x9156dd10bea4c8d7e2d591b633d1694b1d764756",
"recipientAddr": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"toChainId": "1",
"toTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '0x9156dd10bea4c8d7e2d591b633d1694b1d764756',
recipientAddr: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
toChainId: '1',
toTokenAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
})
};
fetch('https://api.aisa.one/apis/v1/polymarket/withdraw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/polymarket/withdraw",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '0x9156dd10bea4c8d7e2d591b633d1694b1d764756',
'recipientAddr' => '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
'toChainId' => '1',
'toTokenAddress' => '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/polymarket/withdraw"
payload := strings.NewReader("{\n \"address\": \"0x9156dd10bea4c8d7e2d591b633d1694b1d764756\",\n \"recipientAddr\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"toChainId\": \"1\",\n \"toTokenAddress\": \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/polymarket/withdraw")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"0x9156dd10bea4c8d7e2d591b633d1694b1d764756\",\n \"recipientAddr\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"toChainId\": \"1\",\n \"toTokenAddress\": \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/withdraw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"0x9156dd10bea4c8d7e2d591b633d1694b1d764756\",\n \"recipientAddr\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n \"toChainId\": \"1\",\n \"toTokenAddress\": \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\"\n}"
response = http.request(request)
puts response.read_body{
"address": {
"btc": "bc1q8eau83qffxcj8ht4hsjdza3lha9r3egfqysj3g",
"evm": "0x23566f8b2E82aDfCf01846E54899d110e97AC053",
"svm": "CrvTBvzryYxBHbWu2TiQpcqD5M7Le7iBKzVmEj3f36Jb"
},
"note": "Send funds to these addresses to bridge to your destination chain and token."
}Request contract
- Method and path: POST /apis/v1/polymarket/withdraw
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/polymarket/withdraw - X-Builder-Code: header; optional
{
"operationId": "any_polymarket_bridge_apis_v1_polymarket_withdraw",
"method": "POST",
"path": "/apis/v1/polymarket/withdraw",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "Optional builder code (bytes32 hex) attributing this request to your integration so transfer issues can be traced to your app. Omitting it still succeeds but returns a `missing_builder_code` warning; a malformed code returns 400. Get your code at https://polymarket.com/settings?tab=builder\n",
"in": "header",
"name": "X-Builder-Code",
"required": false,
"schema": {
"example": "0x00000000000000000000000000000000000000000000000000000000abcd1234",
"pattern": "^0x[a-fA-F0-9]{64}$",
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"example": {
"address": "0x9156dd10bea4c8d7e2d591b633d1694b1d764756",
"recipientAddr": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"toChainId": "1",
"toTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"schema": {
"properties": {
"address": {
"description": "Ethereum address (0x-prefixed, 40 hex chars)",
"example": "0x56687bf447db6ffa42ffe2204a05edaa20f55839",
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"recipientAddr": {
"description": "Destination wallet address where funds will be sent",
"example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"type": "string"
},
"toChainId": {
"description": "Destination chain ID (e.g., \"1\" for Ethereum, \"8453\" for Base, \"1151111081099710\" for Solana)",
"example": "1",
"type": "string"
},
"toTokenAddress": {
"description": "Destination token contract address",
"example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"type": "string"
}
},
"required": [
"address",
"toChainId",
"toTokenAddress",
"recipientAddr"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0.012 USD per successful request. Your account price may differ; use a request quote where supported.Authorizations
Headers
Optional builder code (bytes32 hex) attributing this request to your integration so transfer issues can be traced to your app. Omitting it still succeeds but returns a missing_builder_code warning; a malformed code returns 400. Get your code at https://polymarket.com/settings?tab=builder
Pattern:
^0x[a-fA-F0-9]{64}$Example:
"0x00000000000000000000000000000000000000000000000000000000abcd1234"
Body
application/json