Skip to main content
GET
/
applications
/
{applicationId}
/
figma
/
structure
Get Figma file structure (pages and frames) for an application
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>"
        }
      ]
    }
  ]
}

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

Query Parameters

The Figma project URL

pat
string
required

Figma personal access token

Response

Figma file structure

fileName
string
required

The name of the Figma file

pages
object[]
required

List of pages in the Figma file