Developer tools
Vercel mock API
Vercel REST API: projects, deployments that build over time, project environment variables and domains, and signed webhooks.
At a glance
- Operations
- 492
- Stateful operations
- 27
- Stateful resources
- 5
- Webhook events
- 6
- Vendor API version
- mixed per endpoint (v1 to v13)
- Verification
- Spec-verified
How it works
Use Vercel without calling Vercel Inc.
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer YourVercelToken State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Projects | 5 |
| Deployments | 4 |
| Environment variables | 5 |
| Domains | 9 |
| Webhooks | 4 |
Webhooks
Events your handlers can receive
- project.created
- project.removed
- deployment.created
- deployment.ready
- project.env-variable.created
- domain.created
Deliveries are signed with the hmac scheme, so your verification code runs unchanged.
Coverage
492 operations
27 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 465 |
| Domains | 9 |
| Environment variables | 5 |
| Projects | 5 |
| Deployments | 4 |
| Webhooks | 4 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
21 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Vercel Inc. API description, licensed under proprietary (no redistribution licence).
- Vercel Inc. API documentation
- Source specification
Each collection holds up to 1 MiB of objects per token (Authorization header); writes beyond that are dropped (x-maxoperf-vs-state: capacity). Stateful: projects (by id or name; create, patch including rename (the old name stops resolving and its name index and environment keys move to the new name), delete, search and until/limit cursor pagination), deployments (QUEUED, BUILDING after 500 ms, READY after 1.5 s, derived on read; get by id or url; list by projectId and target; delete; creating one for an unknown project auto-creates it; latestDeployments on a project always reports READY), project environment variables (create one or up to 4 at once, list with a target filter, get, edit, remove, duplicate key answers 409 ENV_ALREADY_EXISTS regardless of target), project and account domains (add, verify, patch, delete, list), and webhooks (secret returned once, never on reads). Environment variable lists are not paginated. The deployment state filter is accepted but not applied (the state is derived from age and is not stored), and POST /v13/deployments reads only name, project and target (production or staging, anything else is stored as null). Every other operation answers a schema-valid sample. Paths keep their vendor version prefix (v1 to v13); teamId and slug query parameters are accepted and ignored. A missing token answers 403 with invalidToken. Webhooks (deployment.created, deployment.ready 1.5 s later, project.created, project.removed, domain.created, project.env-variable.created) go to every webhook of the caller whose events include the event (not scoped to its projectIds) and are signed as x-vercel-signature = HMAC-SHA1 hex of the raw body with the webhook secret; envelope createdAt is an ISO-8601 string. Conformance: 18 operations whose vendor schemas no body can satisfy (overlapping or identical oneOf variants, HEAD with body schemas) are skipped and listed; eight others (createRecord, exchange-sso-token, getEdgeConfigBackup and five check-run operations) answer a hand-written body that matches exactly one oneOf variant. Deployment objects omit bootedAt so they match exactly one variant of the vendor oneOf. The conformance sampler needs one shared id path parameter, so the seeded environment variable and webhook ids equal the seeded deployment id. Not reproduced: build output, logs, aliases, teams, edge config, firewall, integrations.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Vercel Inc. Vercel is a trademark of its owner.