Hooks
Get Hook Executions
Retrieve the execution history for a hook
GET
/
lending-external-securities
/
api
/
hooks
/
{marketId}
/
{hookId}
/
executions
curl "https://api.trusset.org/lending-external-securities/api/hooks/{marketId}/{hookId}/executions?limit=10" \
-H "X-API-Key: trusset_your_key_here"
{
"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
}
}
Returns past runs of a hook, newest first, with pagination counters. Both scheduled runs and manual runs from Execute Hook appear here.
Path Parameters
string
required
Market ID.
string
required
Hook ID.
Query Parameters
integer
default:"50"
Records to return. Minimum 1, maximum 200.
integer
default:"0"
Records to skip. Minimum 0.
Response Fields
object
curl "https://api.trusset.org/lending-external-securities/api/hooks/{marketId}/{hookId}/executions?limit=10" \
-H "X-API-Key: trusset_your_key_here"
{
"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
}
}
⌘I
curl "https://api.trusset.org/lending-external-securities/api/hooks/{marketId}/{hookId}/executions?limit=10" \
-H "X-API-Key: trusset_your_key_here"
{
"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
}
}
