Skip to content
Delete a hook

Delete a hook

Remove the hook so subsequent tool calls no longer consult it.

DELETE/api/v1/tool-hooks/:id

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/tool-hooks/72b98ef7-4750-4521-b11d-82c114aa56f4", {
  method: "DELETE",
  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.

Path parameters#

idUUIDrequired

The hook ID returned during creation or listing.

Responses#

Returns the result of this operation.

200 response
{
  "deleted": true
}
More about this endpoint

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