/healthzCheck service availability without authentication.
Convert files or optimize images from your editor, server, or CLI. One result downloads directly; two or more results return one ZIP archive.
Use a Bearer token for conversion requests. The API returns the converted file as the response body.
/healthzCheck service availability without authentication.
/api/convertList the currently supported source and target formats.
/api/convertUpload one file with file and select its output with to.
/api/convert/batchRepeat files and to fields. One file returns directly; two or more return a ZIP with successful results and a manifest.
/api/image/formatsList image formats, limits, and optimization options.
/api/image/optimizeResize, re-encode, compress, strip metadata, and return an optimized image.
Keep the token in an environment variable and let your shell handle the output file.
export GOCOOLS_API_TOKEN="gc_your_token_here"
curl --request POST "https://apiconvert.gocools.com/api/convert" --header "Authorization: Bearer $GOCOOLS_API_TOKEN" --form "file=@document.docx" --form "to=pdf" --output document.pdfcurl --request POST "https://apiconvert.gocools.com/api/convert/batch" --header "Authorization: Bearer $GOCOOLS_API_TOKEN" --form "files=@invoice.docx" --form "to=pdf" --form "files=@photo.png" --form "to=jpg" --output converted-files.zipcurl --request POST "https://apiconvert.gocools.com/api/image/optimize" --header "Authorization: Bearer $GOCOOLS_API_TOKEN" --form "file=@photo.jpg" --form "format=webp" --form "quality=82" --form "max_width=2400" --output photo.webpconst form = new FormData();
form.append("file", await fs.openAsBlob("document.docx"));
form.append("to", "pdf");
const response = await fetch("https://apiconvert.gocools.com/api/convert", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.GOCOOLS_API_TOKEN}` },
body: form,
});
await fs.writeFile("document.pdf", Buffer.from(await response.arrayBuffer()));