Skip to main content

project_connectors

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

Overview

Nameproject_connectors
TypeResource
Idvercel.connect.project_connectors

Fields

The following fields are returned by SELECT queries:

A page of connector connections for the project.

NameDatatypeDescription
connector_idstringStable scl_ connector ID, even when the request used a UID. (wire: connectorId)
created_atnumberTime when the project connection was created, in epoch milliseconds. (wire: createdAt)
enabled_environmentsarrayEnvironments where the connector is enabled for the project. (wire: enabledEnvironments)
projectobjectVercel project connected to the connector.
updated_atnumberTime when the project connection was last updated, in epoch milliseconds. (wire: updatedAt)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectproject_idlimit, cursor, team_id, slugList the connectors connected to a project and the environments where each connection is available.

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
project_idstringVercel project ID.
cursorstringCursor from pagination.next on the previous response.
limitintegerMaximum number of connector connections to return. Defaults to 50.
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.
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)

SELECT examples

List the connectors connected to a project and the environments where each connection is available.

SELECT
connector_id,
created_at,
enabled_environments,
project,
updated_at
FROM vercel.connect.project_connectors
WHERE project_id = '{{ project_id }}' -- required
AND limit = '{{ limit }}'
AND cursor = '{{ cursor }}'
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;