Skip to content
Validate custom setup settings

Validate custom setup settings

Check supplied setup fields independently without saving or making an endpoint call.

POST/api/v1/custom-integrations/validate-settings

Request#

TypeScript
const 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#

keyunknown

Command key to check.

endpointUrlunknown

Endpoint URL to check.

headersunknown

Static headers to check.

Responses#

Returns a nullable error message for each field. Omitted or valid fields have a null result.

200 response
{
  "key": null,
  "endpointUrl": null,
  "headers": null
}
More about this endpoint

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