Skip to content

Vercel

Vercel projects, deployments, build logs, domains and team data as SQL tables

Connector software
Free and open source
Service credentials
Required
Use with an agent

Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.

npx skills add Query-farm/vgi-skills --skill orchard

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/vercel/index.md to help me query Vercel with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.

Compare deployment failures across projects

Set the lower timestamp bound to the deployment period you want to analyze.

Uses your connected account. Set up the connector and credentials to run it with your data.

SELECT project, count(*) FILTER (WHERE state = 'error') AS failed,
  count(*) AS total
FROM vercel.main.deployments
WHERE created_at >= TIMESTAMPTZ '2026-11-01 00:00:00+00'
GROUP BY project
ORDER BY failed DESC

Quick start

Choose where to run Vercel, then follow the steps below.

The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.

1. Install the vgi extension

Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.

setup.sql
SET allow_extension_repositories = 'allowed';

CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';

INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;

2. Attach the connector

Attach the release directly

Downloads the latest release for your platform and caches it locally.

ATTACH 'vercel' AS vercel (
  TYPE vgi,
  LOCATION 'github-auto://Query-farm/vgi-vercel'
);

3. Add service credentials

After attaching, create the secret for the service you want to query in the same SQL session. Replace the placeholders with your service settings.

vercel credentials

Vercel access token, optionally scoped to a team

Get these credentials β†’
secret.sql
CREATE SECRET vercel (
    TYPE vercel,
    token     '<VERCEL_TOKEN>',  -- secret
    team_id   '<team_id>',
    team_slug '<team_slug>',
    base_url  '<base_url>'
);
Credential fields and requirements β†’

4. Run a query

query.sql
SELECT project, count(*) FILTER (WHERE state = 'error') AS failed,
  count(*) AS total
FROM vercel.main.deployments
WHERE created_at >= TIMESTAMPTZ '2026-11-01 00:00:00+00'
GROUP BY project
ORDER BY failed DESC
More example queries β†’
Technical details
Verified connector release
v0.2.0
Engine
2.0.1
VGI protocol
3.4.0
Verified on
December 1, 2026
Release notes on GitHub
Pin a version for production

When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.

Attach the release directly

Uses the verified release each time you attach the connector.

ATTACH 'vercel' AS vercel (
  TYPE vgi,
  LOCATION 'github-auto://Query-farm/[email protected]'
);

Overview

Vercel projects, deployments, build logs, domains, env var names, integrations, firewall rules and team members as SQL, read-only from the Vercel REST API.

Catalog

Everything vercel exposes once attached β€” read straight from the worker's released build.

vercel 2 schemas
main 12 tables Β· 5 functions

Read-only Vercel REST API collections: projects, deployments, domains, configuration and team data.

Schema examples (12)
Examples (12)

Aliases, regions and function count of one deployment

SELECT id, state, aliases, regions, function_count
FROM vercel.main.deployment('dpl_web3');

The stderr lines of a failed build

SELECT line, created_at, text
FROM vercel.main.build_logs('dpl_web4')
WHERE type = 'stderr'
ORDER BY line;

Check conclusions of one deployment

SELECT name, conclusion, blocking, duration_seconds
FROM vercel.main.deployment_checks('dpl_web3')
ORDER BY name;

Is www.example.com pointed at Vercel?

SELECT misconfigured, configured_by, recommended_cname
FROM vercel.main.domain_config('www.example.com');
8 more examples

Recent environment variable changes and who made them

SELECT created_at, username, text
FROM vercel.main.activity_events()
WHERE type = 'project-env-variable'
ORDER BY created_at DESC
LIMIT 20;

Teams and your role in each

SELECT id, slug, role FROM vercel.main.teams ORDER BY slug;

Projects per framework

SELECT framework, count(*) AS projects
FROM vercel.main.projects
GROUP BY framework
ORDER BY projects DESC;

Projects still building on an old Node.js version

SELECT name, repo, production_branch, node_version
FROM vercel.main.projects
WHERE node_version < '20'
ORDER BY name;

Failed vs total deployments per project since a date (time window pushed down)

SELECT project, count(*) FILTER (WHERE state = 'error') AS failed,
  count(*) AS total
FROM vercel.main.deployments
WHERE created_at >= TIMESTAMPTZ '2026-11-01 00:00:00+00'
GROUP BY project
ORDER BY failed DESC;

Average production build time per project

SELECT project, avg(build_duration_seconds) AS avg_build_s
FROM vercel.main.deployments
WHERE environment = 'production' AND state = 'ready'
GROUP BY project
ORDER BY avg_build_s DESC;

Which project and branch serves each alias

SELECT a.alias, d.project, d.branch
FROM vercel.main.aliases a
JOIN vercel.main.deployments d ON d.id = a.deployment_id
ORDER BY a.alias;

Project domains still waiting for verification

SELECT project, domain, verified
FROM vercel.main.domains
WHERE NOT verified
ORDER BY project, domain;
Tables
account_domains 1 example13 cols

Domains registered to or added to the Vercel account, with nameservers and renewal

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
id VARCHAR
Domain id.
namenot null VARCHAR
Domain name.
service_type VARCHAR
Vercel serviceType: zeit.world when Vercel hosts the DNS zone, external for third-party DNS.
verified BOOLEAN
Whether ownership is verified.
nameservers VARCHAR[]
Nameservers currently set at the registrar.
intended_nameservers VARCHAR[]
Vercel nameservers the domain should use.
custom_nameservers VARCHAR[]
Custom nameservers configured, if any.
created_at TIMESTAMP WITH TIME ZONE
When the domain was added.
bought_at TIMESTAMP WITH TIME ZONE
When it was bought through Vercel (NULL = external).
expires_at TIMESTAMP WITH TIME ZONE
Registration expiry (domains bought through Vercel).
renew BOOLEAN
Whether auto-renewal is on.
creator VARCHAR
Username of who added it.
ConstraintsPRIMARY KEY (name)
Example

Domains bought through Vercel by expiry date

SELECT name, expires_at, renew
FROM vercel.main.account_domains
WHERE bought_at IS NOT NULL
ORDER BY expires_at;
Link
aliases 1 example10 cols

Vercel aliases: which domain points at which deployment

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
idnot null VARCHAR
Alias id.
alias VARCHAR
The aliased hostname, e.g. www.example.com.
project_id VARCHAR
Id (prj_…) of the project the alias belongs to.
deployment_id VARCHAR
Deployment the alias points to.
deployment_url VARCHAR
That deployment's URL.
redirect VARCHAR
Redirect target hostname, when the alias redirects.
creator VARCHAR
Username of who created the alias.
created_at TIMESTAMP WITH TIME ZONE
When the alias was created.
updated_at TIMESTAMP WITH TIME ZONE
When the alias last changed.
ConstraintsPRIMARY KEY (id)
Example

Which project and branch serves each alias

SELECT a.alias, d.project, d.branch
FROM vercel.main.aliases a
JOIN vercel.main.deployments d ON d.id = a.deployment_id
ORDER BY a.alias;
Link
deployments 2 examples30 cols

Vercel deployments (shared web-deploy vocabulary) with filters pushed into the v6 list API

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
idnot null VARCHAR
Deployment id (dpl_…).
project VARCHAR
Project name.
environmentnot null VARCHAR
production or preview (shared vocabulary).
state VARCHAR
Normalized state: queued, building, ready, error or canceled.
raw_state VARCHAR
Vercel readyState: QUEUED, INITIALIZING, BUILDING, READY, ERROR or CANCELED.
branch VARCHAR
Git branch the deployment was built from.
commit_sha VARCHAR
Git commit SHA.
commit_message VARCHAR
Git commit message (untrusted, author-supplied text).
creator VARCHAR
Username (else email) of who created the deployment.
created_at TIMESTAMP WITH TIME ZONE
When the deployment was created (queued).
building_at TIMESTAMP WITH TIME ZONE
When the build started.
ready_at TIMESTAMP WITH TIME ZONE
When the deployment became ready.
build_duration_seconds DOUBLE
ready_at βˆ’ building_at in seconds.
url VARCHAR
Unique deployment URL (https://…vercel.app).
inspector_url VARCHAR
Vercel dashboard inspector URL.
project_id VARCHAR
Project id (prj_…).
target VARCHAR
Raw Vercel target: production, or NULL for preview.
source VARCHAR
How it was created: git, cli, redeploy, import, api-trigger-git-deploy …
ready_substate VARCHAR
STAGED (built, not promoted) or PROMOTED.
git_provider VARCHAR
github, gitlab or bitbucket.
git_repo VARCHAR
owner/name of the git repository.
commit_author VARCHAR
Git commit author name.
creator_id VARCHAR
User id of the creator.
creator_email VARCHAR
Email of the creator.
is_rollback_candidate BOOLEAN
Whether this production deployment can be rolled back to.
checks_state VARCHAR
Deployment checks state: registered, running or completed.
checks_conclusion VARCHAR
Checks conclusion: succeeded, failed, skipped or canceled.
error_code VARCHAR
Build or alias error code, when it failed.
meta JSON
All deployment metadata (git, CLI, custom) as JSON.
ConstraintsPRIMARY KEY (id)
Examples (2)

Failed vs total deployments per project since a date (time window pushed down)

SELECT project, count(*) FILTER (WHERE state = 'error') AS failed,
  count(*) AS total
FROM vercel.main.deployments
WHERE created_at >= TIMESTAMPTZ '2026-11-01 00:00:00+00'
GROUP BY project
ORDER BY failed DESC;

Average production build time per project

SELECT project, avg(build_duration_seconds) AS avg_build_s
FROM vercel.main.deployments
WHERE environment = 'production' AND state = 'ready'
GROUP BY project
ORDER BY avg_build_s DESC;
Link
dns_records 1 example12 cols

DNS records of domains that use Vercel DNS

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
domainnot null VARCHAR
The zone (account domain).
idnot null VARCHAR
Record id (rec_…).
name VARCHAR
Record name relative to the zone ('' = apex).
type VARCHAR
Record type: A, AAAA, ALIAS, CAA, CNAME, HTTPS, MX, SRV, TXT, NS.
value VARCHAR
Record value.
ttl INTEGER
TTL in seconds.
mx_priority INTEGER
MX preference value (lower is tried first); NULL for non-MX records.
comment VARCHAR
Record comment.
creator VARCHAR
Who created it (user id or 'system').
created_at TIMESTAMP WITH TIME ZONE
When it was created.
updated_at TIMESTAMP WITH TIME ZONE
When it last changed.
ConstraintsPRIMARY KEY (domain, id)
Example

The records of one zone

SELECT type, name, value
FROM vercel.main.dns_records
WHERE domain = 'acme.com'
ORDER BY type, name;
Link
domains 1 example13 cols

Domains assigned to each Vercel project (shared web-deploy vocabulary)

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
projectnot null VARCHAR
Project name.
project_idnot null VARCHAR
Project id (prj_…).
domainnot null VARCHAR
The domain name.
apex_domain VARCHAR
Its apex (registrable) domain.
verified BOOLEAN
Whether ownership is verified.
redirect VARCHAR
Domain this one redirects to, if any.
redirect_status_code INTEGER
Redirect HTTP status (301, 302, 307, 308).
git_branch VARCHAR
Branch this domain deploys from (branch domains); NULL = production.
created_at TIMESTAMP WITH TIME ZONE
When the domain was added to the project.
updated_at TIMESTAMP WITH TIME ZONE
When it last changed.
custom_environment_id VARCHAR
Custom environment the domain is attached to.
verification JSON
Pending verification challenges (TXT records) as JSON.
ConstraintsPRIMARY KEY (project_id, domain)
Example

Project domains still waiting for verification

SELECT project, domain, verified
FROM vercel.main.domains
WHERE NOT verified
ORDER BY project, domain;
Link
edge_configs 1 example9 cols

Edge Config stores with item counts and sizes (no tokens, no items)

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
idnot null VARCHAR
Edge Config id (ecfg_…).
slug VARCHAR
Store slug.
item_count INTEGER
Number of items.
size_bytes BIGINT
Total size in bytes.
digest VARCHAR
Content digest (changes on every write).
owner_id VARCHAR
Owning team or user id.
created_at TIMESTAMP WITH TIME ZONE
When it was created.
updated_at TIMESTAMP WITH TIME ZONE
When it last changed.
ConstraintsPRIMARY KEY (id)
Example

Largest Edge Config stores

SELECT slug, item_count, size_bytes
FROM vercel.main.edge_configs
ORDER BY size_bytes DESC;
Link
env_var_names 1 example14 cols

Environment variable NAMES of each project (values are never read)

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
projectnot null VARCHAR
Project name.
project_idnot null VARCHAR
Project id (prj_…).
keynot null VARCHAR
Variable name.
targets VARCHAR[]
Environments it applies to: production, preview, development.
type VARCHAR
plain, encrypted, sensitive, secret or system.
git_branch VARCHAR
Preview branch the value is limited to, if any.
created_at TIMESTAMP WITH TIME ZONE
When it was created.
updated_at TIMESTAMP WITH TIME ZONE
When it last changed.
idnot null VARCHAR
Variable id.
comment VARCHAR
Comment on the variable.
created_by VARCHAR
User id that created it.
configuration_id VARCHAR
Integration configuration that manages it, if any.
custom_environment_ids VARCHAR[]
Custom environments it applies to.
ConstraintsPRIMARY KEY (project_id, id)
Example

Plain-text (unencrypted) variables exposed to production

SELECT project, key
FROM vercel.main.env_var_names
WHERE type = 'plain' AND list_contains(targets, 'production')
ORDER BY project, key;
Link
firewall_configs 1 example12 cols

Active Vercel Firewall (WAF) configuration summary per project

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
projectnot null VARCHAR
Project name.
project_idnot null VARCHAR
Project id (prj_…).
config_id VARCHAR
Firewall config id.
version INTEGER
Config version (increments on each change).
firewall_enabled BOOLEAN
Whether the firewall is enabled.
updated_at TIMESTAMP WITH TIME ZONE
When the config last changed.
rule_count INTEGER
Number of custom rules.
active_rule_count INTEGER
Number of active custom rules.
ip_block_count INTEGER
Number of IP blocking rules.
managed_rulesets VARCHAR[]
Managed rulesets that are active (owasp, bot_protection, ai_bots …).
rules STRUCT of 4 fields[]
Custom rules: id, name, active and the mitigation action (deny, challenge, log, bypass, rate_limit, redirect).
STRUCT[] 4 fields
  • idVARCHAR
  • nameVARCHAR
  • activeBOOLEAN
  • actionVARCHAR
ConstraintsPRIMARY KEY (project_id)
Example

Firewall posture per project

SELECT project, firewall_enabled, active_rule_count, managed_rulesets
FROM vercel.main.firewall_configs
ORDER BY project;
Link
integrations 1 example13 cols

Installed integration configurations (marketplace apps) and their scopes

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
idnot null VARCHAR
Configuration id (icfg_…).
slug VARCHAR
Integration slug, e.g. sentry, neon.
integration_id VARCHAR
Integration id (oac_…).
status VARCHAR
Installation status (ready, pending, error, suspended, …).
installation_type VARCHAR
marketplace or external.
source VARCHAR
Where it was installed from.
project_selection VARCHAR
all or selected.
project_ids VARCHAR[]
Projects it can access (when selected).
scopes VARCHAR[]
Scopes granted.
created_at TIMESTAMP WITH TIME ZONE
When it was installed.
updated_at TIMESTAMP WITH TIME ZONE
When it last changed.
disabled_at TIMESTAMP WITH TIME ZONE
When it was disabled, if it was.
ConstraintsPRIMARY KEY (id)
Example

Integrations with the broadest access

SELECT slug, project_selection, len(scopes) AS n_scopes
FROM vercel.main.integrations
ORDER BY n_scopes DESC;
Link
projects 2 examples20 cols

Vercel projects with framework, linked git repository, production branch and Node.js version

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
idnot null VARCHAR
Project id (prj_…).
name VARCHAR
Project name (also the deployment name).
framework VARCHAR
Framework preset: nextjs, vite, astro, sveltekit … (NULL = other).
repo VARCHAR
owner/name of the linked git repository.
repo_provider VARCHAR
Linked git provider: github, gitlab or bitbucket.
production_branch VARCHAR
Branch whose pushes deploy to production.
node_version VARCHAR
Node.js major version used for builds and functions, e.g. 22.x.
created_at TIMESTAMP WITH TIME ZONE
When the project was created.
updated_at TIMESTAMP WITH TIME ZONE
When the project settings last changed.
account_id VARCHAR
Owning team or user id.
root_directory VARCHAR
Monorepo root directory of the app (NULL = repo root).
build_command VARCHAR
Build command override (NULL = framework default).
output_directory VARCHAR
Output directory override.
install_command VARCHAR
Install command override.
dev_command VARCHAR
Dev command override.
serverless_function_region VARCHAR
Default region for Vercel Functions, e.g. iad1.
public_source BOOLEAN
Whether /_src and build logs are public.
production_url VARCHAR
URL of the current production deployment.
production_deployment_id VARCHAR
Id of the current production deployment.
ConstraintsPRIMARY KEY (id)
Examples (2)

Projects per framework

SELECT framework, count(*) AS projects
FROM vercel.main.projects
GROUP BY framework
ORDER BY projects DESC;

Projects still building on an old Node.js version

SELECT name, repo, production_branch, node_version
FROM vercel.main.projects
WHERE node_version < '20'
ORDER BY name;
Link
team_members 1 example11 cols

Members of the Vercel team named in the secret, with roles

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
team_idnot null VARCHAR
The team.
user_idnot null VARCHAR
Vercel user id of the member (stable across username changes).
username VARCHAR
Vercel login handle (vercel.com/<username>).
email VARCHAR
Email address.
name VARCHAR
Display name.
role VARCHAR
OWNER, MEMBER, DEVELOPER, BILLING, VIEWER or CONTRIBUTOR.
confirmed BOOLEAN
Whether the invitation was accepted.
joined_at TIMESTAMP WITH TIME ZONE
When they joined.
joined_from VARCHAR
How they joined: link, mail, import, github, gitlab, bitbucket, saml, dsync …
access_requested_at TIMESTAMP WITH TIME ZONE
When they requested access, if they did.
ConstraintsPRIMARY KEY (user_id)
Example

Members per role

SELECT role, count(*) AS members
FROM vercel.main.team_members
GROUP BY role
ORDER BY members DESC;
Link
teams 1 example7 cols

Vercel teams the token can access

Columns
platformnot null VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
idnot null VARCHAR
Team id (team_…); use it as TEAM_ID in the vercel secret.
slug VARCHAR
Team URL slug (vercel.com/<slug>).
name VARCHAR
Team display name.
created_at TIMESTAMP WITH TIME ZONE
When the team was created.
role VARCHAR
The token owner's role: OWNER, MEMBER, DEVELOPER, BILLING, VIEWER or CONTRIBUTOR.
membership_confirmed BOOLEAN
Whether the token owner's membership is confirmed.
ConstraintsPRIMARY KEY (id)
Example

Teams and your role in each

SELECT id, slug, role FROM vercel.main.teams ORDER BY slug;
Link
Table functions
activity_events (page_size := BIGINT) 1 example

Account / team activity events (deploys, domain, env and member changes)

Named arguments
page_size := BIGINT
Events requested per page (1–100). Β· default 100
Returns columns
platform VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
id VARCHAR
Event id.
type VARCHAR
Event type, e.g. deployment, project-env-variable, domain, team-member-join.
text VARCHAR
Human-readable summary (contains user-supplied names).
created_at TIMESTAMP WITH TIME ZONE
When it happened.
user_id VARCHAR
Acting user id.
username VARCHAR
Acting username.
user_email VARCHAR
Acting user's email.
principal_id VARCHAR
Principal (user or token) that acted.
entities JSON
Entities referenced in the text (type, start, end …) as JSON.
Example

Recent environment variable changes and who made them

SELECT created_at, username, text
FROM vercel.main.activity_events()
WHERE type = 'project-env-variable'
ORDER BY created_at DESC
LIMIT 20;
Link
build_logs (deployment_id VARCHAR) 1 example

Build log lines of one Vercel deployment, in order, with timestamps

Arguments
deployment_id VARCHAR
Deployment id (dpl_…) or URL whose build log to read.
Returns columns
platform VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
deployment_id VARCHAR
The deployment the line belongs to.
line INTEGER
1-based position of the event in the log.
created_at TIMESTAMP WITH TIME ZONE
When the line was written.
type VARCHAR
Event type: command, stdout, stderr, delimiter, exit, deployment-state …
text VARCHAR
The log text (UNTRUSTED build output).
step VARCHAR
Build step name (payload.info.name).
step_type VARCHAR
Build step type (payload.info.type), e.g. build.
entrypoint VARCHAR
Build entrypoint, when reported.
event_id VARCHAR
Event id.
Example

The stderr lines of a failed build

SELECT line, created_at, text
FROM vercel.main.build_logs('dpl_web4')
WHERE type = 'stderr'
ORDER BY line;
Link
deployment (id_or_url VARCHAR) 1 example

One Vercel deployment in detail: aliases, regions, functions and git metadata

Arguments
id_or_url VARCHAR
Deployment id (dpl_…) or its URL / hostname (my-app-abc123.vercel.app).
Returns columns
platform VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
id VARCHAR
Deployment id (dpl_…).
project VARCHAR
Project name.
environment VARCHAR
production or preview (shared vocabulary).
state VARCHAR
Normalized state: queued, building, ready, error or canceled.
raw_state VARCHAR
Vercel readyState: QUEUED, INITIALIZING, BUILDING, READY, ERROR or CANCELED.
branch VARCHAR
Git branch the deployment was built from.
commit_sha VARCHAR
Git commit SHA.
commit_message VARCHAR
Git commit message (untrusted, author-supplied text).
creator VARCHAR
Username (else email) of who created the deployment.
created_at TIMESTAMP WITH TIME ZONE
When the deployment was created (queued).
building_at TIMESTAMP WITH TIME ZONE
When the build started.
ready_at TIMESTAMP WITH TIME ZONE
When the deployment became ready.
build_duration_seconds DOUBLE
ready_at βˆ’ building_at in seconds.
url VARCHAR
Unique deployment URL (https://…vercel.app).
inspector_url VARCHAR
Vercel dashboard inspector URL.
project_id VARCHAR
Project id (prj_…).
target VARCHAR
Raw Vercel target: production, or NULL for preview.
source VARCHAR
How it was created: git, cli, redeploy, import, api-trigger-git-deploy …
ready_substate VARCHAR
STAGED (built, not promoted) or PROMOTED.
git_provider VARCHAR
github, gitlab or bitbucket.
git_repo VARCHAR
owner/name of the git repository.
commit_author VARCHAR
Git commit author name.
creator_id VARCHAR
User id of the creator.
creator_email VARCHAR
Email of the creator.
is_rollback_candidate BOOLEAN
Whether this production deployment can be rolled back to.
checks_state VARCHAR
Deployment checks state: registered, running or completed.
checks_conclusion VARCHAR
Checks conclusion: succeeded, failed, skipped or canceled.
error_code VARCHAR
Build or alias error code, when it failed.
meta JSON
All deployment metadata (git, CLI, custom) as JSON.
aliases VARCHAR[]
Domains aliased to this deployment.
regions VARCHAR[]
Regions the functions run in, e.g. iad1.
function_count INTEGER
Number of built Vercel Functions (lambdas).
function_paths VARCHAR[]
Paths served by Vercel Functions.
functions JSON
Per-path function configuration (memory, maxDuration …) as JSON.
git_source JSON
The git source (type, repo, ref, sha …) as JSON.
error_message VARCHAR
Build error message, when it failed (untrusted build output).
plan VARCHAR
Account plan at deploy time: hobby, pro or enterprise.
Example

Aliases, regions and function count of one deployment

SELECT id, state, aliases, regions, function_count
FROM vercel.main.deployment('dpl_web3');
Link
deployment_checks (deployment_id VARCHAR) 1 example

Checks (and their run results) attached to one Vercel deployment

Arguments
deployment_id VARCHAR
Deployment id (dpl_…) whose checks to list.
Returns columns
platform VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
deployment_id VARCHAR
The deployment checked.
id VARCHAR
Check id (chk_…).
name VARCHAR
Check name.
status VARCHAR
registered, running or completed.
conclusion VARCHAR
succeeded, failed, neutral, skipped, canceled or stale (NULL while running).
blocking BOOLEAN
Whether a failure blocks the deployment from being promoted.
rerequestable BOOLEAN
Whether the check can be re-run.
integration_id VARCHAR
Integration that registered the check.
external_id VARCHAR
The integration's own id for the run.
details_url VARCHAR
Link to the check's results.
path VARCHAR
Page path the check ran against, if any.
created_at TIMESTAMP WITH TIME ZONE
When the check was registered.
started_at TIMESTAMP WITH TIME ZONE
When the run started.
completed_at TIMESTAMP WITH TIME ZONE
When the run completed.
duration_seconds DOUBLE
completed_at βˆ’ started_at in seconds.
Example

Check conclusions of one deployment

SELECT name, conclusion, blocking, duration_seconds
FROM vercel.main.deployment_checks('dpl_web3')
ORDER BY name;
Link
domain_config (domain VARCHAR) 1 example

Whether a domain's DNS is correctly configured for Vercel, with the recommended records

Arguments
domain VARCHAR
Domain name to check, e.g. www.example.com.
Returns columns
platform VARCHAR
Always 'vercel' (shared web-deploy vocabulary).
domain VARCHAR
The domain checked.
misconfigured BOOLEAN
True when DNS does not point at Vercel.
configured_by VARCHAR
CNAME, A, http or dns-01 (NULL = not configured).
accepted_challenges VARCHAR[]
ACME challenge types usable for its TLS certificate.
recommended_ipv4 VARCHAR[]
Recommended A record values.
recommended_cname VARCHAR
Recommended CNAME target.
Example

Is www.example.com pointed at Vercel?

SELECT misconfigured, configured_by, recommended_cname
FROM vercel.main.domain_config('www.example.com');
Link
unified 1 table

Vercel deployments in the cross-orchestrator runs shape, for UNION ALL with CI and orchestrator workers.

Schema examples (1)
Example

Run outcomes per project since a date, ready to UNION with other orchestrators

SELECT pipeline, status, count(*) AS runs
FROM vercel.unified.runs
WHERE queued_at >= TIMESTAMPTZ '2026-11-01 00:00:00+00'
GROUP BY ALL
ORDER BY pipeline, status;
Tables
runs 1 example11 cols

Vercel deployments as orchestrator runs (UNION ALL with Airflow, Dagster, GitHub Actions …)

Columns
orchestratornot null VARCHAR
Always 'vercel'.
run_idnot null VARCHAR
Deployment id (dpl_…).
pipeline VARCHAR
Project name.
statusnot null VARCHAR
queued, running, success, failed or cancelled.
raw_status VARCHAR
Vercel readyState.
trigger VARCHAR
event (git push), manual (CLI, redeploy), api or other.
queued_at TIMESTAMP WITH TIME ZONE
When the deployment was created.
started_at TIMESTAMP WITH TIME ZONE
When the build started.
ended_at TIMESTAMP WITH TIME ZONE
When it became ready (or was canceled).
duration_seconds DOUBLE
ended_at βˆ’ started_at in seconds.
url VARCHAR
Vercel inspector URL of the deployment.
ConstraintsPRIMARY KEY (run_id)
Example

Run outcomes per project since a date, ready to UNION with other orchestrators

SELECT pipeline, status, count(*) AS runs
FROM vercel.unified.runs
WHERE queued_at >= TIMESTAMPTZ '2026-11-01 00:00:00+00'
GROUP BY ALL
ORDER BY pipeline, status;
Link

Credentials

The secret type vercel declares, as reported by the worker itself.

vercel

How to get these credentials

Vercel access token, optionally scoped to a team

secret.sql
CREATE SECRET vercel (
    TYPE vercel,
    token     '<VERCEL_TOKEN>',  -- secret
    team_id   '<team_id>',
    team_slug '<team_slug>',
    base_url  '<base_url>'
);
Key Type Required Description
token secret VARCHAR β€” Vercel access token (Account Settings > Tokens). Read-only use; sent as a Bearer token.
team_id VARCHAR β€” Team id (team_…) to read instead of the personal account; adds teamId=.
team_slug VARCHAR β€” Team slug, as an alternative to TEAM_ID; adds slug=.
base_url VARCHAR β€” API base URL (default https://api.vercel.com); http:// is accepted only for 127.0.0.1/localhost.

The worker doesn't mark which keys are required.

Create the secret in the same session, after attaching vercel β€” the worker registers its secret types at ATTACH. Keys marked secret are masked in duckdb_secrets(); angle-bracket values are placeholders. Read credentials from your environment or secret store in your application and pass them through your SQL client’s parameter bindings. Keep real values out of saved SQL and history. Native DuckDB and Haybarn do not provide a SQL getenv() function.

Try these queries

deployments_columns β€” The deployments columns (binds only; create a vercel secret and drop LIMIT 0 for rows)

SELECT id, project, environment, state, branch, created_at
FROM vercel.main.deployments
LIMIT 0;

Uses deployments

runs_columns β€” The unified.runs columns (binds only; create a vercel secret and drop LIMIT 0 for rows)

SELECT orchestrator, run_id, pipeline, status, duration_seconds
FROM vercel.unified.runs
LIMIT 0;

Uses runs

Aliases, regions and function count of one deployment

SELECT id, state, aliases, regions, function_count
FROM vercel.main.deployment('dpl_web3')

Uses deployment

The stderr lines of a failed build

SELECT line, created_at, text
FROM vercel.main.build_logs('dpl_web4')
WHERE type = 'stderr'
ORDER BY line

Uses build_logs

Check conclusions of one deployment

SELECT name, conclusion, blocking, duration_seconds
FROM vercel.main.deployment_checks('dpl_web3')
ORDER BY name

Uses deployment_checks

Is www.example.com pointed at Vercel?

SELECT misconfigured, configured_by, recommended_cname
FROM vercel.main.domain_config('www.example.com')

Uses domain_config

15 more examples in the Catalog, each listed under the table or function it uses.

Questions it can answer

Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.

  • Which framework does each Vercel project use?
  • What is the production branch and linked repository of each project?
  • List the ids of Vercel deployments that failed (errored), with their project.
  • How many production deployments does the web project have?
  • What is the average build duration in seconds of ready deployments per project?
  • Which git branch and commit SHA was deployment dpl_web2 built from?

Vercel is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.