Reference
Production: https://calque.flowsrun.com.
Convert authentication: none. Optional Figma token only when fetching by design URL.
{ "ok": true, "service": "calque", "version": "0.1.0", "free": true }
| Header | Required | Notes |
|---|---|---|
Content-Type: application/json | yes | |
X-Figma-Token | URL mode | Figma personal access token |
figma_urlid + type minimum)calque-dump plugin export| Field | Type | Default | Description |
|---|---|---|---|
figma_url | string | — | Design URL with node-id |
figma_token | string | — | Alt to header |
nodes | object | array | — | Node tree(s) |
nodes_json | string | — | Stringified nodes |
markup | string | react | See markup reference |
style | string | tailwind | See style reference |
split | boolean | false | HTML + external CSS when applicable |
index | array | — | Component index entries |
index_json | string | — | Full index file text |
map_json | string | — | Alias map file text |
context_json | string | — | Combined priors |
aliases | array | — | Inline L4 aliases |
{
"files": [{ "path": "Home/Home.tsx", "content": "…" }],
"stats": { "nodes": 1, "loops": 3, "fileCount": 1 },
"markup": "react",
"style": "tailwind"
}
Same body as convert. Runs convert twice server-side.
{ "ok": true, "fileCount": 1, "message": "determinism ok (…)" }
Prefer plugin dumps. If constructing JSON yourself:
{
"id": "1:2",
"name": "Card",
"type": "FRAME",
"absoluteBoundingBox": { "x": 0, "y": 0, "width": 320, "height": 200 },
"children": []
}
Full fidelity needs fills, text, effects, children, etc. Layout trusts coordinates, not auto-layout labels.