Problem Description
I am trying to use the Figma API with a personal access token, but every request returns:
json
КопиранеРедактиране
{"status":403,"err":"Invalid token"}
I have tried the following:
- Generated multiple new tokens.
- Made sure to copy the entire token before leaving the page.
- Revoked all old tokens before generating a new one.
- Tested the token with the
me
endpoint:sh
КопиранеРедактиране
→ Still gettingcurl -X GET "https://api.figma.com/v1/me" -H "Authorization: Bearer MY_NEW_FIGMA_TOKEN"
"Invalid Token"
. - Tried with a new Figma account.
- Tried different internet connections (Wi-Fi, Mobile Data, VPN Off).
- Made sure the Figma file is public ("Anyone Can View").
Example Requests I Tried
1️⃣ Checking if my token is valid:
sh
КопиранеРедактиране
curl -X GET "https://api.figma.com/v1/me" -H "Authorization: Bearer MY_NEW_FIGMA_TOKEN"
Expected: JSON with account details
Got: "Invalid Token"
2️⃣ Checking if my token can access my file:
sh
КопиранеРедактиране
curl -X GET "https://api.figma.com/v1/files/MY_FILE_ID" -H "Authorization: Bearer MY_NEW_FIGMA_TOKEN"
Expected: JSON with file details
Got: "Invalid Token"