REST API Access token returning status":403,"err":"Invalid token

curl -H “Authorization: Bearer your_actual_Figma_token” https://api.figma.com/v1/me

Or

curl -H “Authorization: Bearer your_personal_access_token” https://api.figma.com/v1/files/your_file_key

Result in status":403,“err”:"Invalid token

Generated new tokens to test, same result.

Hi, personal access tokens go in the X-Figma-Token header, not the Authorization header.

You can see example curl commands in the side panel: https://www.figma.com/developers/api#get-me-endpoint

1 Like