Skip to content
List tool hooks

List tool hooks

List all global and integration-scoped hooks in the workspace.

GET/api/v1/tool-hooks

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/tool-hooks", {
  method: "GET",
  headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();

Use your server-side apiKey. Replace the example IDs.

Responses#

Returns hook ID, global/integration scope, nullable provider key/name/enablement, mountId and mountPath for a hook scoped to one mount, endpoint URL, timeoutSeconds, and timestamps. The saved signing secret is never returned by listing or editing.

200 response
{
  "items": [
    {
      "id": "72b98ef7-4750-4521-b11d-82c114aa56f4",
      "scope": "global",
      "providerKey": null,
      "mountId": null,
      "mountPath": null,
      "integrationName": null,
      "integrationEnabled": null,
      "url": "https://hooks.example.com/check",
      "timeoutSeconds": 30,
      "createdAt": "2026-10-22T10:00:00.000Z",
      "updatedAt": "2026-10-22T10:00:00.000Z"
    }
  ]
}
More about this endpoint

Authenticate with a workspace API key. Unknown body fields and query parameters are rejected.