How to hit the Vercel API

Vercel's REST API lives at https://api.vercel.com. Each endpoint has its own version number in the path. Add teamId= to act on a team rather than your personal account.

Authentication

Get a token at vercel.com. Send it as Authorization: Bearer <token>. In the examples it's written {{VERCEL_TOKEN}}.

Full reference: https://vercel.com/docs/rest-api

Get the current user

curl https://api.vercel.com/v2/user \
  -H "Authorization: Bearer {{VERCEL_TOKEN}}"
Run in PostTaco

List projects

curl "https://api.vercel.com/v10/projects?limit=5" \
  -H "Authorization: Bearer {{VERCEL_TOKEN}}"
Run in PostTaco

List deployments

curl "https://api.vercel.com/v6/deployments?limit=5" \
  -H "Authorization: Bearer {{VERCEL_TOKEN}}"
Run in PostTaco