curl --request GET \
--url https://local.withsutro.com/applications/{applicationId}/figma/structure \
--header 'Authorization: Bearer <token>' \
--header 'x-sutro-api-client: <api-key>'{
"fileName": "<string>",
"pages": [
{
"id": "<string>",
"name": "<string>",
"frames": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>"
}
]
}
]
}Retrieves the structure of a Figma file including all pages and frames. Useful for letting users select which frame to generate code from.
curl --request GET \
--url https://local.withsutro.com/applications/{applicationId}/figma/structure \
--header 'Authorization: Bearer <token>' \
--header 'x-sutro-api-client: <api-key>'{
"fileName": "<string>",
"pages": [
{
"id": "<string>",
"name": "<string>",
"frames": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>"
}
]
}
]
}Builder authentication and authorization
A unique identifier for the API Client making a request
The Figma project URL
Figma personal access token
Was this page helpful?