curl --request POST \
--url https://local.withsutro.com/applications/{applicationId}/attachments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-sutro-api-client: <api-key>' \
--data '
{
"projectLink": "<string>",
"pat": "<string>",
"type": "<string>"
}
'{
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}curl --request POST \
--url https://local.withsutro.com/applications/{applicationId}/attachments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-sutro-api-client: <api-key>' \
--data '
{
"projectLink": "<string>",
"pat": "<string>",
"type": "<string>"
}
'{
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Builder authentication and authorization
A unique identifier for the API Client making a request
Sutro supports a wide range of attachments that can be used to help design and generate an application:
A URL pointing to a Figma project
"https://figma.example.com/12345"
A Personal Access Token that has permission to access the given Figma project.
This will require the following scopes:
file_content:readfile_variables:readfile_metadata:read"b08631ad-a4ec-4c27-9995-01287e83d565"
"figma"The ID of the generated attachment
"b08631ad-a4ec-4c27-9995-01287e83d565"
Was this page helpful?