> ## 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

> Retrieve a single hook by ID

Returns one hook record. The hook must belong to the specified market, otherwise the request returns `HOOK_NOT_FOUND`.

## Path Parameters

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

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

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "id": "hook_002",
      "marketId": "clx_secmarket_001",
      "hookType": "beforeLiquidation",
      "name": "Pre-Liquidation Check",
      "riskUri": null,
      "riskFields": [],
      "checkFrequency": null,
      "parameterChecks": [
        { "parameter": "healthFactor", "operator": "<", "threshold": "0.95" }
      ],
      "triggerHookIds": [],
      "actionType": null,
      "maxBuyPrice": null,
      "webhookUrl": null,
      "webhookPayload": null,
      "signerAddress": "0x123...456",
      "active": true,
      "lastResult": null,
      "executionCount": 0,
      "createdAt": "2025-06-02T10:15:00.000Z"
    }
  }
  ```

  ```json Error - Not Found theme={null}
  {
    "success": false,
    "error": {
      "code": "HOOK_NOT_FOUND",
      "message": "Hook not found"
    }
  }
  ```
</ResponseExample>
