Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to find authentication token and file_key #4

Open
marcmacias96 opened this issue Feb 21, 2019 · 7 comments
Open

How to find authentication token and file_key #4

marcmacias96 opened this issue Feb 21, 2019 · 7 comments
Labels
question Further information is requested

Comments

@marcmacias96
Copy link

what should be entered in file_key?
image

@aloisdeniel aloisdeniel added the question Further information is requested label Feb 21, 2019
@aloisdeniel
Copy link
Owner

Hi ! As stated in the Figma API documentation :

  1. Login to your Figma account.
  2. Head to the Account Settings from the top-left menu inside Figma.
  3. Find the Personal Access Tokens section.
  4. Click Create new token.
  5. A token will be generated. This will be your only chance to copy the token, so make sure you keep a copy of this in a secure place.

@osjunior
Copy link

osjunior commented Mar 29, 2019

Hi, I got the token but how do I get the file_key?
The documentation to get the file_key is poor.

@marcmacias96
Copy link
Author

You still can not use because on the page only generates the token and still do not understand what is the file_key

@ogarvey
Copy link

ogarvey commented Apr 4, 2019

"To get your file key, simply extract it from url."

If you get the web link to your figma file, it should look something like: https://www.figma.com/file/XXXXXXXXXXXXX/Sample-File

Where those XXXXX's are, is the file key :)

@aloisdeniel aloisdeniel changed the title Web app How to find authentication token and file_key Jul 11, 2019
@MKoposov
Copy link

MKoposov commented Aug 6, 2019

I have authentication token and file key.
I entered into the fields and click on the button.
Nothing happens
2019-08-06_16-10-06

@TxusBlack
Copy link

I have authentication token and file key.
I entered into the fields and click on the button.
Nothing happens
2019-08-06_16-10-06

Look the console for check the error.

@ajaygautam
Copy link

ajaygautam commented Nov 8, 2020

I am seeing a CORS error:

Access to XMLHttpRequest at 'https://api.figma.com/v1/files/xxxxxxxxxxxxxxxxxx?geometry=paths'
from origin 'https://aloisdeniel.github.io' has been blocked by 
CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Any idea how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants