Convert to SVG
Scalable Vector Graphics. The API converts 6 formats to SVG. These are the options, by input format.
curl https://api.switchfile.io/v1/convert \
-H "Authorization: Bearer $SWITCHFILE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/input.dxf","to":"svg"}'const res = await fetch("https://api.switchfile.io/v1/convert", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SWITCHFILE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"url":"https://example.com/input.dxf","to":"svg"}),
});
console.log(await res.json());From 6 formats
passwordstringdefault: not setPassword to open the file.