Skip to content
Ingrid Kovarová

Dec 3, 202614 min read

You create a bearer access token in your account settings and send it in the Authorization header of every request to the Vercel REST API at api.vercel.com, whether the call comes from a script you wrote yourself or from an automation tool such as Activepieces.

A small bearer access token card clipped to a request sheet beside its Authorization header line, the sheet being handed to…

Access the Vercel API

What the REST API lets you do

Each job maps to an endpoint group, so the list below doubles as a checklist for how narrowly you can scope a token.

  • Create and inspect deployments through the deployments endpoints
  • Create, update and delete projects through the projects endpoints
  • Attach and verify domains through the domains endpoints
  • Read, add and edit environment variables on a project
  • Read build and runtime logs for a deployment

I have no confirmed plan-by-plan figures to quote here, so check Vercel's current pricing and developer documentation before you design around a particular tier.

To avoid hand-writing requests in another language, generate a client instead: Vercel publishes a TypeScript SDK and an OpenAPI description of the REST API.

If you'd rather not maintain code at all, you don't hire for this, you describe it: tell the built-in chat in Activepieces which Vercel call you need and it publishes a live flow in your account, the same kind of flow you could build by hand in the editor.

It sits under the same RBAC and audit logs as every other flow, and each run leaves a trace anyone can read, which is how MoneyGram and Moneypenny run it in production.

Everything below works on Activepieces' free plan. Start without code or a credit card.

Create a Vercel access token and authenticate

Create a token scoped to one team, send it as a Bearer header, and add teamId or slug to team requests. Wrong scope and a missing team ID are where most calls fail.

Six steps take you from the Tokens page to a first working call, and each can go wrong, meaning one misstep blocks you entirely.

  1. Open your account settings and go to the Tokens page.
  2. Name the token and choose its scope, limited to one team.
  3. Set an expiry, anywhere from one day to one year.
  4. Copy the token once; it's not shown again.
  5. Send it as Authorization: Bearer <token>.
  6. Add teamId or slug to requests that touch team resources.

A settings page with a Tokens page: a name field, a scope dropdown limited to one team, an expiry calendar, and one token…

Create the token and choose its scope

Name the token after the system that uses it, not the person who made it. When it fails at 2am, the name is how the on-call engineer finds who owns it.

When a token is scoped to the wrong team, it returns authorization errors that look like bugs in your code.

Expiry runs from one day to one year, and the long end means a forgotten token outlives the employee who created it. Copy it once into a secrets manager.

Send Authorization: Bearer <token> on every request, and keep it out of URLs and logs, since anything that records the request records the credential.

Without teamId or slug, a call resolves against your personal account, not the team. It returns empty lists or not-found responses, which look like missing data rather than a missing parameter. Put the team identifier in the shared client so no call can omit it.

For your own automation, a personal token fits. If other Vercel customers will connect your product to their accounts, build an OAuth integration so each customer grants access and revokes it themselves. The details are in the Vercel REST API documentation.

A workflow automation interface showing the execution and configuration of an HTTP request that revokes an API token using…

A minimal Vercel API request

List your projects with one authenticated GET to api.vercel.com, sending the token as a bearer header and the team ID as a query parameter.

curl --request GET \
 "https://api.vercel.com/v10/projects?teamId=$VERCEL_TEAM_ID" \
 --header "Authorization: Bearer $VERCEL_TOKEN"

The same call in the official TypeScript SDK, @vercel/sdk:

import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({ bearerToken: process.env.VERCEL_TOKEN });

const result = await vercel.projects.getProjects({
 teamId: process.env.VERCEL_TEAM_ID,
});
console.log(result.projects, result.pagination);

You get back an object with a projects array, one entry per project with its ID, name and framework settings, and a pagination object.

Its count field tells you how many items this page returned. Its next field is a timestamp, or null on the last page.

Pass next back as the until query parameter to fetch the following page. If you ignore it, you silently see only the first page, and any project beyond it looks like it doesn't exist.

Long scroll running off the desk while a person reads only the start

Keep the token and team ID in named variables rather than pasted into each call. The "New variable" dialog below shows the pattern in a workflow tool: a name and a value entered once, then reused without exposing the secret in every step.

Endpoint shapes checked against the Vercel REST API endpoint reference on 2026-12-03.

Vercel API endpoints compared by task and cost

You won't find a per-call charge. Vercel doesn't bill the REST API per call; the cost comes from the resources your calls create or consume, which are metered through your plan's usage.

The table shows what each endpoint group does and which part of the bill it touches.

Endpoint group What it does Typical use Billing
Deployments Creates, lists, inspects, cancels and promotes deployments Triggering a release from CI, rolling back a bad one Plan usage: builds and the traffic the deployment serves
Projects Creates and configures projects and their settings Provisioning a project per customer or branch strategy Plan usage: project limits and what the project runs
Domains Adds, verifies and removes domains and DNS records Attaching a custom domain after provisioning Plan usage; domain purchases are charged separately
Environment variables Reads, creates, updates and deletes project variables Rotating a secret across projects No direct charge; changes take effect on the next deployment
Logs Retrieves build and runtime log output Pulling a failed build's output into an alert Plan usage; retention and volume depend on your plan
Teams Lists teams and members, manages membership Finding the team ID your other calls need No direct charge; seats follow your plan
Firewall Reads and changes firewall rules and settings Blocking an abusive IP range during an incident Plan usage; available features depend on your plan

Read the billing column as a map of where spend can appear, not as a price list. A script that creates a deployment on every commit costs nothing as an API call, but it adds builds to your usage.

Confirm the current terms on the Vercel pricing page, last checked 2026-12-03.

Easier to see it running than to read about it: set it up free, no card.

Vercel API rate limits by endpoint and plan

1,200 requests a minute for team reads, 60 for deployment creates: that is the span of the limits, so deployment operations will be the first to saturate. The sources cited here publish no separate per-plan figures for these endpoint groups.

How Vercel API rate limits differ by endpoint group

Documented limits and the headers that report them

The more consequential the action, the lower the ceiling, so the call you most need to succeed has the least headroom.

Polling a dashboard every few seconds is safe, since team API reads allow 1,200 requests a minute, according to apis.io. Deployment reads allow 500, so a status poller covering many projects can exhaust that quickly.

The more consequential the action, the lower the ceiling, so the call you most need to succeed has the least headroom.

Because env var writes allow 120, a bulk secrets sync will stall midway and leave environments half-updated. Deployment creates allow 60, so a CI job that fans out across a monorepo can hit the wall within a single minute.

Reading the rate-limit headers

You can see where you stand in the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers. Past the limit you get a 429.

Vercel's own API documentation is the authority, so confirm any figure there before you size a job around it. Both apis.io and docs.popmcp.com are third-party aggregators, last checked 2026-12-03.

Handle Vercel API 429 rate limit responses

On a 429, wait until the time in X-RateLimit-Reset, then retry with exponential backoff and jitter. A fixed-interval retry loop from several workers all wake at once and trip the limit again, and that's the failure that pages someone at 2am.

Cache deployment reads for a few seconds, since status rarely changes faster than that.

Collapse env var writes into one pass per project instead of one per variable. Queue deployment creates so only a controlled number run each minute, which keeps you inside the 60-a-minute ceiling.

Fix Vercel API errors

When a call fails, check seven status codes first, since most Vercel API failures resolve to one of them. Each has a usual cause you can check before anyone is paged: the table below pairs every code with that cause and its fix.

Status code Usual cause Fix
400 Malformed body or invalid parameter Validate the payload against the endpoint's documented schema before sending
401 Missing, expired or revoked token Issue a new token and update the stored secret
403 Wrong token scope or missing teamId Recreate the token with the right scope; add teamId to the request
404 Wrong teamId or resource ID Confirm the ID belongs to the team you are querying
409 Conflict with existing state, such as a duplicate resource Read current state, then decide whether to update or skip
429 Rate limit exceeded Back off using the rate-limit headers
5xx Fault on Vercel's side Retry with backoff; stop and escalate if it persists

Read the table as a triage order: authentication and scope first, identifiers second, traffic third.

401 and 403: token, scope and team

If you get a 401, the token itself is rejected, so look at whether it was revoked or has expired.

A 403 means Vercel knows who you are and refuses anyway, which usually points to a scope that doesn't cover the resource or a request that omits teamId.

Call team-owned projects without it and they often fail here, so the failure looks like a permissions problem when it's an addressing one.

When a project you can see in the dashboard returns a 404, the teamId usually points to a different team than the one that owns it. A 400 is your payload; fix it at the caller rather than retrying.

Never retry a 429 blindly. Read the rate-limit headers, wait until the window resets, then resume. For 5xx, retry with increasing delays and a cap on attempts. A 409 shouldn't be retried at all, because the same request will conflict again.

Activepieces workflow builder showing a multi-step automation with the Send HTTP request step selected and its…

Token hygiene in production

Decide who owns each token before it ships: the person who created it often leaves, and their departure shouldn't silently break deployments.

Store tokens in a secrets manager, never in source or logs. If a token leaks, revoke it immediately and issue a replacement. Give tokens an expiry and rotate them on a schedule, so a rotation is routine rather than an emergency at 2am.

A workflow execution interface showing a completed two-step Square OAuth token revocation flow with HTTP configuration

Call the Vercel API without code using Activepieces

You can call Vercel from Activepieces, an automation tool, through its Vercel integration or a plain HTTP step carrying a bearer token. It suits low-volume jobs where the token sits in one connection, so a scheduled rotation means editing one place, not every script.

The Vercel integration is one of 751 counted in Activepieces' open source monorepo, whose core is MIT-licensed, so what it does is in code you can read before you build on it.

Four workflows fit well:

  • Trigger a deployment when content changes in your CMS (the system where editors publish).
  • Post deployment status to Slack, the team chat, so the channel sees a failure before anyone is paged.
  • List projects on a schedule and send the result to a sheet, so you can see what exists and who owns it.
  • Redeploy a project on a timer when its data source updates without notice.

Using the Vercel integration

Start with the integration. Create the connection with a token scoped to what the flow needs, and set an expiry on it.

Put the team ID in each step that acts on a team's projects, because a flow that works on your personal account will quietly target the wrong scope otherwise.

Name an owner for the connection in the flow's description, so that whoever gets the failure alert knows whose token expired.

Using the HTTP step for any endpoint

When the integration lacks an action, use the HTTP step. Set the method and the endpoint from Vercel's API reference, add an Authorization: Bearer header taken from your stored token, and append the team ID as a query parameter.

Activepieces workflow builder with HTTP request step selected and its settings panel open showing method, URL, headers, and…

You get the full API surface, but you also own the details the integration would have handled: status handling, retries, and respecting the rate-limit headers Vercel returns.

Stay in code for high-volume or latency-sensitive calls, for bulk operations that must pace themselves against rate limits, and for logic that needs tests and version control.

A no-code flow is a good home for a call made occasionally. It's a poor home for one that your production path depends on.

Frequently asked questions

Is the Vercel API free to use? Vercel doesn't bill the REST API as a separate product; calls draw on the limits of the plan behind the account.

Your cost is what the resources you create or change consume, so a runaway script that triggers deployments shows up on that bill.

Do Vercel access tokens expire?

Only if you set an expiry when creating them, so choose one deliberately and put the renewal date on someone's calendar. A token with no expiry keeps working until someone deletes it, and a forgotten one is a standing credential nobody owns.

If a token leaks, delete it in your account's token settings, create a replacement, and update every job that used it. Revoking is immediate; the outage until you redeploy the new secret is the cost of not having tracked where the token lived.

Plans and the Hobby tier

Can I use the Vercel API on the Hobby plan? Yes, you can create a token and call the API from a Hobby account.

Some team-level endpoints and features assume a team, so check that the resource you need exists on your plan before building around it.

Hobby is also intended for personal, non-commercial use, so a production path for a business belongs on a paid plan.

Getting build logs

How do I get a deployment's build logs through the API? Request the deployment's events endpoint with the deployment ID, and pass the team ID if the deployment belongs to a team.

The response is the stream of build events, which you can filter for errors. A missing team ID usually appears as a not-found or forbidden response, not as an empty log.

REST API versus AI Gateway

Vercel REST API vs AI Gateway API: what's the difference? The REST API manages your Vercel resources: projects, deployments, domains, environment variables.

The AI Gateway API is for sending model requests through Vercel to AI providers. They authenticate separately, so a token that works for one won't work for the other.

Share

Get started

Automate this without code.

Cloud or your own servers.

Start free Talk to sales