My colleagues and I came across a problem with the REST API yesterday. We’re trying to get all published variables from a Figma file and used the sandbox in the documentation: https://www.figma.com/developers/api#variables-endpoints
The response is
{
"status": 403,
"error": true,
"message": "Invalid scope(s): files:read, file_comments:write, file_dev_resources:read, file_dev_resources:write, webhooks:write. This endpoint requires the file_read or file_variables:read scope"
}
Any ideas on that? Why does the automatically generated access token ask for wrong scopes? Is it a bug?