Open your Figma account settings, click Security, and select Generate new token. Name the token after the tool that will use it, set an expiration (90 days is a safe default), choose only the scopes you need — File content: Read covers most export and API integrations — then click Generate token and copy it immediately. Figma only shows the token value once.
Figma personal access tokens let external tools authenticate with the Figma REST API. Here is where to create one, which scopes to pick, and how to store it safely.