REST API Endpoints
- GETPortfolio List
- GETPortfolio Get
- PUTPortfolio Update
- GETPortfolio List By Owner
- POSTPortfolio Create Signature
- POSTPortfolio Create
- POSTPortfolio Create From Template
- POSTPortfolio Resign
- POSTPortfolio Resubmit Signature
- GETPortfolio Get Assets
- GETPortfolio Get Performance
- GETPortfolio Get Transactions
- GETPortfolio Get Deposits Withdrawals
- POSTPortfolio Deposit
- POSTPortfolio Deposit with Simulation
- POSTPortfolio Withdraw
- POSTPortfolio Withdraw as ETH
- POSTPortfolio Automation Start
- POSTPortfolio Automation Pause
- POSTPortfolio Automation Resume
- POSTPortfolio Automation Trigger
- GETPortfolio Automation Status
- GETPortfolio Rebalance Status
- GETPortfolio Rebalance Execution
- POSTPortfolio Schedule Interval
- POSTPortfolio Execute
- POSTPortfolio Archive
REST API Endpoints
Portfolio Resign
Generate a new signable message for an existing portfolio
POST
/
v1
/
portfolio
/
:portfolioId
/
resign
curl --request POST \
--url '/v1/portfolio/port_abc123/resign' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: your_api_key_here' \
--data '{}'
{
"success": true,
"data": {
"signatureAction": {
"reason": "portfolio-resign",
"type": "personal_sign",
"message": "I authorize Glider to manage my portfolio\n\n0x8ad4d95c3c3d0a1e87bfdb1d2401905db4a97d8e05e77d69e5d79397da128b81"
},
"signType": "personal_sign",
"userAddress": "0xYourWalletAddress",
"agentAddress": "0xAgentAddress",
"accountIndex": "0",
"chainIds": [8453],
"portfolioId": "port_abc123",
"portfolioAddresses": [
{
"chainId": 8453,
"address": "0xPortfolioVaultAddress"
}
]
},
"correlationId": "corr_abc123",
"requestId": "req_xyz789",
"timestamp": "2023-05-21T12:34:56.789Z"
}
Generates a new signable message for an existing portfolio. This is useful when session keys need to be refreshed.
The ID of the portfolio to resign
curl --request POST \
--url '/v1/portfolio/port_abc123/resign' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: your_api_key_here' \
--data '{}'
{
"success": true,
"data": {
"signatureAction": {
"reason": "portfolio-resign",
"type": "personal_sign",
"message": "I authorize Glider to manage my portfolio\n\n0x8ad4d95c3c3d0a1e87bfdb1d2401905db4a97d8e05e77d69e5d79397da128b81"
},
"signType": "personal_sign",
"userAddress": "0xYourWalletAddress",
"agentAddress": "0xAgentAddress",
"accountIndex": "0",
"chainIds": [8453],
"portfolioId": "port_abc123",
"portfolioAddresses": [
{
"chainId": 8453,
"address": "0xPortfolioVaultAddress"
}
]
},
"correlationId": "corr_abc123",
"requestId": "req_xyz789",
"timestamp": "2023-05-21T12:34:56.789Z"
}
curl --request POST \
--url '/v1/portfolio/port_abc123/resign' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: your_api_key_here' \
--data '{}'
{
"success": true,
"data": {
"signatureAction": {
"reason": "portfolio-resign",
"type": "personal_sign",
"message": "I authorize Glider to manage my portfolio\n\n0x8ad4d95c3c3d0a1e87bfdb1d2401905db4a97d8e05e77d69e5d79397da128b81"
},
"signType": "personal_sign",
"userAddress": "0xYourWalletAddress",
"agentAddress": "0xAgentAddress",
"accountIndex": "0",
"chainIds": [8453],
"portfolioId": "port_abc123",
"portfolioAddresses": [
{
"chainId": 8453,
"address": "0xPortfolioVaultAddress"
}
]
},
"correlationId": "corr_abc123",
"requestId": "req_xyz789",
"timestamp": "2023-05-21T12:34:56.789Z"
}
Assistant
Responses are generated using AI and may contain mistakes.