figma-api-demo icon indicating copy to clipboard operation
figma-api-demo copied to clipboard

Trying to use postman to make simple call failing https://api.figma.com/v1/me

Open MikeCarlo opened this issue 2 years ago • 1 comments

When I try to make a figma call for the

get https://api.figma.com/v1/me 

as described in the following documentation I get a 400 bad request.

I am aware that I need a header item for the X-Figma-Token object. I am using Postman to make this call, and it fails every time.

For reference I created my access token and the call does work successfully when I make a call using a curl inside studio code. Note this code is made from postman. so I am pretty sure the actual curl command works.

curl --location 'https://api.figma.com/v1/me' --header 'X-Figma-Token: <myAccessTokenHere>'

Anybody been able to get this api to work when making the following call https://api.figma.com/v1/me from postman?

MikeCarlo avatar May 18 '23 21:05 MikeCarlo

CC: @coreyward for maybe some help here.

MikeCarlo avatar May 18 '23 22:05 MikeCarlo