Steps
Ship-ready bundles take a few deliberate moves, and each step keeps you in control of authentication, inputs, and outputs throughout the journey.1
Authenticate
Before making API calls, create a JWT token for secure authentication.If your setup supports single-command generation:Otherwise, follow Securing Connections to create both a JWT token and mTLS certificate.
2
Create a new project
3
Create an application
<PROJECT_ID> with the ID from step 2.Response (HTTP 201)4
List Figma pages and frames
Retrieve the structure of your Figma file to locate frame IDs for code generation.Replace:
<APPLICATION_ID>— application ID from step 3<FIGMA_URL>— your Figma file link (e.g.https://www.figma.com/design/abc123/MyFile)<FIGMA_PAT>— your Figma personal access token
5
Generate code from a Figma frame
Trigger the code generation for a specific frame in your Figma file.Replace:The request creates a background job.
<APPLICATION_ID>— application ID from step 3<FIGMA_FILE_KEY>— from your Figma URL (/file/<key>/...)<FRAME_ID>— from step 4<FIGMA_PAT>— your Figma personal access token
6
Check generation status
Poll the application status endpoint to monitor the generation progress.Possible responsesStatus: Generating — Application generation in progressStatus: Active — Generation completeThe application is ready. Proceed to step 7 to download the bundle.Status: Failed — Generation failed
7
Download the web bundle
Once the application status is Replace
Active, download the generated code as a zip file.<APPLICATION_ID> with the application ID from step 3.Response- Content-Type:
application/zip - Content-Disposition:
attachment; filename="application-<APPLICATION_ID>-web-bundle.zip" - Body: Binary zip file containing the generated HTML, CSS, and assets
You now have an exportable frontend bundle—unzip it, drop it into your hosting pipeline, and show it off!