Validate custom setup settings
Check supplied setup fields independently without saving or making an endpoint call.
POST
/api/v1/custom-integrations/validate-settingsconst response = await fetch("https://api.smallworld.sh/api/v1/custom-integrations/validate-settings", {
method: "POST",
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify({
"key": "example",
"endpointUrl": "https://tools.example.com/tools"
}),
});
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.
Request body#
keyunknownCommand key to check.
endpointUrlunknownEndpoint URL to check.
headersunknownStatic headers to check.
Responses#
Returns a nullable error message for each field. Omitted or valid fields have a null result.
{
"key": null,
"endpointUrl": null,
"headers": null
}
More about this endpoint
Authenticate with a workspace API key. Unknown body fields and query parameters are rejected.