Vercel

Manage deployments and projects on Vercel.

Developer toolsAPI key6 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (6)
  4. create_deployment
  5. list_projects
  6. custom_api_call
  7. get_deployment_status
  8. list_environment_variables
  9. upsert_environment_variable
  10. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("vercel", action, input) resolves with the provider's answer and rejects when Vercel isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "vercel"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Vercel when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellVercel = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Vercel isn't connected.
  const output = await step.run("Vercel", () =>
    step.ctx.integrations.invoke("vercel", "create_deployment", {
      "project": "<project>",
      "deployment_source": "redeploy"
    }),
  );
  step.ctx.log("Vercel answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "vercel",
    "piece_action": "create_deployment",
    "input": {
      "project": "<project>",
      "deployment_source": "redeploy"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/vercel/create_deployment" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"project":"<project>","deployment_source":"redeploy"}}'

Actions

create_deployment

Create Deployment. Create a deployment for an existing Vercel project using either a redeploy source deployment ID or a git source payload.

InputTypeDescription
projectrequiredid (picked from your account)Select a Vercel project.
deployment_sourcerequiredone of "redeploy" | "git_source"Choose whether to redeploy a previous deployment or deploy from a connected Git source.
source_fieldsoptionalobject (depends on other props)Source Configuration
force_newoptionalbooleanCreate a new deployment even if a previous similar deployment exists.
skip_auto_detection_confirmationoptionalbooleanAutomatically confirm framework detection without prompting.

list_projects

List Projects. Retrieve all Vercel projects for the authenticated user or team.

InputTypeDescription
searchoptionaltextFilter projects by name.

custom_api_call

Custom API Call. Make a custom API call to Vercel. The Authorization header is injected automatically. If your connection uses Team ID or Team Slug, add `teamId` or `slug` manually in the URL or Query Parameters for team-scoped requests.

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectOptional query parameters. For team-scoped requests, manually include `teamId` or `slug` here when needed.
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

get_deployment_status

Get Deployment Status. Retrieve a deployment and inspect its current status.

InputTypeDescription
projectrequiredid (picked from your account)Select a Vercel project.
deploymentrequiredid (picked from your account)Select the deployment to inspect.
with_git_repo_infooptionalbooleanAdds gitRepo information when available.

list_environment_variables

List Environment Variables. Retrieve environment variables for a Vercel project.

InputTypeDescription
projectrequiredid (picked from your account)Select a Vercel project.
decryptoptionalbooleanDeprecated by Vercel. If enabled, Vercel will attempt to return decrypted values when allowed.
git_branchoptionaltextOptional branch filter. Only valid for preview-scoped variables.

upsert_environment_variable

Upsert Environment Variable. Create or update a Vercel environment variable using Vercel's upsert API.

InputTypeDescription
projectrequiredid (picked from your account)Select a Vercel project.
keyrequiredtextEnvironment variable key.
valuerequiredlong textEnvironment variable value.
typerequiredone of "plain" | "sensitive" | "encrypted"Vercel environment variable type.
targetrequiredlist ofEnvironment(s) where this variable should apply.
git_branchoptionaltextOptional branch. Only valid when Preview is one of the selected targets.
commentoptionaltextOptional note describing the variable usage.

Details

Id
vercel
Category
Developer tools
Tags
hosting, deployment, serverless, frontend
Package
@activepieces/piece-vercel@0.0.1
Runs
Through the integration runner