> ## Documentation Index
> Fetch the complete documentation index at: https://docs.glider.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Portfolio Rebalance Execution

> Get detailed information about a specific rebalance execution

Gets detailed information about a specific rebalance execution.

<ParamField path="portfolioId" type="string" required>
  The unique identifier of the portfolio
</ParamField>

<ParamField path="workflowId" type="string" required>
  The ID of the rebalance workflow execution
</ParamField>

<ParamField header="X-API-KEY" type="string" required>
  Your API key for authentication
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.glider.fi/v1/portfolio/port_abc123/rebalance/status/rebal_def456' \
    --header 'X-API-KEY: your_api_key_here'
  ```

  ```javascript JavaScript theme={null}
  const portfolioId = "port_abc123";
  const workflowId = "rebal_def456";
  const rebalanceDetailsResponse = await fetch(
    `https://api.glider.fi/v1/portfolio/${portfolioId}/rebalance/status/${workflowId}`,
    {
      method: "GET",
      headers: {
        "X-API-KEY": "your_api_key_here",
      },
    }
  );

  const rebalanceDetails = await rebalanceDetailsResponse.json();
  console.log(`Rebalance execution status: ${rebalanceDetails.data.status}`);
  // status will be one of: "running", "completed", "failed", "canceled", or "terminated"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "portfolioId": "port_abc123",
      "workflowId": "rebal_def456",
      "runId": "run_jkl012",
      "status": "completed",
      "startTime": "2023-05-21T13:30:00.123Z",
      "closeTime": "2023-05-21T13:32:45.678Z",
      "executionTime": "2023-05-21T13:30:00.123Z",
      "taskQueue": "rebalance-queue",
      "result": {
        "transactionHash": "0xTransactionHash789",
        "blockNumber": 12345680,
        "gasUsed": "125000",
        "effectiveGasPrice": "1000000000",
        "status": "success"
      },
      "error": null,
      "historyLength": 32
    },
    "correlationId": "corr_abc123",
    "requestId": "req_xyz789",
    "timestamp": "2023-05-21T13:45:12.345Z"
  }
  ```
</ResponseExample>
