Skip to main content
POST
/
applications
/
{applicationId}
/
figma
/
generate-static-code
Generate static code from a Figma frame for an application
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
}

Authorizations

Authorization
string
header
required

Builder authentication and authorization

x-sutro-api-client
string
header
required

A unique identifier for the API Client making a request

Path Parameters

applicationId
string<uuid>
required

Body

application/json
fileKey
string
required

The Figma file key

Minimum string length: 1
frameId
string
required

The Figma frame ID to generate code from

Minimum string length: 1
accessToken
string
required

Figma personal access token

Minimum string length: 1

Response

Generation job has been queued

success
boolean
required

Whether the job was successfully queued