curl --request POST \
--url https://api.iotools.cloud/v1/tool/tsconfig-json-generator \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ioLib": "<string>",
"ioRootDir": "<string>",
"ioOutDir": "<string>",
"ioBaseUrl": "<string>",
"ioPaths": "<string>",
"ioInclude": "<string>",
"ioExclude": "<string>",
"ioStrict": true,
"ioNoImplicitAny": true,
"ioStrictNullChecks": true,
"ioStrictFunctionTypes": true,
"ioStrictBindCallApply": true,
"ioStrictPropertyInitialization": true,
"ioNoImplicitThis": true,
"ioAlwaysStrict": true,
"ioNoUncheckedIndexedAccess": true,
"ioNoImplicitOverride": true,
"ioExactOptionalPropertyTypes": true,
"ioNoUnusedLocals": true,
"ioNoUnusedParameters": true,
"ioNoFallthroughCasesInSwitch": true,
"ioNoImplicitReturns": true,
"ioEsModuleInterop": true,
"ioAllowSyntheticDefaultImports": true,
"ioForceConsistentCasing": true,
"ioSkipLibCheck": true,
"ioResolveJsonModule": true,
"ioIsolatedModules": true,
"ioVerbatimModuleSyntax": true,
"ioAllowJs": true,
"ioCheckJs": true,
"ioDeclaration": true,
"ioDeclarationMap": true,
"ioSourceMap": true,
"ioNoEmit": true,
"ioIncludeComments": true,
"ioIncludeHeader": true
}
'import requests
url = "https://api.iotools.cloud/v1/tool/tsconfig-json-generator"
payload = {
"ioLib": "<string>",
"ioRootDir": "<string>",
"ioOutDir": "<string>",
"ioBaseUrl": "<string>",
"ioPaths": "<string>",
"ioInclude": "<string>",
"ioExclude": "<string>",
"ioStrict": True,
"ioNoImplicitAny": True,
"ioStrictNullChecks": True,
"ioStrictFunctionTypes": True,
"ioStrictBindCallApply": True,
"ioStrictPropertyInitialization": True,
"ioNoImplicitThis": True,
"ioAlwaysStrict": True,
"ioNoUncheckedIndexedAccess": True,
"ioNoImplicitOverride": True,
"ioExactOptionalPropertyTypes": True,
"ioNoUnusedLocals": True,
"ioNoUnusedParameters": True,
"ioNoFallthroughCasesInSwitch": True,
"ioNoImplicitReturns": True,
"ioEsModuleInterop": True,
"ioAllowSyntheticDefaultImports": True,
"ioForceConsistentCasing": True,
"ioSkipLibCheck": True,
"ioResolveJsonModule": True,
"ioIsolatedModules": True,
"ioVerbatimModuleSyntax": True,
"ioAllowJs": True,
"ioCheckJs": True,
"ioDeclaration": True,
"ioDeclarationMap": True,
"ioSourceMap": True,
"ioNoEmit": True,
"ioIncludeComments": True,
"ioIncludeHeader": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ioLib: '<string>',
ioRootDir: '<string>',
ioOutDir: '<string>',
ioBaseUrl: '<string>',
ioPaths: '<string>',
ioInclude: '<string>',
ioExclude: '<string>',
ioStrict: true,
ioNoImplicitAny: true,
ioStrictNullChecks: true,
ioStrictFunctionTypes: true,
ioStrictBindCallApply: true,
ioStrictPropertyInitialization: true,
ioNoImplicitThis: true,
ioAlwaysStrict: true,
ioNoUncheckedIndexedAccess: true,
ioNoImplicitOverride: true,
ioExactOptionalPropertyTypes: true,
ioNoUnusedLocals: true,
ioNoUnusedParameters: true,
ioNoFallthroughCasesInSwitch: true,
ioNoImplicitReturns: true,
ioEsModuleInterop: true,
ioAllowSyntheticDefaultImports: true,
ioForceConsistentCasing: true,
ioSkipLibCheck: true,
ioResolveJsonModule: true,
ioIsolatedModules: true,
ioVerbatimModuleSyntax: true,
ioAllowJs: true,
ioCheckJs: true,
ioDeclaration: true,
ioDeclarationMap: true,
ioSourceMap: true,
ioNoEmit: true,
ioIncludeComments: true,
ioIncludeHeader: true
})
};
fetch('https://api.iotools.cloud/v1/tool/tsconfig-json-generator', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iotools.cloud/v1/tool/tsconfig-json-generator",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ioLib' => '<string>',
'ioRootDir' => '<string>',
'ioOutDir' => '<string>',
'ioBaseUrl' => '<string>',
'ioPaths' => '<string>',
'ioInclude' => '<string>',
'ioExclude' => '<string>',
'ioStrict' => true,
'ioNoImplicitAny' => true,
'ioStrictNullChecks' => true,
'ioStrictFunctionTypes' => true,
'ioStrictBindCallApply' => true,
'ioStrictPropertyInitialization' => true,
'ioNoImplicitThis' => true,
'ioAlwaysStrict' => true,
'ioNoUncheckedIndexedAccess' => true,
'ioNoImplicitOverride' => true,
'ioExactOptionalPropertyTypes' => true,
'ioNoUnusedLocals' => true,
'ioNoUnusedParameters' => true,
'ioNoFallthroughCasesInSwitch' => true,
'ioNoImplicitReturns' => true,
'ioEsModuleInterop' => true,
'ioAllowSyntheticDefaultImports' => true,
'ioForceConsistentCasing' => true,
'ioSkipLibCheck' => true,
'ioResolveJsonModule' => true,
'ioIsolatedModules' => true,
'ioVerbatimModuleSyntax' => true,
'ioAllowJs' => true,
'ioCheckJs' => true,
'ioDeclaration' => true,
'ioDeclarationMap' => true,
'ioSourceMap' => true,
'ioNoEmit' => true,
'ioIncludeComments' => true,
'ioIncludeHeader' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iotools.cloud/v1/tool/tsconfig-json-generator"
payload := strings.NewReader("{\n \"ioLib\": \"<string>\",\n \"ioRootDir\": \"<string>\",\n \"ioOutDir\": \"<string>\",\n \"ioBaseUrl\": \"<string>\",\n \"ioPaths\": \"<string>\",\n \"ioInclude\": \"<string>\",\n \"ioExclude\": \"<string>\",\n \"ioStrict\": true,\n \"ioNoImplicitAny\": true,\n \"ioStrictNullChecks\": true,\n \"ioStrictFunctionTypes\": true,\n \"ioStrictBindCallApply\": true,\n \"ioStrictPropertyInitialization\": true,\n \"ioNoImplicitThis\": true,\n \"ioAlwaysStrict\": true,\n \"ioNoUncheckedIndexedAccess\": true,\n \"ioNoImplicitOverride\": true,\n \"ioExactOptionalPropertyTypes\": true,\n \"ioNoUnusedLocals\": true,\n \"ioNoUnusedParameters\": true,\n \"ioNoFallthroughCasesInSwitch\": true,\n \"ioNoImplicitReturns\": true,\n \"ioEsModuleInterop\": true,\n \"ioAllowSyntheticDefaultImports\": true,\n \"ioForceConsistentCasing\": true,\n \"ioSkipLibCheck\": true,\n \"ioResolveJsonModule\": true,\n \"ioIsolatedModules\": true,\n \"ioVerbatimModuleSyntax\": true,\n \"ioAllowJs\": true,\n \"ioCheckJs\": true,\n \"ioDeclaration\": true,\n \"ioDeclarationMap\": true,\n \"ioSourceMap\": true,\n \"ioNoEmit\": true,\n \"ioIncludeComments\": true,\n \"ioIncludeHeader\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iotools.cloud/v1/tool/tsconfig-json-generator")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ioLib\": \"<string>\",\n \"ioRootDir\": \"<string>\",\n \"ioOutDir\": \"<string>\",\n \"ioBaseUrl\": \"<string>\",\n \"ioPaths\": \"<string>\",\n \"ioInclude\": \"<string>\",\n \"ioExclude\": \"<string>\",\n \"ioStrict\": true,\n \"ioNoImplicitAny\": true,\n \"ioStrictNullChecks\": true,\n \"ioStrictFunctionTypes\": true,\n \"ioStrictBindCallApply\": true,\n \"ioStrictPropertyInitialization\": true,\n \"ioNoImplicitThis\": true,\n \"ioAlwaysStrict\": true,\n \"ioNoUncheckedIndexedAccess\": true,\n \"ioNoImplicitOverride\": true,\n \"ioExactOptionalPropertyTypes\": true,\n \"ioNoUnusedLocals\": true,\n \"ioNoUnusedParameters\": true,\n \"ioNoFallthroughCasesInSwitch\": true,\n \"ioNoImplicitReturns\": true,\n \"ioEsModuleInterop\": true,\n \"ioAllowSyntheticDefaultImports\": true,\n \"ioForceConsistentCasing\": true,\n \"ioSkipLibCheck\": true,\n \"ioResolveJsonModule\": true,\n \"ioIsolatedModules\": true,\n \"ioVerbatimModuleSyntax\": true,\n \"ioAllowJs\": true,\n \"ioCheckJs\": true,\n \"ioDeclaration\": true,\n \"ioDeclarationMap\": true,\n \"ioSourceMap\": true,\n \"ioNoEmit\": true,\n \"ioIncludeComments\": true,\n \"ioIncludeHeader\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iotools.cloud/v1/tool/tsconfig-json-generator")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ioLib\": \"<string>\",\n \"ioRootDir\": \"<string>\",\n \"ioOutDir\": \"<string>\",\n \"ioBaseUrl\": \"<string>\",\n \"ioPaths\": \"<string>\",\n \"ioInclude\": \"<string>\",\n \"ioExclude\": \"<string>\",\n \"ioStrict\": true,\n \"ioNoImplicitAny\": true,\n \"ioStrictNullChecks\": true,\n \"ioStrictFunctionTypes\": true,\n \"ioStrictBindCallApply\": true,\n \"ioStrictPropertyInitialization\": true,\n \"ioNoImplicitThis\": true,\n \"ioAlwaysStrict\": true,\n \"ioNoUncheckedIndexedAccess\": true,\n \"ioNoImplicitOverride\": true,\n \"ioExactOptionalPropertyTypes\": true,\n \"ioNoUnusedLocals\": true,\n \"ioNoUnusedParameters\": true,\n \"ioNoFallthroughCasesInSwitch\": true,\n \"ioNoImplicitReturns\": true,\n \"ioEsModuleInterop\": true,\n \"ioAllowSyntheticDefaultImports\": true,\n \"ioForceConsistentCasing\": true,\n \"ioSkipLibCheck\": true,\n \"ioResolveJsonModule\": true,\n \"ioIsolatedModules\": true,\n \"ioVerbatimModuleSyntax\": true,\n \"ioAllowJs\": true,\n \"ioCheckJs\": true,\n \"ioDeclaration\": true,\n \"ioDeclarationMap\": true,\n \"ioSourceMap\": true,\n \"ioNoEmit\": true,\n \"ioIncludeComments\": true,\n \"ioIncludeHeader\": true\n}"
response = http.request(request)
puts response.read_body{
"tool": "<string>",
"tool_version": "<string>",
"outputs": {
"ioOutput": "<string>"
},
"credits_used": 123,
"request_id": "<string>",
"credits_remaining": 123
}{
"type": "https://iotools.cloud/docs/errors/validation_error",
"title": "Invalid request",
"status": 400,
"code": "validation_error",
"detail": "One or more inputs are invalid — see `fields`.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/invalid_api_key",
"title": "Invalid API key",
"status": 401,
"code": "invalid_api_key",
"detail": "Provide 'Authorization: Bearer <key>'.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/insufficient_credits",
"title": "Insufficient credits",
"status": 402,
"code": "insufficient_credits",
"detail": "This call costs 1 credit and 0 remain in this month's allowance.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/tool_not_allowed",
"title": "Tool not available over the API",
"status": 403,
"code": "tool_not_allowed",
"detail": "\"Background Remover\" is available on iotools.cloud but has no API endpoint.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/tool_not_found",
"title": "Tool not found",
"status": 404,
"code": "tool_not_found",
"detail": "No tool with that slug. See GET /v1/tools.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/payload_too_large",
"title": "Payload too large",
"status": 413,
"code": "payload_too_large",
"detail": "Request body exceeds this tool's size limit.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/rate_limited",
"title": "Rate limit exceeded",
"status": 429,
"code": "rate_limited",
"detail": "Too many requests. Retry in 30s.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/processing_error",
"title": "Tool failed to run",
"status": 500,
"code": "processing_error",
"detail": "The tool failed to run. Please try again.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/tool_disabled",
"title": "Tool temporarily disabled",
"status": 503,
"code": "tool_disabled",
"detail": "This tool is temporarily unavailable. Try again shortly.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}tsconfig.json Generator
Generate a TypeScript tsconfig.json from form fields: target, module, moduleResolution, JSX, lib, project layout (rootDir, outDir, baseUrl, path aliases, include/exclude), and every strictness, linting, and emit/interop compiler option. Start from a preset (Node.js, React, Next.js, Library, Strictest) or build a custom config; output is commented, ready-to-drop JSONC.
curl --request POST \
--url https://api.iotools.cloud/v1/tool/tsconfig-json-generator \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ioLib": "<string>",
"ioRootDir": "<string>",
"ioOutDir": "<string>",
"ioBaseUrl": "<string>",
"ioPaths": "<string>",
"ioInclude": "<string>",
"ioExclude": "<string>",
"ioStrict": true,
"ioNoImplicitAny": true,
"ioStrictNullChecks": true,
"ioStrictFunctionTypes": true,
"ioStrictBindCallApply": true,
"ioStrictPropertyInitialization": true,
"ioNoImplicitThis": true,
"ioAlwaysStrict": true,
"ioNoUncheckedIndexedAccess": true,
"ioNoImplicitOverride": true,
"ioExactOptionalPropertyTypes": true,
"ioNoUnusedLocals": true,
"ioNoUnusedParameters": true,
"ioNoFallthroughCasesInSwitch": true,
"ioNoImplicitReturns": true,
"ioEsModuleInterop": true,
"ioAllowSyntheticDefaultImports": true,
"ioForceConsistentCasing": true,
"ioSkipLibCheck": true,
"ioResolveJsonModule": true,
"ioIsolatedModules": true,
"ioVerbatimModuleSyntax": true,
"ioAllowJs": true,
"ioCheckJs": true,
"ioDeclaration": true,
"ioDeclarationMap": true,
"ioSourceMap": true,
"ioNoEmit": true,
"ioIncludeComments": true,
"ioIncludeHeader": true
}
'import requests
url = "https://api.iotools.cloud/v1/tool/tsconfig-json-generator"
payload = {
"ioLib": "<string>",
"ioRootDir": "<string>",
"ioOutDir": "<string>",
"ioBaseUrl": "<string>",
"ioPaths": "<string>",
"ioInclude": "<string>",
"ioExclude": "<string>",
"ioStrict": True,
"ioNoImplicitAny": True,
"ioStrictNullChecks": True,
"ioStrictFunctionTypes": True,
"ioStrictBindCallApply": True,
"ioStrictPropertyInitialization": True,
"ioNoImplicitThis": True,
"ioAlwaysStrict": True,
"ioNoUncheckedIndexedAccess": True,
"ioNoImplicitOverride": True,
"ioExactOptionalPropertyTypes": True,
"ioNoUnusedLocals": True,
"ioNoUnusedParameters": True,
"ioNoFallthroughCasesInSwitch": True,
"ioNoImplicitReturns": True,
"ioEsModuleInterop": True,
"ioAllowSyntheticDefaultImports": True,
"ioForceConsistentCasing": True,
"ioSkipLibCheck": True,
"ioResolveJsonModule": True,
"ioIsolatedModules": True,
"ioVerbatimModuleSyntax": True,
"ioAllowJs": True,
"ioCheckJs": True,
"ioDeclaration": True,
"ioDeclarationMap": True,
"ioSourceMap": True,
"ioNoEmit": True,
"ioIncludeComments": True,
"ioIncludeHeader": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ioLib: '<string>',
ioRootDir: '<string>',
ioOutDir: '<string>',
ioBaseUrl: '<string>',
ioPaths: '<string>',
ioInclude: '<string>',
ioExclude: '<string>',
ioStrict: true,
ioNoImplicitAny: true,
ioStrictNullChecks: true,
ioStrictFunctionTypes: true,
ioStrictBindCallApply: true,
ioStrictPropertyInitialization: true,
ioNoImplicitThis: true,
ioAlwaysStrict: true,
ioNoUncheckedIndexedAccess: true,
ioNoImplicitOverride: true,
ioExactOptionalPropertyTypes: true,
ioNoUnusedLocals: true,
ioNoUnusedParameters: true,
ioNoFallthroughCasesInSwitch: true,
ioNoImplicitReturns: true,
ioEsModuleInterop: true,
ioAllowSyntheticDefaultImports: true,
ioForceConsistentCasing: true,
ioSkipLibCheck: true,
ioResolveJsonModule: true,
ioIsolatedModules: true,
ioVerbatimModuleSyntax: true,
ioAllowJs: true,
ioCheckJs: true,
ioDeclaration: true,
ioDeclarationMap: true,
ioSourceMap: true,
ioNoEmit: true,
ioIncludeComments: true,
ioIncludeHeader: true
})
};
fetch('https://api.iotools.cloud/v1/tool/tsconfig-json-generator', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iotools.cloud/v1/tool/tsconfig-json-generator",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ioLib' => '<string>',
'ioRootDir' => '<string>',
'ioOutDir' => '<string>',
'ioBaseUrl' => '<string>',
'ioPaths' => '<string>',
'ioInclude' => '<string>',
'ioExclude' => '<string>',
'ioStrict' => true,
'ioNoImplicitAny' => true,
'ioStrictNullChecks' => true,
'ioStrictFunctionTypes' => true,
'ioStrictBindCallApply' => true,
'ioStrictPropertyInitialization' => true,
'ioNoImplicitThis' => true,
'ioAlwaysStrict' => true,
'ioNoUncheckedIndexedAccess' => true,
'ioNoImplicitOverride' => true,
'ioExactOptionalPropertyTypes' => true,
'ioNoUnusedLocals' => true,
'ioNoUnusedParameters' => true,
'ioNoFallthroughCasesInSwitch' => true,
'ioNoImplicitReturns' => true,
'ioEsModuleInterop' => true,
'ioAllowSyntheticDefaultImports' => true,
'ioForceConsistentCasing' => true,
'ioSkipLibCheck' => true,
'ioResolveJsonModule' => true,
'ioIsolatedModules' => true,
'ioVerbatimModuleSyntax' => true,
'ioAllowJs' => true,
'ioCheckJs' => true,
'ioDeclaration' => true,
'ioDeclarationMap' => true,
'ioSourceMap' => true,
'ioNoEmit' => true,
'ioIncludeComments' => true,
'ioIncludeHeader' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iotools.cloud/v1/tool/tsconfig-json-generator"
payload := strings.NewReader("{\n \"ioLib\": \"<string>\",\n \"ioRootDir\": \"<string>\",\n \"ioOutDir\": \"<string>\",\n \"ioBaseUrl\": \"<string>\",\n \"ioPaths\": \"<string>\",\n \"ioInclude\": \"<string>\",\n \"ioExclude\": \"<string>\",\n \"ioStrict\": true,\n \"ioNoImplicitAny\": true,\n \"ioStrictNullChecks\": true,\n \"ioStrictFunctionTypes\": true,\n \"ioStrictBindCallApply\": true,\n \"ioStrictPropertyInitialization\": true,\n \"ioNoImplicitThis\": true,\n \"ioAlwaysStrict\": true,\n \"ioNoUncheckedIndexedAccess\": true,\n \"ioNoImplicitOverride\": true,\n \"ioExactOptionalPropertyTypes\": true,\n \"ioNoUnusedLocals\": true,\n \"ioNoUnusedParameters\": true,\n \"ioNoFallthroughCasesInSwitch\": true,\n \"ioNoImplicitReturns\": true,\n \"ioEsModuleInterop\": true,\n \"ioAllowSyntheticDefaultImports\": true,\n \"ioForceConsistentCasing\": true,\n \"ioSkipLibCheck\": true,\n \"ioResolveJsonModule\": true,\n \"ioIsolatedModules\": true,\n \"ioVerbatimModuleSyntax\": true,\n \"ioAllowJs\": true,\n \"ioCheckJs\": true,\n \"ioDeclaration\": true,\n \"ioDeclarationMap\": true,\n \"ioSourceMap\": true,\n \"ioNoEmit\": true,\n \"ioIncludeComments\": true,\n \"ioIncludeHeader\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iotools.cloud/v1/tool/tsconfig-json-generator")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ioLib\": \"<string>\",\n \"ioRootDir\": \"<string>\",\n \"ioOutDir\": \"<string>\",\n \"ioBaseUrl\": \"<string>\",\n \"ioPaths\": \"<string>\",\n \"ioInclude\": \"<string>\",\n \"ioExclude\": \"<string>\",\n \"ioStrict\": true,\n \"ioNoImplicitAny\": true,\n \"ioStrictNullChecks\": true,\n \"ioStrictFunctionTypes\": true,\n \"ioStrictBindCallApply\": true,\n \"ioStrictPropertyInitialization\": true,\n \"ioNoImplicitThis\": true,\n \"ioAlwaysStrict\": true,\n \"ioNoUncheckedIndexedAccess\": true,\n \"ioNoImplicitOverride\": true,\n \"ioExactOptionalPropertyTypes\": true,\n \"ioNoUnusedLocals\": true,\n \"ioNoUnusedParameters\": true,\n \"ioNoFallthroughCasesInSwitch\": true,\n \"ioNoImplicitReturns\": true,\n \"ioEsModuleInterop\": true,\n \"ioAllowSyntheticDefaultImports\": true,\n \"ioForceConsistentCasing\": true,\n \"ioSkipLibCheck\": true,\n \"ioResolveJsonModule\": true,\n \"ioIsolatedModules\": true,\n \"ioVerbatimModuleSyntax\": true,\n \"ioAllowJs\": true,\n \"ioCheckJs\": true,\n \"ioDeclaration\": true,\n \"ioDeclarationMap\": true,\n \"ioSourceMap\": true,\n \"ioNoEmit\": true,\n \"ioIncludeComments\": true,\n \"ioIncludeHeader\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iotools.cloud/v1/tool/tsconfig-json-generator")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ioLib\": \"<string>\",\n \"ioRootDir\": \"<string>\",\n \"ioOutDir\": \"<string>\",\n \"ioBaseUrl\": \"<string>\",\n \"ioPaths\": \"<string>\",\n \"ioInclude\": \"<string>\",\n \"ioExclude\": \"<string>\",\n \"ioStrict\": true,\n \"ioNoImplicitAny\": true,\n \"ioStrictNullChecks\": true,\n \"ioStrictFunctionTypes\": true,\n \"ioStrictBindCallApply\": true,\n \"ioStrictPropertyInitialization\": true,\n \"ioNoImplicitThis\": true,\n \"ioAlwaysStrict\": true,\n \"ioNoUncheckedIndexedAccess\": true,\n \"ioNoImplicitOverride\": true,\n \"ioExactOptionalPropertyTypes\": true,\n \"ioNoUnusedLocals\": true,\n \"ioNoUnusedParameters\": true,\n \"ioNoFallthroughCasesInSwitch\": true,\n \"ioNoImplicitReturns\": true,\n \"ioEsModuleInterop\": true,\n \"ioAllowSyntheticDefaultImports\": true,\n \"ioForceConsistentCasing\": true,\n \"ioSkipLibCheck\": true,\n \"ioResolveJsonModule\": true,\n \"ioIsolatedModules\": true,\n \"ioVerbatimModuleSyntax\": true,\n \"ioAllowJs\": true,\n \"ioCheckJs\": true,\n \"ioDeclaration\": true,\n \"ioDeclarationMap\": true,\n \"ioSourceMap\": true,\n \"ioNoEmit\": true,\n \"ioIncludeComments\": true,\n \"ioIncludeHeader\": true\n}"
response = http.request(request)
puts response.read_body{
"tool": "<string>",
"tool_version": "<string>",
"outputs": {
"ioOutput": "<string>"
},
"credits_used": 123,
"request_id": "<string>",
"credits_remaining": 123
}{
"type": "https://iotools.cloud/docs/errors/validation_error",
"title": "Invalid request",
"status": 400,
"code": "validation_error",
"detail": "One or more inputs are invalid — see `fields`.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/invalid_api_key",
"title": "Invalid API key",
"status": 401,
"code": "invalid_api_key",
"detail": "Provide 'Authorization: Bearer <key>'.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/insufficient_credits",
"title": "Insufficient credits",
"status": 402,
"code": "insufficient_credits",
"detail": "This call costs 1 credit and 0 remain in this month's allowance.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/tool_not_allowed",
"title": "Tool not available over the API",
"status": 403,
"code": "tool_not_allowed",
"detail": "\"Background Remover\" is available on iotools.cloud but has no API endpoint.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/tool_not_found",
"title": "Tool not found",
"status": 404,
"code": "tool_not_found",
"detail": "No tool with that slug. See GET /v1/tools.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/payload_too_large",
"title": "Payload too large",
"status": 413,
"code": "payload_too_large",
"detail": "Request body exceeds this tool's size limit.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/rate_limited",
"title": "Rate limit exceeded",
"status": 429,
"code": "rate_limited",
"detail": "Too many requests. Retry in 30s.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/processing_error",
"title": "Tool failed to run",
"status": 500,
"code": "processing_error",
"detail": "The tool failed to run. Please try again.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/tool_disabled",
"title": "Tool temporarily disabled",
"status": 503,
"code": "tool_disabled",
"detail": "This tool is temporarily unavailable. Try again shortly.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Preset Profile
custom, node, node-cjs, react, nextjs, library, strictest target
ES5, ES2015, ES2016, ES2017, ES2018, ES2019, ES2020, ES2021, ES2022, ES2023, ESNext module
ESNext, ES2022, ES2020, ES2015, NodeNext, Node16, CommonJS, AMD, UMD, Preserve moduleResolution
Bundler, NodeNext, Node16, Node, Classic jsx
, react-jsx, react-jsxdev, react, preserve, react-native lib
rootDir
outDir
baseUrl
paths
include
exclude
strict — enable all strict type-checking options
noImplicitAny
strictNullChecks
strictFunctionTypes
strictBindCallApply
strictPropertyInitialization
noImplicitThis
alwaysStrict — emit "use strict"
noUncheckedIndexedAccess
noImplicitOverride
exactOptionalPropertyTypes
noUnusedLocals
noUnusedParameters
noFallthroughCasesInSwitch
noImplicitReturns
esModuleInterop
allowSyntheticDefaultImports
forceConsistentCasingInFileNames
skipLibCheck
resolveJsonModule
isolatedModules
verbatimModuleSyntax
allowJs
checkJs
declaration — emit .d.ts files
declarationMap
sourceMap
noEmit — let bundler emit files
Include inline comments explaining each option
Include descriptive header comment
Response
Tool output
Output-contract version for this tool. Currently "1" for all tools.
Show child attributes
Show child attributes
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Was this page helpful?