Skip to main content
Question

Invalid scope(s): files:read


Anne_UX

Hi there!

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?

This topic has been closed for replies.

7 replies

  • 2 replies
  • June 28, 2023

Looks like new scopes are required for Variables:
https://www.figma.com/developers/api#authentication-scopes

Can’t test it, tho, since I’m not on Enterprise package 😦


We can’t find the “file_read” or “file_variables:read” scope in the page.
What is wrong?


  • 2 replies
  • July 3, 2023

Perhaps 'tis the reason?


I confirmed that my account is Enterprise organization.


“Figma Organization” and “Figma Enterprise” are two different account types in Figma. How to determine which account type I have?


Anne_UX
  • Author
  • 1 reply
  • July 5, 2023

Thanks for all your answers! The Figma support already solved the mystery: It was indeed the problem that we only have the “Figma Organization” plan…


please How to view “Figma Organization” plan


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings