Vercel Teams icon

Vercel Teams

Get user info and manage teams via the Vercel REST API

Get User

AI-generated

Summary

Fetches the profile of the user who owns the configured Vercel access token by calling GET /v2/user on the Vercel REST API. Runs once per input item and returns the API response as JSON.

Inputs

  • Operation (required) — Set to 'Get User' (value getUser, the default). This operation has no other user-facing parameters.
  • Credentials (vercelApi) (required) — Supplies the access token, optional team ID, and optional base URL (defaults to https://api.vercel.com). If a team ID is set in the credentials, it is sent as a teamId query string parameter.

Output shape

One output item per input item, with the Vercel /v2/user response as the item's JSON (typically a user object). Each item is paired to its input item.

If 'Continue on Fail' is enabled, a failed item returns { error: message } instead of stopping the workflow. Otherwise the node throws an API error. The source also reads a 'teamIdOverride' parameter that the node does not declare, so it always falls back to an empty string and the credential's team ID is the only one used.

Examples

Example 1: Verify that a Vercel access token is valid and see which account it belongs to.

Add Vercel Teams node, select the vercelApi credential, set Operation to Get User, and run.

Example 2: Fetch the authenticated user's details at the start of a workflow to use the user ID or email in later steps.

Vercel Teams node with Operation = Get User, then reference fields like {{$json.user.email}} downstream.

Links

Discussion