Skip to main content

About Figma

Figma is a collaborative interface-design platform for design files, prototyping, and design systems. Serval connects to Figma in one of three ways: with a Figma OAuth app that you own (recommended), where Serval refreshes the access token itself so nothing expires, with a personal access token that you paste in and rotate by hand, or with a plan access token an organization admin creates (Organization and Enterprise plans). A personal access token or OAuth app connection acts as the Figma user who authorized it; a plan access token acts as the organization. Every connection is limited by the scopes granted, and Serval only ever sends credentials to one host: api.figma.com. Authentication: Your own Figma OAuth app (authorization code with automatic refresh), or a personal or plan access token (API key). Data sync: On-demand only. There is no background sync, resource import, or scheduled polling - Serval calls Figma only when a workflow or health check runs.

What the Figma integration enables

Anything defined in the Figma API can be accessed through Serval.

Get your credentials

Connect in Serval

Add a new Figma connection from your Serval integrations page. The connect dialog offers two options.
  1. Copy the Callback URL into your Figma app if you haven’t already.
  2. Enter an optional Display name (defaults to Figma (<email>) with the authorizing user’s email), the Client ID, and the Client secret.
  3. Tick the scopes Serval may request. current_user:read is always included. Every selected scope must also be enabled on your Figma app.
  4. Click Connect Figma and approve the request on Figma’s consent screen. You have 10 minutes from clicking Connect; after that the attempt fails with “Invalid or expired OAuth state” and you resubmit.
On success Serval stores the tokens encrypted and refreshes the access token automatically before it expires.
Switching an existing token connection to the OAuth app: open the connection and click Reconnect, then choose Connect with your Figma OAuth app. The connection is converted in place - its roles, policies, and workflow bindings stay - and the old token is discarded. The reverse isn’t offered: an OAuth-app connection can’t be switched back to a token without deleting it.
When you reconnect an OAuth-app connection, the Display name, Client ID, and scopes are pre-filled from the existing setup. The Client secret is never stored where the dialog can read it, so re-enter it (or regenerate it in Figma if it’s lost).

Verifying the connection

Figma connections include the built-in health check Test Figma Connection, which asks Figma which user the connection acts as. Plan access tokens can’t answer that question, so when Figma refuses it with a 403 for a reason other than an invalid or expired token, the check falls back to reading one organization activity-log event, which needs an Enterprise plan and the org:activity_log_read scope. The check runs automatically when you connect and can be run again from the connection’s page; when Health Alerts are enabled it also runs on the daily schedule.
  • Success: Successfully connected to Figma as "<email or handle>".
  • Success (plan access token): Successfully connected to Figma with a plan access token.
  • Failure: Unable to connect to Figma. The access token may have expired or been revoked, or the OAuth app may have been unpublished; reconnect the integration.
  • Failure when the activity-log fallback is also refused: Unable to connect to Figma. The access token may have expired or been revoked, or the OAuth app may have been unpublished; reconnect the integration. If this is a plan access token, Figma lets Serval verify it only on an Enterprise plan with the org:activity_log_read scope. A temporary Figma error during the fallback reports the plain failure message instead.
A passing check proves the credential is valid. If a workflow still fails on a specific file, project, or team, the authorizing Figma user can’t see that resource, or the call needs a scope or Figma plan the connection doesn’t have.

Gotchas and troubleshooting

Every time a user authorizes your Figma app, or Serval refreshes the token, Figma invalidates that user’s previous access token for the same app. Connect Figma once per authorizing user per Figma app; if a second Serval workspace needs its own connection, create a second Figma app or authorize with a different account. Never point a staging or test environment at the app a production connection uses.
The connection acts as the authorizing user and inherits that user’s seat. Team webhooks require a team admin, and Figma limits View seats and other non-editor seats to a few file reads per month, so authorize as a team admin with a Full or Dev seat. If that person leaves the team, the tokens stop working and the connection must be reconnected by someone else.
Serval expects a Private app. Figma blocks Public apps from the team projects and project files endpoints and puts them through a review queue, so publishing the app as Public removes “Browse teams and projects” from the connection.
For a personal-token connection, the token has expired (90-day cap) or was revoked: reconnect with a new token, or switch to an OAuth app. For a plan-token connection, the token has expired (up to 1 year, set at creation) or was revoked: an organization admin refreshes or regenerates it in Figma, then reconnect. For an OAuth-app connection, the app was unpublished, its secret rotated, or the authorizing user lost access: reconnect. Serval passes Figma’s error text through where it has one.
These areas are gated by Figma, not Serval: variables need Enterprise, activity logs need an Enterprise plan and an organization-scoped credential that an OAuth-app or personal-token connection can’t hold, payments only cover plugins, widgets, and Community files you own. Nothing on the Serval side changes this.
Figma identifies files by a file key, the string right after “file/” or “design/” in the file’s web address, not the full URL. Node, team, and project IDs are separate values.
Serval verifies a plan access token by reading one organization activity-log event, which needs an Enterprise plan and the org:activity_log_read scope. On an Enterprise plan, an organization admin can add the scope by editing the token at figma.com/developers/tokens, then run the check again. On an Organization plan the check can’t pass, even though the token works for the calls its scopes allow.
For access-token connections Serval derives an internal identifier from the Instance name once, at creation. Two token connections in the same Serval workspace with the same name (or both left blank) resolve to the same connection, so give each a distinct name; leaving the name blank when rotating a token keeps the existing one. OAuth-app connections are keyed on the authorizing Figma user instead.
Figma tracks limits per authorizing user, per app, and per the plan of the file being read. Files kept in drafts or a free space get Starter limits with multi-day retry windows; keep the files your workflows touch inside the paid team.

Need help? Contact support@serval.com for assistance with your Figma integration.