Vercel Authentication¶
DRACO for Vercel authenticates using an API Token.
Required Permissions¶
DRACO requires read-only access to Vercel teams, projects, deployments, domains, and security settings. The API Token must have access to the target team scope.
Note
Vercel API Tokens inherit the permissions of the user that created them. Create the token as a dedicated member with the most read-only role of your plan: Enterprise Viewer (Enterprise) or Pro Viewer (Pro). Pro Viewer cannot see team settings, so the SAML, member and invitation checks may report missing data.
| Resource | Access | Description |
|---|---|---|
| Teams | Read | Required to list teams, members, and SSO configuration |
| Projects | Read | Required to list projects, environment variables, and deployment protection settings |
| Deployments | Read | Required to list deployments and protection status |
| Domains | Read | Required to list domains, DNS records, and SSL certificates |
| Firewall | Read | Required to read WAF rules, rate limiting, and IP blocking configuration |
API Token¶
Step 1: Create an API Token¶
- Log into the Vercel Dashboard.
-
Click the account avatar in the bottom-left corner and select "Settings".
-
In the left sidebar, click "Tokens".
- Under Create Token, enter a descriptive name (e.g., "DRACO Scan").
- Select the Scope: the team to be scanned, then All Projects (a token scoped to one project cannot read the team).
- Choose an Expiration and renew the token before it ends.
-
Click Create.
-
Copy the token immediately.
Warning
Vercel only displays the token once. Copy it immediately and store it securely. If lost, a new token must be created.
Step 2: Provide the Token to DRACO¶
Paste the token in the credentials form when adding the Vercel provider (see Getting started).
Team ID¶
One connection scans one team: DRACO asks for its Team ID (it starts with team_).
Locate the Team ID¶
- In the Vercel Dashboard, navigate to "Settings" for the target team.
- Scroll down to the Team ID section and copy the value.
Provide the Team ID to DRACO¶
Enter the Team ID as the provider's ID when adding the Vercel provider.
Best Practices¶
- Create a dedicated token for DRACO — Avoid reusing tokens shared with other integrations.
- Scope tokens to specific teams — When possible, limit token access to the team being scanned.
- Set token expiration — Use time-limited tokens and rotate them regularly.
- Use least privilege — Create the token as a member with Enterprise Viewer or Pro Viewer: the token has exactly that member's rights.
Troubleshooting¶
"Invalid or expired Vercel API token" Error¶
- Verify the API Token is correct and has not expired.
- Check that the token has not been revoked in the Vercel Dashboard under "Settings" > "Tokens".
"Insufficient permissions" Error¶
- Ensure the member that created the token still belongs to the team, with Enterprise Viewer or Pro Viewer.
- If scanning a specific team, verify the token scope includes that team.
"Team not found or not accessible" Error¶
This error occurs when the Team ID entered in DRACO does not match a team the token can access. Verify the Team ID is correct:
- Navigate to the team "Settings" in the Vercel Dashboard.
- Copy the exact Team ID value from the settings page.
"Rate limit exceeded" Error¶
Vercel applies rate limits to API requests. DRACO automatically retries rate-limited requests up to 3 times with exponential backoff. If this error persists:
- Move the scan to a quieter hour on the provider's schedule.
- Wait a few minutes and retry the scan.