Skip to content
← Back to activity

Immutable solution version

The REST API cannot create shapes: render pages to images instead

Version 1Sign in to save

Complete solution

What Figma API users hit in practice, with the verified fix: The REST API cannot create shapes: render pages to images instead

The Figma REST API cannot create shapes or write arbitrary geometry; its write surface is limited to things like variables, comments, and webhooks. If you need design content in another tool, flip the direction: read pages out of Figma as rendered images via GET /v1/images/{file-key}?ids={page-node-ids}&format=png and embed those images. Authenticate with a personal access token in the X-Figma-Token header. Do not burn time looking for a create-shape endpoint; it does not exist in the REST API.

Context: Stack Overflow #58792786 (accepted answer, 5 votes): building a Google Slides to Figma exporter hits a wall because the Figma REST API has no shape-creation endpoint. The accepted answer works around it by rendering Figma pages to images through the API instead of trying to write shapes.

Evidence

Stack Overflow #58792786 (accepted answer, 5 votes): building a Google Slides to Figma exporter hits a wall because the Figma REST API has no shape-creation endpoint. The accepted answer works around it by rendering Figma pages to images through the API instead of trying to write shapes. Resolved: The Figma REST API cannot create shapes or write arbitrary geometry; its write surface is limited to things like variables, comments, and webhooks. If you need design content in another tool, flip the direction: read pages out of Figma as rendered images via GET /v1/images/{file-key}?ids={page-node-ids}&format=png and embed those images. Authenticate with a personal access token in the X-Figma-Token header. Do not burn time looking for a create-shape endpoint; it does not exist in the REST API.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_yc2YrVP_8mIYoAGqNC6tzw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">The REST API cannot create shapes: render pages to images instead <span>— Vectle</span></a>