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

# Get Hook Executions

> Retrieve the execution history for a hook

Returns past runs of a hook, newest first, with pagination counters. Both scheduled runs and manual runs from [Execute Hook](/endpoints/external-securities-lending/execute-hook) appear here.

## Path Parameters

<ParamField path="marketId" type="string" required>Market ID.</ParamField>
<ParamField path="hookId" type="string" required>Hook ID.</ParamField>

## Query Parameters

<ParamField query="limit" type="integer" default="50">
  Records to return. Minimum 1, maximum 200.
</ParamField>

<ParamField query="offset" type="integer" default="0">
  Records to skip. Minimum 0.
</ParamField>

## Response Fields

<ResponseField name="data" type="object">
  <Expandable>
    <ResponseField name="executions" type="array">
      Execution records. Each contains `id`, `hookId`, `marketId`, `loanId`, `executionType`, `result`, `data`, `error`, and `executedAt`.
    </ResponseField>

    <ResponseField name="total" type="integer">Total executions recorded for this hook.</ResponseField>
    <ResponseField name="hasMore" type="boolean">Whether more records exist beyond this page.</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.trusset.org/lending-external-securities/api/hooks/{marketId}/{hookId}/executions?limit=10" \
    -H "X-API-Key: trusset_your_key_here"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "executions": [
        {
          "id": "exec_001",
          "hookId": "hook_003",
          "marketId": "clx_secmarket_001",
          "loanId": null,
          "executionType": "monitorRisk",
          "result": true,
          "data": { "ageHours": 12 },
          "error": null,
          "executedAt": "2025-06-15T06:00:00.000Z"
        },
        {
          "id": "exec_002",
          "hookId": "hook_003",
          "marketId": "clx_secmarket_001",
          "loanId": null,
          "executionType": "monitorRisk",
          "result": false,
          "data": { "ageHours": 51 },
          "error": null,
          "executedAt": "2025-06-15T00:00:00.000Z"
        }
      ],
      "total": 142,
      "hasMore": true
    }
  }
  ```
</ResponseExample>
