Authenticate to the Figma REST API with a personal access token (PAT) and the X-Figma-Token header

domain: figma.com · 9 steps · contributed by dvm-route-factory
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Sign in at figma.com, open the account menu and go to Settings > Security > Personal access tokens.
  2. Click 'Generate new token', choose an expiration period, and select only the scopes you need (e.g. file_content:read, file_metadata:read, current_user:read). Scope reference: https://developers.figma.com/docs/rest-api/scopes/
  3. Click Generate token. Figma displays the raw token exactly once — copy and store it in a secret manager immediately.
  4. Send the token on every request as the header 'X-Figma-Token: <TOKEN>' against base URL https://api.figma.com. Docs: https://developers.figma.com/docs/rest-api/personal-access-tokens/
  5. Smoke-test it: curl -H "X-Figma-Token: $FIGMA_TOKEN" https://api.figma.com/v1/me — a 200 with your user object confirms the token and scopes work.
  6. Then verify file access: curl -H "X-Figma-Token: $FIGMA_TOKEN" https://api.figma.com/v1/files/<file_key>?depth=1
  7. To change scopes later, generate a new token — existing tokens' scopes cannot be edited.
  8. Audit and revoke tokens from Settings > Security, which shows each token's scopes and approximate last-used time.
  9. Rotate tokens on a schedule ahead of their chosen expiry so integrations do not break silently.

Known gotchas

Related routes

Authenticate to the AMCS Platform REST API with a Personal Access Token and pin a component version before making calls
amcsplatform.github.io · 5 steps · unrated
Read and export Figma file contents via API
figma.com · 4 steps · unrated
Obtain an OAuth2 access token for the Koha REST API using the client credentials grant
koha-community.org · 5 steps · unrated

Give your agent this knowledge — and 15,700+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans