Vercel
Manage deployments and projects on Vercel.
On this page
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.
// 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);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "vercel",
"piece_action": "create_deployment",
"input": {
"project": "<project>",
"deployment_source": "redeploy"
},
"env": "dev"
}
}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.
| Input | Type | Description |
|---|---|---|
projectrequired | id (picked from your account) | Select a Vercel project. |
deployment_sourcerequired | one of "redeploy" | "git_source" | Choose whether to redeploy a previous deployment or deploy from a connected Git source. |
source_fieldsoptional | object (depends on other props) | Source Configuration |
force_newoptional | boolean | Create a new deployment even if a previous similar deployment exists. |
skip_auto_detection_confirmationoptional | boolean | Automatically confirm framework detection without prompting. |
list_projects
List Projects. Retrieve all Vercel projects for the authenticated user or team.
| Input | Type | Description |
|---|---|---|
searchoptional | text | Filter 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.
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Optional query parameters. For team-scoped requests, manually include `teamId` or `slug` here when needed. |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
get_deployment_status
Get Deployment Status. Retrieve a deployment and inspect its current status.
| Input | Type | Description |
|---|---|---|
projectrequired | id (picked from your account) | Select a Vercel project. |
deploymentrequired | id (picked from your account) | Select the deployment to inspect. |
with_git_repo_infooptional | boolean | Adds gitRepo information when available. |
list_environment_variables
List Environment Variables. Retrieve environment variables for a Vercel project.
| Input | Type | Description |
|---|---|---|
projectrequired | id (picked from your account) | Select a Vercel project. |
decryptoptional | boolean | Deprecated by Vercel. If enabled, Vercel will attempt to return decrypted values when allowed. |
git_branchoptional | text | Optional 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.
| Input | Type | Description |
|---|---|---|
projectrequired | id (picked from your account) | Select a Vercel project. |
keyrequired | text | Environment variable key. |
valuerequired | long text | Environment variable value. |
typerequired | one of "plain" | "sensitive" | "encrypted" | Vercel environment variable type. |
targetrequired | list of | Environment(s) where this variable should apply. |
git_branchoptional | text | Optional branch. Only valid when Preview is one of the selected targets. |
commentoptional | text | Optional 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