Vercel

The easiest way to deploy websites

Go to site
Explore
/
Apps
/
Vercel

Vercel API Integrations

Build and run workflows using the Vercel API. Use 1000s of open source triggers and actions across 800+ apps. Or write custom code to integrate any app or API in seconds.

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    vercel: {
      type: "app",
      app: "vercel",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.vercel.com/www/user`,
      headers: {
        Authorization: `Bearer ${this.vercel.$auth.oauth_access_token}`,
      },
      params: {
        teamId: this.vercel.$auth.team_id
      }
    })
  },
})

// For more information on using Vercel's API in your workflow, view their documentation here:
// https://vercel.com/docs/rest-api

Authentication

Vercel uses OAuth authentication. When you connect your Vercel account, Pipedream will open a popup window where you can sign into Vercel and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Vercel API.

Pipedream requests the following authorization scopes when you connect your account:

OAuth Request Configurations:
  1. authorization
    GEThttps://vercel.com/integrations/pipedream/new?client_id={{oauth.client_id}}&state={{oauth.state}}&redirect_uri={{oauth.redirect_uri}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://api.vercel.com/v2/oauth/access_tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=authorization_code&code={{oauth.code}}&redirect_uri={{oauth.redirect_uri}}