POST
/
v1
/
portfolio
/
:portfolioId
/
withdraw-as-eth
curl --request POST \
  --url 'https://api.glider.fi/v1/portfolio/port_abc123/withdraw-as-eth' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: your_api_key_here' \
  --data '{
    "strategyInstanceId": "port_abc123",
    "assets": [
      {
        "assetId": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913:8453",
        "amount": "500000",
        "decimals": 6
      },
      {
        "assetId": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb:8453",
        "amount": "500000000000000000",
        "decimals": 18
      }
    ]
  }'
{
  "success": true,
  "data": {
    "workflowId": "swap-withdraw_abc123",
    "runId": "run_def456",
    "message": "Withdraw-as-ETH request submitted successfully",
    "status": "submitted"
  },
  "correlationId": "corr_abc123",
  "requestId": "req_xyz789",
  "timestamp": "2023-05-21T13:45:12.345Z"
}
Converts and withdraws specified assets as ETH.
portfolioId
string
required
The unique identifier of the portfolio
strategyInstanceId
string
required
The ID of the portfolio (same as portfolioId in path)
assets
object[]
required
Array of assets to withdraw
assets[].assetId
string
required
The asset ID in format “0xContractAddress:chainId”
assets[].amount
string
required
The amount to withdraw in raw units (no decimals), or “max” to withdraw all
assets[].decimals
number
required
The number of decimals for the token
X-API-KEY
string
required
Your API key for authentication
Content-Type
string
default:"application/json"
The format of the request body
curl --request POST \
  --url 'https://api.glider.fi/v1/portfolio/port_abc123/withdraw-as-eth' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: your_api_key_here' \
  --data '{
    "strategyInstanceId": "port_abc123",
    "assets": [
      {
        "assetId": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913:8453",
        "amount": "500000",
        "decimals": 6
      },
      {
        "assetId": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb:8453",
        "amount": "500000000000000000",
        "decimals": 18
      }
    ]
  }'
{
  "success": true,
  "data": {
    "workflowId": "swap-withdraw_abc123",
    "runId": "run_def456",
    "message": "Withdraw-as-ETH request submitted successfully",
    "status": "submitted"
  },
  "correlationId": "corr_abc123",
  "requestId": "req_xyz789",
  "timestamp": "2023-05-21T13:45:12.345Z"
}