Skip to main content
Question

REST API: How can I access a "Password Protected" file using a Figma API by passing Password?

  • December 26, 2025
  • 0 replies
  • 9 views

Shivprasad Roul

Hi everyone,

I am building an integration using the Figma REST API. I have a scenario where I need to fetch data (GET /v1/files/:key) from a file that has Password Protection enabled (Shared via "Anyone with the link + Password").

Currently, when my script attempts to access these files using a valid X-Figma-Token, I receive a 403 Forbidden error.

I have looked through the REST API documentation but cannot find a parameter or header to pass the file password.

I noticed that when accessing via the browser, the client makes a request to an internal endpoint (https://www.figma.com/api/files/:key/check_password) which sets a session cookie. However, since the REST API relies on stateless tokens rather than cookies, this internal method doesn't seem compatible with standard API automation.

My Questions:

  1. Is there an undocumented header (e.g., X-Figma-Password) or query parameter supported by the public v1 API to access password-protected files?

  2. If not, is the only supported workaround to explicitly invite the email address associated with my Personal Access Token to the file?

Any guidance on handling this auth flow programmatically would be appreciated.