Figma API: API Design & Integration Surface
Docs-backedREST API at api.figma.com/v1. Resources: files, nodes, components, component_sets, styles, variables, comments, versions, projects, webhooks. GET /v1/files/{fileKey} returns the full file document tree (JSON, potentially large for big files). GET /v1/files/{fileKey}/nodes?ids={nodeIds} returns specific nodes by ID. GET /v1/files/{fileKey}/components returns all published components. GET /v1/files/{fileKey}/variables/local returns all variables (design tokens) in the file. POST /v1/files/{fileKey}/comments adds a comment. GET /v1/files/{fileKey}/images exports nodes as PNG/JPG/SVG/PDF. Pagination via cursor for large result sets.