Send a custom test call
Send a real signed tool call using a saved integration's configuration.
/api/v1/custom-integrations/:key/testconst response = await fetch("https://api.smallworld.sh/api/v1/custom-integrations/example/test", {
method: "POST",
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify({
"toolName": "lookup",
"arguments": {
"id": "rec_123"
}
}),
});
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#
keystringrequiredThe saved integration's command key, URL-encoded.
Request body#
toolNamestringrequiredOriginal tool name from its definition.
argumentsobjectTool arguments, validated against its input schema. Defaults to an empty object.
Responses#
Returns outcome (succeeded, failed, or unknown), request diagnostics with configured static header values hidden, response preview, output, and a nullable structured error. HTTP 200 does not guarantee a successful call.
{
"outcome": "succeeded",
"durationMs": 12,
"request": {
"url": "https://tools.example.com/tools",
"headers": {
"x-api-key": "[hidden]"
},
"body": "{\"type\":\"tool_call\",\"name\":\"lookup\"}"
},
"response": {
"status": 200,
"contentType": "application/json",
"body": "{\"id\":\"rec_123\"}"
},
"output": {
"id": "rec_123"
},
"error": null
}
More about this endpoint
This sends real signed requests. Your endpoint can change data. Test requests use the test user's external identifier and null World/session/execution IDs, with no execution context. Tests do not create tool-call or execution history.
An unknown outcome may have changed remote data; inspect the endpoint before retrying.