> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Vercel

> Read a Vercel account: deployments and their build events and runtime logs, projects, domains, teams and the current user.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/vercel.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=7d9170db80902ee39c33927c34941eb6)

[Web Catalog · Developer](https://docs.webrouter.net/data-apis.md?category=developer)

Needs&#x20;

`VERCEL_ACCESS_TOKEN`

Endpoints

9

Auth

Key in header

[Vendor docs](https://vercel.com/docs/rest-api)

## Setup

| Variable | | What it is |
| - | - | - |
| `VERCEL_ACCESS_TOKEN` | required | A Vercel access token, sent as a Bearer token. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Calls act on the token's own account unless teamId or slug names a team.
* Timestamps are JavaScript milliseconds. List calls return pagination.next, the timestamp (or, for projects, continuation token) to request the next page with; projects take it as from.
* Build events and runtime logs can stream (application/stream+json); for events, leave follow unset to get a finite JSON array.
* Only reads are named here; deploy, delete and settings changes are left out.

## Endpoints

GET

List deployments

Deployments of the user or team, filterable by project, environment, state, branch or commit.

[Open](#vercel-deployments-list)

GET

Get a deployment

One deployment by id or hostname, with state, errors, build and git details.

[Open](#vercel-deployments-get)

GET

Get build logs

Build events (stdout, stderr, commands, state changes) of a deployment.

[Open](#vercel-deployments-events)

GET

Get runtime logs

Request and function logs of a deployment, as a stream of JSON lines.

[Open](#vercel-deployments-runtime-logs)

GET

List projects

Projects of the user or team, searchable by name or repository.

[Open](#vercel-projects-list)

GET

Get a project

One project by id or name, with settings, link and latest deployments.

[Open](#vercel-projects-get)

GET

List domains

Domains registered to the user or team (20 by default).

[Open](#vercel-domains-list)

GET

List teams

Teams the token's user belongs to, with their ids and slugs.

[Open](#vercel-teams-list)

GET

Get the current user

Information on the user the token belongs to.

[Open](#vercel-user-get)

### List deployments

GET

`/v7/deployments`

`vercel.deployments.list`

Deployments of the user or team, filterable by project, environment, state, branch or commit.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `projectId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Project id or name.
      </td>
    </tr>

    <tr>
      <td>
        `target`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Environment, e.g. production or preview.
      </td>
    </tr>

    <tr><td>`state`</td><td>string</td><td>query</td><td>Comma-separated states: BUILDING, ERROR, INITIALIZING, QUEUED, READY, CANCELED, BLOCKED. Example `ERROR`</td></tr>

    <tr>
      <td>
        `branch`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Git branch name.
      </td>
    </tr>

    <tr>
      <td>
        `sha`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Git commit SHA.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Most deployments to return.
      </td>
    </tr>

    <tr>
      <td>
        `since`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Created after this timestamp (ms).
      </td>
    </tr>

    <tr>
      <td>
        `until`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Created before this timestamp (ms); use pagination.next to page.
      </td>
    </tr>

    <tr>
      <td>
        `teamId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team id to act on behalf of.
      </td>
    </tr>

    <tr>
      <td>
        `slug`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team slug to act on behalf of.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://vercel.com/docs/rest-api/deployments/list-deployments)

```python Python theme={null}
router.call_data_api("vercel.deployments.list", {'state': 'ERROR'})
```

```text MCP theme={null}
call_data_api(endpoint="vercel.deployments.list", params={"state": "ERROR"})
```

### Get a deployment

GET

`/v13/deployments/{idOrUrl}`

`vercel.deployments.get`

One deployment by id or hostname, with state, errors, build and git details.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `idOrUrl`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Deployment id (dpl\_...) or hostname.
      </td>
    </tr>

    <tr><td>`withGitRepoInfo`</td><td>string</td><td>query</td><td>true to include gitSource (commit SHA, branch, repo). Example `true`</td></tr>

    <tr>
      <td>
        `teamId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team id to act on behalf of.
      </td>
    </tr>

    <tr>
      <td>
        `slug`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team slug to act on behalf of.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://vercel.com/docs/rest-api/deployments/get-a-deployment-by-id-or-url)

### Get build logs

GET

`/v3/deployments/{idOrUrl}/events`

`vercel.deployments.events`

Build events (stdout, stderr, commands, state changes) of a deployment.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `idOrUrl`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Deployment id or hostname.
      </td>
    </tr>

    <tr><td>`direction`</td><td>string</td><td>query</td><td>forward (default) or backward by time. One of `forward`, `backward`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Most events; -1 for all.
      </td>
    </tr>

    <tr>
      <td>
        `since`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        From this timestamp.
      </td>
    </tr>

    <tr>
      <td>
        `until`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Up to this timestamp.
      </td>
    </tr>

    <tr><td>`follow`</td><td>integer</td><td>query</td><td>1 streams live events; leave unset for a finite list. One of `0`, `1`</td></tr>

    <tr>
      <td>
        `teamId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team id to act on behalf of.
      </td>
    </tr>

    <tr>
      <td>
        `slug`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team slug to act on behalf of.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://vercel.com/docs/rest-api/deployments/get-deployment-events) · Same job: [Datadog](https://docs.webrouter.net/data-apis/datadog.md#datadog-logs-search), [Microsoft Graph (Microsoft 365)](https://docs.webrouter.net/data-apis/microsoft-graph.md#microsoft-graph-signins-list), [Resend](https://docs.webrouter.net/data-apis/resend.md#resend-logs-list), [Sentry](https://docs.webrouter.net/data-apis/sentry.md#sentry-explore-events), [Supabase](https://docs.webrouter.net/data-apis/supabase.md#supabase-logs-query)

### Get runtime logs

GET

`/v1/projects/{projectId}/deployments/{deploymentId}/runtime-logs`

`vercel.deployments.runtime-logs`

Request and function logs of a deployment, as a stream of JSON lines.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `projectId`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Project id or name.
      </td>
    </tr>

    <tr>
      <td>
        `deploymentId`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Deployment id or hostname.
      </td>
    </tr>

    <tr>
      <td>
        `teamId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team id to act on behalf of.
      </td>
    </tr>

    <tr>
      <td>
        `slug`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team slug to act on behalf of.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://vercel.com/docs/rest-api/logs/get-logs-for-a-deployment) · Same job: [Datadog](https://docs.webrouter.net/data-apis/datadog.md#datadog-logs-search), [Microsoft Graph (Microsoft 365)](https://docs.webrouter.net/data-apis/microsoft-graph.md#microsoft-graph-signins-list), [Resend](https://docs.webrouter.net/data-apis/resend.md#resend-logs-list), [Sentry](https://docs.webrouter.net/data-apis/sentry.md#sentry-explore-events), [Supabase](https://docs.webrouter.net/data-apis/supabase.md#supabase-logs-query)

> [!NOTE]
>
> * Responds with application/stream+json: one JSON object per line.

### List projects

GET

`/v10/projects`

`vercel.projects.list`

Projects of the user or team, searchable by name or repository.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Name search, up to 100 characters.
      </td>
    </tr>

    <tr>
      <td>
        `repo`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter by connected repository.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Most projects to return.
      </td>
    </tr>

    <tr>
      <td>
        `from`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Updated after this timestamp or continuation token (pagination.next).
      </td>
    </tr>

    <tr>
      <td>
        `teamId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team id to act on behalf of.
      </td>
    </tr>

    <tr>
      <td>
        `slug`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team slug to act on behalf of.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://vercel.com/docs/rest-api/projects/retrieve-a-list-of-projects)

```python Python theme={null}
router.call_data_api("vercel.projects.list")
```

```text MCP theme={null}
call_data_api(endpoint="vercel.projects.list")
```

### Get a project

GET

`/v9/projects/{idOrName}`

`vercel.projects.get`

One project by id or name, with settings, link and latest deployments.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `idOrName`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Project id or name.
      </td>
    </tr>

    <tr>
      <td>
        `teamId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team id to act on behalf of.
      </td>
    </tr>

    <tr>
      <td>
        `slug`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team slug to act on behalf of.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://vercel.com/docs/rest-api/projects/find-a-project-by-id-or-name)

### List domains

GET

`/v5/domains`

`vercel.domains.list`

Domains registered to the user or team (20 by default).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Most domains to return.
      </td>
    </tr>

    <tr>
      <td>
        `since`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Created after this timestamp (ms).
      </td>
    </tr>

    <tr>
      <td>
        `until`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Created before this timestamp (ms).
      </td>
    </tr>

    <tr>
      <td>
        `teamId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team id to act on behalf of.
      </td>
    </tr>

    <tr>
      <td>
        `slug`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Team slug to act on behalf of.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://vercel.com/docs/rest-api/domains/list-all-the-domains)

```python Python theme={null}
router.call_data_api("vercel.domains.list")
```

```text MCP theme={null}
call_data_api(endpoint="vercel.domains.list")
```

### List teams

GET

`/v2/teams`

`vercel.teams.list`

Teams the token's user belongs to, with their ids and slugs.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Most teams to return.
      </td>
    </tr>

    <tr>
      <td>
        `since`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Created since this timestamp (ms).
      </td>
    </tr>

    <tr>
      <td>
        `until`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Created until this timestamp (ms).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://vercel.com/docs/rest-api/teams/list-all-teams)

```python Python theme={null}
router.call_data_api("vercel.teams.list")
```

```text MCP theme={null}
call_data_api(endpoint="vercel.teams.list")
```

### Get the current user

GET

`/v2/user`

`vercel.user.get`

Information on the user the token belongs to.

Input

No inputs.

[Vendor docs](https://vercel.com/docs/rest-api/user/get-the-user)

```python Python theme={null}
router.call_data_api("vercel.user.get")
```

```text MCP theme={null}
call_data_api(endpoint="vercel.user.get")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.