Set up Figma REST API authentication with personal access tokens or OAuth 2.0.

MITAuto-check: notesBackend & APIs

Install Figma Install Auth

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill figma-install-auth -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace figma-install-auth --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/figma-install-auth .claude/skills/figma-install-auth && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
figma-install-auth
GitHub stars
2.8k
Token cost
~1.5k tokens
SKILL.md length
317 words
Files
7 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Set up Figma REST API authentication with personal access tokens or OAuth 2.0.

  • Works in 4 steps: Generate a Personal Access Token → Store Credentials Securely → Verify Connection → …
  • Connecting to the Figma API
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 4 more sections
  • Calls curl and jq; reaches api.figma.com and figma.com; needs FIGMA_CLIENT_SECRET and FIGMA_FILE_KEY

What it does

Figma Install Auth is an agent skill from jeremylongshore/tons-of-skills-marketplace. Set up Figma REST API authentication with personal access tokens or OAuth 2.0. Use when connecting to the Figma API, generating tokens, configuring scopes, or setting up OAuth flows for Figma integrations. Trigger with phrases like "install figma", "setup figma API", "figma auth", "figma personal access token", "figma OAuth".

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/errors.md`, `references/examples.md` and `references/generate-a-personal-access-token.md`). Compatibility notes: Designed for Claude Code

It sits in Backend & APIs, covering OAuth and OpenID Connect, REST APIs and Authentication. It works with Figma. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Connecting to the Figma API
  • Generating tokens
  • Configuring scopes
  • Setting up OAuth flows for Figma integrations

Example prompts

  • “install figma”
  • “setup figma API”
  • “figma auth”
  • “/figma-install-auth”

Requirements

  • Node.js
  • A credential in FIGMA_FILE_KEY
  • A credential in FIGMA_CLIENT_SECRET
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Generate a Personal Access Token
  2. Store Credentials Securely
  3. Verify Connection
  4. OAuth 2.0 (For User-Facing Apps)

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(npm:*)
    • Bash(curl:*)
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.figma.com
    • figma.com

    Also links to:

    • developers.figma.com
    • help.figma.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • FIGMA_CLIENT_SECRET
    • FIGMA_FILE_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Figma Install Auth loads about 1.5k tokens when it runs, and up to ~3.1k if it reads all its reference files. Until then it costs about 87 tokens; SKILL.md has 317 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~87
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:61
    # .env (NEVER commit to git)
  • NoteMentions a .env fileSKILL.md:66
    .env
  • NoteMentions a .env fileSKILL.md:67
    .env.local
  • NoteMentions a .env fileSKILL.md:68
    .env.*.local
  • NoteMentions a .env fileSKILL.md:142
    - Personal access token stored in `.env`

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 317 words, ~1,541 tokens.

Download SKILL.mdSave it as .claude/skills/figma-install-auth/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
figma-install-auth
description
Set up Figma REST API authentication with personal access tokens or OAuth 2.0. Use when connecting to the Figma API, generating tokens, configuring scopes, or setting up OAuth flows for Figma integrations. Trigger with phrases like "install figma", "setup figma API", "figma auth", "figma personal access token", "figma OAuth".
allowed-tools
Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep
compatibility
Designed for Claude Code
version
1.6.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, figma

Figma Install & Auth

Overview

Configure authentication for the Figma REST API. Figma supports two auth methods: Personal Access Tokens (PATs) for scripts and server-side tools, and OAuth 2.0 for apps that act on behalf of users. All requests go to https://api.figma.com.

Prerequisites

  • Figma account (Free, Professional, or Enterprise)
  • Node.js 18+ (for JS/TS integrations)
  • A Figma file key (the string after /design/ in a Figma URL)

Instructions

Step 1: Generate a Personal Access Token
  1. Open Figma > Settings > Account > Personal access tokens
  2. Click Generate new token
  3. Name the token and assign scopes:
ScopeAccessUse Case
file_content:readRead file JSONInspecting layers, extracting design tokens
file_content:writeModify filesProgrammatic design updates
file_comments:readRead commentsReview tooling
file_comments:writePost commentsAutomated feedback
file_dev_resources:readDev resourcesDev mode integrations
file_variables:readRead variablesDesign token sync
file_variables:writeWrite variablesToken pipeline
webhooks:writeManage webhooksEvent-driven automation
  1. Copy the token immediately -- it is shown only once
  2. PATs expire after a maximum of 90 days
Step 2: Store Credentials Securely
bash
# .env (NEVER commit to git)
FIGMA_PAT="figd_your-personal-access-token"
FIGMA_FILE_KEY="abc123XYZdefaultFileKey"

# .gitignore
.env
.env.local
.env.*.local
Step 3: Verify Connection
bash
# Test with curl -- should return your user profile
curl -s -H "X-Figma-Token: ${FIGMA_PAT}" \
  https://api.figma.com/v1/me | jq '.handle, .email'
typescript
// verify-figma.ts
const PAT = process.env.FIGMA_PAT!;

const res = await fetch('https://api.figma.com/v1/me', {
  headers: { 'X-Figma-Token': PAT },
});

if (!res.ok) throw new Error(`Figma auth failed: ${res.status}`);
const me = await res.json();
console.log(`Authenticated as ${me.handle} (${me.email})`);
Step 4: OAuth 2.0 (For User-Facing Apps)

Use OAuth when your app needs to act on behalf of other Figma users.

typescript
// 1. Redirect user to Figma authorization URL
const authUrl = new URL('https://www.figma.com/oauth');
authUrl.searchParams.set('client_id', process.env.FIGMA_CLIENT_ID!);
authUrl.searchParams.set('redirect_uri', 'https://yourapp.com/auth/callback');
authUrl.searchParams.set('scope', 'file_content:read,file_comments:write');
authUrl.searchParams.set('state', crypto.randomUUID());
authUrl.searchParams.set('response_type', 'code');
// Redirect: res.redirect(authUrl.toString());

// 2. Exchange code for access token (must happen within 30 seconds)
async function exchangeCode(code: string): Promise<string> {
  const res = await fetch('https://api.figma.com/v1/oauth/token', {
    method: 'POST',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    body: new URLSearchParams({
      client_id: process.env.FIGMA_CLIENT_ID!,
      client_secret: process.env.FIGMA_CLIENT_SECRET!,
      redirect_uri: 'https://yourapp.com/auth/callback',
      code,
      grant_type: 'authorization_code',
    }),
  });
  const { access_token, refresh_token, expires_in } = await res.json();
  // Store refresh_token securely for later use
  return access_token;
}

// 3. Refresh expired tokens
async function refreshToken(refreshToken: string): Promise<string> {
  const res = await fetch('https://api.figma.com/v1/oauth/refresh', {
    method: 'POST',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    body: new URLSearchParams({
      client_id: process.env.FIGMA_CLIENT_ID!,
      client_secret: process.env.FIGMA_CLIENT_SECRET!,
      refresh_token: refreshToken,
    }),
  });
  const { access_token } = await res.json();
  return access_token;
}

Output

  • Personal access token stored in .env
  • Successful GET /v1/me returning your user handle
  • (Optional) OAuth flow with token exchange working

Error Handling

ErrorStatusCauseSolution
403 Forbidden403Token lacks required scopeRegenerate PAT with correct scopes
Invalid token403Expired or revoked PATGenerate a new token (90-day max)
OAuth code expired400Code exchange took >30sRetry auth flow; exchange immediately
Invalid redirect_uri400Redirect URL mismatchMust match URL registered in Figma OAuth app settings
Rate limited429Too many auth attemptsWait for Retry-After header value

Examples

Reusable Figma Client Wrapper
typescript
// src/figma-client.ts
export function figmaFetch(path: string, options: RequestInit = {}) {
  const token = process.env.FIGMA_PAT;
  if (!token) throw new Error('FIGMA_PAT environment variable is not set');

  return fetch(`https://api.figma.com${path}`, {
    ...options,
    headers: {
      'X-Figma-Token': token,
      'Content-Type': 'application/json',
      ...options.headers,
    },
  });
}

// Usage
const file = await figmaFetch(`/v1/files/${fileKey}`).then(r => r.json());

Resources

Next Steps

After successful auth, proceed to figma-hello-world for your first real API call.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references) in skills/.curated/figma-install-auth of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/errors.md
  • references/examples.md
  • references/generate-a-personal-access-token.md
  • references/oauth-2-0-for-user-facing-apps.md
  • references/store-credentials-securely.md
  • references/verify-connection.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Figma Install Auth next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Figma Install Auth compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Figma Install Auth this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.5kAutomated safety check: NotesMIT
Soundcloud API Integrationsoundcloud/api259—~787Automated safety check: PassNone
Project Mapgjovanovicst/golang-auth-api130—~2.6kAutomated safety check: PassMIT
Discover APIrand/cc-polymath181—~1.5kAutomated safety check: PassMIT
Spring Security ConfigurationAmplicode/spring-skills128—~4.3kAutomated safety check: PassNone
Frappe Core APIImpertio-Studio/Frappe_Claude_Skill_Package189—~3.2kAutomated safety check: PassMIT

Similar skills

  • Integrates applications with the SoundCloud HTTP API using OAuth 2.1, OpenAPI, and developer docs.

    259 GitHub stars~787 tokensUpdated 10 days ago
    Backend & APIsAuto-check passed
  • Project Map

    gjovanovicst/golang-auth-api

    Complete module inventory of the Auth API project with file paths, dependencies, and architecture overview.

    130 GitHub stars~2.6k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • Discover API

    rand/cc-polymath

    Automatically discover API design skills when working with REST APIs, GraphQL schemas, API authentication, OAuth, JWT, rate limiting, API versioning, error handling, or endpoint design.

    181 GitHub stars~1.5k tokensUpdated 7 mo ago
    Backend & APIsAuto-check passed
  • Spring Security Configuration

    Amplicode/spring-skills

    Creates a Spring Security configuration class with authentication, authorization, and HTTP protection setup.

    128 GitHub stars~4.3k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Frappe Core API

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when building ERPNext/Frappe API integrations (v14/v15/v16) including REST API, RPC API, authentication, webhooks, and rate limiting.

    189 GitHub stars~3.2k tokensUpdated 24 days ago
    Backend & APIsAuto-check passed
  • Sf Connected Apps

    Jaganpro/sf-skills

    Salesforce Connected Apps and OAuth configuration with 120-point scoring.

    424 GitHub stars~1.9k tokensUpdated 5 mo ago
    Backend & APIsAuto-check: notes

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Figma Install Auth

What does Figma Install Auth do?

Set up Figma REST API authentication with personal access tokens or OAuth 2.0. Figma Install Auth is an agent skill from jeremylongshore/tons-of-skills-marketplace.0.

When should I use Figma Install Auth?

Figma Install Auth fits situations like: connecting to the Figma API; generating tokens; configuring scopes; setting up OAuth flows for Figma integrations.

How do I install Figma Install Auth in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill figma-install-auth -a claude-code`. Or copy the skill folder (skills/.curated/figma-install-auth in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/figma-install-auth in your project. Claude Code loads it when a task matches its description.

How do I install Figma Install Auth in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill figma-install-auth -a codex`. Or copy the skill folder (skills/.curated/figma-install-auth in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/figma-install-auth in your project. Codex loads it when a task matches its description.

Can I use Figma Install Auth in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill figma-install-auth -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/figma-install-auth, .gemini/skills/figma-install-auth, .github/skills/figma-install-auth and .opencode/skills/figma-install-auth in your project.

What does Figma Install Auth need to run?

Going by SKILL.md and its folder, Figma Install Auth needs the command-line tools its instructions call (curl and jq) and credentials named FIGMA_CLIENT_SECRET and FIGMA_FILE_KEY. Our summary lists: Node.js; A credential in FIGMA_FILE_KEY; A credential in FIGMA_CLIENT_SECRET. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep. Compatibility (from SKILL.md): Designed for Claude Code.

Does Figma Install Auth access the network?

SKILL.md names 4 domains. In commands or code: api.figma.com and figma.com; the agent is likely to contact these when it follows the instructions. As links in the text: developers.figma.com and help.figma.com. This is read from the text; nothing was executed.

Is Figma Install Auth safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Figma Install Auth use?

Figma Install Auth is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Figma Install Auth use?

About 1.5k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.6k tokens, read only when the agent opens those files.

What are the alternatives to Figma Install Auth?

Skills that share tags, products or a category with Figma Install Auth: Soundcloud API Integration (soundcloud/api, 259 stars), Project Map (gjovanovicst/golang-auth-api, 130 stars), Discover API (rand/cc-polymath, 181 stars) and Spring Security Configuration (Amplicode/spring-skills, 128 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Figma Install Auth?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.