Skip to main content
Question

Invalid scope(s): files:read

  • June 28, 2023
  • 7 replies
  • 4260 views

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

  • 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?


  • 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
  • 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