curl --request POST \
--url https://local.withsutro.com/applications/{applicationId}/figma/generate-static-code \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-sutro-api-client: <api-key>' \
--data '
{
"fileKey": "<string>",
"frameId": "<string>",
"accessToken": "<string>"
}
'{
"success": true
}Enqueues a job to generate static HTML/CSS code from a Figma frame for this application. This is an async operation - use GET /applications//status to check the generation status, and GET /applications//webBundle to download the result when ready.
curl --request POST \
--url https://local.withsutro.com/applications/{applicationId}/figma/generate-static-code \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-sutro-api-client: <api-key>' \
--data '
{
"fileKey": "<string>",
"frameId": "<string>",
"accessToken": "<string>"
}
'{
"success": true
}Builder authentication and authorization
A unique identifier for the API Client making a request
Generation job has been queued
Whether the job was successfully queued
Was this page helpful?