Skip to main content

connectors

Creates, updates, deletes, gets or lists a connectors resource.

Overview

Nameconnectors
TypeResource
Idvercel.connect.connectors

Fields

The following fields are returned by SELECT queries:

The connector.

NameDatatypeDescription
idstringStable scl_ connector ID. Use this value directly in {connector}.
namestringConnector name within the owning team.
default_installation_idstringInstallation used when a token request does not specify an installation. (wire: defaultInstallationId)
display_namestringHuman-readable connector name. (wire: displayName)
type_namestringHuman-readable name of the connector type. (wire: typeName)
accent_colorstringHex accent color (e.g., #000000) for branding. (wire: accentColor)
app_tokensobjectApp-token capabilities and known grants for the connector. (wire: appTokens)
background_colorstringHex background color (e.g., #000000) for branding. (wire: backgroundColor)
client_urlstringProvider-side URL for viewing or managing the resource represented by the connector. The destination can be an app, account, phone line, or service instance, depending on the connector type. (wire: clientUrl)
connection_methodstringThe connection method this connector was created from, when the create request named one. (wire: connectionMethod)
created_atnumberCreation time in epoch milliseconds. (wire: createdAt)
created_byobjectPrincipal that created the connector. (wire: createdBy)
creation_modestringHow the connector row was originally created. New create paths stamp this explicitly; older rows may omit it. (managed, manual) (wire: creationMode)
devsitestringDeveloper website for the connected service.
docsitestringDeveloper documentation for the connected service.
eventsarrayKnown events this connector subscribes to (e.g. Slack bot events, GitHub webhook events). Names are type-specific and validated by the managed-create flow when forwarded to the third-party service.
iconstringConnector branding icon. SHA-1 hash that resolves to the uploaded icon through the Vercel avatar service. Consumers render this with https:​//vercel.com/api/www/avatar/{icon}.
managedobjectManaged connector metadata exposed without leaking the manager connector or installation identifiers.
redirect_uristringRedirect URI registered with the third-party service for this connector, if any. Used by startAuthorization/startInstallation to replay the exact URI back to the provider's token endpoint. Absent on connectors created before this field was introduced; those callers fall back to the https:​//connect.vercel.com/callback default. (wire: redirectUri)
reinstall_atnumberTime when this connector started requiring reinstallation because an installation-affecting app-token grant changed. (wire: reinstallAt)
servicestringBest-effort identifier of the third-party service this connector represents, independent of type. Examples: 'slack', 'mcp.linear.app', and 'auth.example.com'. Always present in API responses.
supported_subject_typesarrayToken subject types supported by the connector. (wire: supportedSubjectTypes)
supports_iconWhether the connector icon can propagate to the provider. (false, maybe, true) (wire: supportsIcon)
supports_installationbooleanWhether the connector supports an installation flow. (false, true) (wire: supportsInstallation)
supports_revocationbooleanWhether Connect can revoke tokens for this connector. (false, true) (wire: supportsRevocation)
supports_triggersbooleanWhether this connector type supports trigger webhooks. Derived from the type definition; indicates that triggers and triggerDestinations may be meaningful for this connector. (false, true) (wire: supportsTriggers)
targetstringWhich of the service's products/surfaces this connector points at.
trigger_destinationsarrayDestinations that incoming triggers should be forwarded to. Limited to 3 entries. Set the initial destination with triggerDestination during creation. Replace the complete set with PATCH /v1/connect/connectors/{connector}/trigger-destinations. (wire: triggerDestinations)
triggersobjectIncoming trigger configuration for the connector.
typestringConnector implementation type. (api-key, aws-alpha, custom, discord, github, linear, linq, microsoft-entra, microsoft-teams, oauth, photon, salesforce, sendblue, slack, snowflake, snowflake-wif)
type_iconstringIcon identifier supplied by the connector type. (wire: typeIcon)
uidstringTeam-scoped UID. URL-encode this value before using it in {connector}.
updated_atnumberLast update time in epoch milliseconds. (wire: updatedAt)
updated_byobjectPrincipal that most recently updated the connector. (wire: updatedBy)
user_tokensobjectUser-token capabilities and known grants for the connector. (wire: userTokens)
websitestringPublic website for the connected service.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectconnectorteam_id, slugGet the connector by ID. Accepts a dashboard/team requester or a deployment's project OIDC token; project requesters may only read connectors linked to their project and environment.
listselectlimit, cursor, project_id, search, type, service, sort, team_id, slugList connectors that belong to a team.
createinsertdata, type, service, connection_methodteam_id, slugCreate a connector and optionally link it to a project. Use type with complete provider data, or use service with connectionMethod so Connect can supply the type, endpoints, templates, and defaults.
updateupdateconnectorteam_id, slugUpdate a connector and return the connector with any service-side update signals that the caller must handle.
deletedeleteconnectorteam_id, slugDelete a connector, its project connections, and its installation records.
replace_trigger_destinationsexecconnector, destinationsteamId, slugReplace the full set of destinations that receive trigger requests for a connector.
get_tokenexecconnectorGet an access token for a connector identified by the path parameter and scoped to the requester.
create_authorization_requestexecconnectorCreate an authorization request for a connector and return the URL and verifier details needed to complete the flow.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
connectorstring
cursorstringCursor from pagination.next on the previous response.
limitintegerMaximum number of connectors to return. Defaults to 20.
project_idstringReturn only connectors connected to this project. (wire: projectId)
servicestringComma-separated provider or service identifiers.
slugstringThe team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected.
sortstringSort by name in ascending order, or by creation or update time in descending order.
teamIdstringThe team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected.
team_idstringThe team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. (wire: teamId)
typestringComma-separated connector types: slack, discord, github, linear, linq, salesforce, sendblue, snowflake, snowflake-wif, microsoft-entra, api-key, photon, oauth, or custom.

SELECT examples

Get the connector by ID. Accepts a dashboard/team requester or a deployment's project OIDC token; project requesters may only read connectors linked to their project and environment.

SELECT
id,
name,
default_installation_id,
display_name,
type_name,
accent_color,
app_tokens,
background_color,
client_url,
connection_method,
created_at,
created_by,
creation_mode,
devsite,
docsite,
events,
icon,
managed,
redirect_uri,
reinstall_at,
service,
supported_subject_types,
supports_icon,
supports_installation,
supports_revocation,
supports_triggers,
target,
trigger_destinations,
triggers,
type,
type_icon,
uid,
updated_at,
updated_by,
user_tokens,
website
FROM vercel.connect.connectors
WHERE connector = '{{ connector }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

INSERT examples

Create a connector and optionally link it to a project. Use type with complete provider data, or use service with connectionMethod so Connect can supply the type, endpoints, templates, and defaults.

INSERT INTO vercel.connect.connectors (
data,
icon,
background_color,
accent_color,
type,
service,
connection_method,
params,
target,
uid,
name,
project_id,
environments,
triggers,
trigger_destination,
events,
team_id,
slug
)
SELECT
'{{ data }}' /* required */,
'{{ icon }}',
'{{ background_color }}',
'{{ accent_color }}',
'{{ type }}' /* required */,
'{{ service }}' /* required */,
'{{ connection_method }}' /* required */,
'{{ params }}',
'{{ target }}',
'{{ uid }}',
'{{ name }}',
'{{ project_id }}',
'{{ environments }}',
{{ triggers }},
'{{ trigger_destination }}',
'{{ events }}',
'{{ team_id }}',
'{{ slug }}'
RETURNING
id,
name,
default_installation_id,
display_name,
type_name,
accent_color,
app_tokens,
background_color,
client_url,
connection_method,
created_at,
created_by,
creation_mode,
devsite,
docsite,
events,
icon,
managed,
redirect_uri,
reinstall_at,
service,
supported_subject_types,
supports_icon,
supports_installation,
supports_revocation,
supports_triggers,
target,
trigger_destinations,
triggers,
type,
type_icon,
uid,
updated_at,
updated_by,
user_tokens,
website
;

UPDATE examples

Update a connector and return the connector with any service-side update signals that the caller must handle.

UPDATE vercel.connect.connectors
SET
triggers = {{ triggers }},
events = '{{ events }}',
data = '{{ data }}',
icon = '{{ icon }}',
background_color = '{{ background_color }}',
accent_color = '{{ accent_color }}',
uid = '{{ uid }}',
name = '{{ name }}'
WHERE
connector = '{{ connector }}' --required
AND team_id = '{{ team_id}}'
AND slug = '{{ slug}}'
RETURNING
connector,
reconsent_needed,
reinstall_needed,
service_sync;

DELETE examples

Delete a connector, its project connections, and its installation records.

DELETE FROM vercel.connect.connectors
WHERE connector = '{{ connector }}' --required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

Lifecycle Methods

EXEC variables use wire (API) names.

Replace the full set of destinations that receive trigger requests for a connector.

EXEC vercel.connect.connectors.replace_trigger_destinations
@connector='{{ connector }}' --required,
@teamId='{{ teamId }}',
@slug='{{ slug }}'
@@json=
'{
"destinations": "{{ destinations }}"
}'
;