APImyCAD.com

A simple HTTP API for CAD file conversion — built for developers and the manufacturing industry.

Send a file, get a converted file back. No SDK, no account juggling — one API key, one POST. This is the v1 preview; more (DWG → PDF, DWG → SVG, STEP → STL, and a geometry /analyze endpoint) are on the roadmap. We only ship conversions we have verified on real production drawings.

Authentication

Every request under /v1 needs an API key in the X-API-Key header (or Authorization: Bearer <key>). Free keys include a small daily quota; the response returns X-Quota-Limit and X-Quota-Remaining headers.

Endpoints

POST/v1/dwg-to-dxf .dwg → .dxf Convert an AutoCAD DWG drawing to DXF.
POST/v1/mesh obj·fbx·stl·ply·dae → glb·gltf·obj·stl·ply·dae Convert a 3D mesh between formats. Set the target with ?to= (default glb).
GET/v1/status Your plan, today's remaining quota, and which converters are live.
GET/health Liveness check (no key required).

Request

Upload the file as multipart/form-data in a field named file. On success the response body is the converted file (with a Content-Type and Content-Disposition for the download). Errors return JSON: { "error": { "code": "...", "message": "..." } }.

Examples

curl

# DWG → DXF
curl -X POST https://apimycad.com/v1/dwg-to-dxf \
  -H "X-API-Key: YOUR_KEY" \
  -F "file=@drawing.dwg" \
  -o drawing.dxf

# STL → GLB
curl -X POST "https://apimycad.com/v1/mesh?to=glb" \
  -H "X-API-Key: YOUR_KEY" \
  -F "file=@part.stl" \
  -o part.glb

C#

using var http = new HttpClient();
using var form = new MultipartFormDataContent();
await using var fs = File.OpenRead("drawing.dwg");
form.Add(new StreamContent(fs), "file", "drawing.dwg");

using var req = new HttpRequestMessage(HttpMethod.Post,
    "https://apimycad.com/v1/dwg-to-dxf") { Content = form };
req.Headers.Add("X-API-Key", "YOUR_KEY");

using var res = await http.SendAsync(req);
res.EnsureSuccessStatusCode();
await File.WriteAllBytesAsync("drawing.dxf",
    await res.Content.ReadAsByteArrayAsync());

Status & error codes

CodeMeaning
200Success — body is the converted file.
400No file, or an unknown mesh target.
401Missing or invalid API key.
413File exceeds the size limit (25 MB DWG, 50 MB mesh).
415Unsupported input format for this endpoint.
422The file couldn't be converted (corrupt / unsupported variant).
429Daily quota reached — resets at 00:00 UTC.
503That converter is temporarily unavailable on this host.