It looks like the token endpoint: https://www.figma.com/api/oauth/token
is returning an undocumented user_id
field which is different from the id
on the users endpoint: /v1/me
Is this an internal ID that shouldn’t be exposed, or should it be documented?
POST https://www.figma.com/api/oauth/token?
client_id=:client_id&
client_secret=:client_secret&
redirect_uri=:callback&
code=:code&
grant_type=authorization_code
{
"access_token": <TOKEN>,
"expires_in": <EXPIRATION (in seconds)>,
"user_id": <ID>,
"refresh_token": <REFRESH TOKEN>
}