Skip to main content
Question

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

  • September 4, 2024
  • 1 reply
  • 407 views

Chris_Mackintosh

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.

This topic has been closed for comments

1 reply

James_Yang
Figmate
  • Figmate
  • 82 replies
  • September 4, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings