Plan access tokens
A plan access token provides API access scoped to an organization or enterprise plan. Unlike personal access tokens and OAuth apps, plan access tokens are not tied to an individual user account. They are managed by plan administrators.
Plan access tokens are available for Organization and Enterprise plans.
Note: Figma reserves the right to change how we support plan access tokens, which may affect pricing and usage. Figma will provide notice before making any pricing changes.
When to use plan access tokens
Personal access tokens and OAuth apps each have limitations for organization-level automation:
| Personal access token | OAuth app |
|---|---|
| Tied to an individual user | Designed for interactive workflows, not automation |
| Does not follow least privilege; can access anything the user can | Requires user authentication flows and token management/refresh |
| Max expiration of 90 days | Complex to set up for internal automation use cases |
| No way to guarantee full-organization visibility unless an admin generates the token |
Plan access tokens address these limitations:
- Tied to a plan, not an individual user
- Limited to resources in the plan
- Can be further limited with a resource allowlist
- Managed by plan administrators
- Max expiration of 1 year
- Better token rotation support
Supported endpoints
Endpoint support depends on the plan access token category. REST API tokens can be used with REST API endpoints, with the following exceptions:
- Endpoints that require the
file_code_connect:writescope - Endpoints that require the
file_variables:writescope - Endpoints that require the
file_comments:writescope - The
/v1/meendpoint - The
/v1/oembedendpoint
Figma CLI tokens have a fixed scope set for supported Figma CLI workflows, including Code Connect and codebase uploads. They aren't general-purpose REST API tokens.
Create a plan access token
Organization administrators can create plan access tokens on the developer hub at figma.com/developers/tokens:
Creating a plan access token requires multi-factor authentication. Unless your organization has Members must log in with SSO authentication method enabled, the administrator creating the token must set up Figma 2FA before they can generate a token.
-
Go to https://www.figma.com/developers/tokens
The page contains a table of plan access tokens for your organization. Optionally:
- You can use the tabs in the upper-left corner of the page to switch between REST API, npm registry, and Figma CLI. By default, the REST API tab is selected.
- You can use the dropdown menu in the upper-right corner of the page to switch organizations.
-
In the upper-right corner of the table, click Generate REST API token.
When you click the button, the Generate REST API plan access token modal opens. The modal has three pages: Describe your token, Choose scopes, and Choose resources.
-
On the Describe your token page of the modal:
- Enter a name for your token.
- Enter a description for your token.
- Select the expiration period (up to 365 days).
- Click Next.
-
On the Choose scopes page of the modal, select the scopes you want for your plan access token. Then, click Next.
-
On the Choose resources page of the modal, select what resources you want your plan access token to be able to access. There are two options:
-
All resources means your plan access token can be used to make requests for any resource in your organization. If you select the All resources option, the scopes you selected in step 4 still determine what actions can be taken with those resources.
-
Only selected resources lets you provide a list of links to resources in your organization, including files, projects, teams, and workspaces. For example:
https://figma.com/design/ABCDEFG123,
https://figma.com/files/123456789/project/123,
https://figma.com/files/123456789/team/456,
https://figma.com/files/123456789/workspace/789
-
-
Click Create.
When you click create, your plan access token appears in a new box. Click Copy to copy the plan access token to your clipboard.
Important: You should immediately store the plan access token in a secure location, such as a password vault or a secrets management tool. This is the only time your token secret is displayed.
Create a Figma CLI token
Organization administrators can create a Figma CLI token from the same developer hub:
- Go to https://www.figma.com/developers/tokens and select the Figma CLI tab.
- Click Generate Figma CLI token.
- Enter a name and description, then select an expiration period of up to 365 days.
- Click Create and immediately store the token secret in a secure location.
Figma CLI tokens use a fixed scope set and plan-wide authorization, so there are no scope or resource-selection steps.
Use a plan access token
After creating a plan access token, you use the token to make requests to the Figma API. You can do so by passing the token to the API in the X-Figma-Token header of your request.
Edit a plan access token
You can modify certain values for plan access tokens after you've created them, including:
- Name
- Description
For REST API tokens, you can also modify scopes and what resources the token can access. Fixed-category tokens such as Figma CLI tokens don't expose scope or resource controls.
You can also view and copy the id of your plan access token. However, you can't access the token secret again. The secret is only visible when you first create the plan access token.
To edit a plan access token:
-
In the table, hover over the row for the plan access you want to edit.
-
At the end of the row, click ..., and then Edit token.
The edit modal for your plan access token appears. You can use the modal to change the values mentioned earlier in this section.
Refresh a plan access token
You can refresh a plan access token as long as it is active and has not been revoked or expired. This applies to REST API, npm registry, and Figma CLI tokens.
To refresh a plan access token:
- Go to https://www.figma.com/developers/tokens
- In the table, hover over the row for the plan access you want to edit.
- At the end of the row, click ..., and then Refresh token.
- Review the new expiration date. The expiration is calculated from the current date, extended by the original token lifetime (for example, 30 days or 90 days). The previous secret continues to work for 24 hours.
- Click Refresh token. The new token secret is generated and available to copy.