Skip to main content

configurations

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

Overview

Nameconfigurations
TypeResource
Idvercel.integrations.configurations

Fields

The following fields are returned by SELECT queries:

The configuration with the provided id

NameDatatypeDescription
idstringThe unique identifier of the configuration (example: icfg_3bwCLgxL8qt5kjRLcv2Dit7F)
accepted_policies_inherited_from_installation_idstringHistorical parent installation from which acceptedPolicies were inherited. This is immutable provenance, not current authorization or relationship truth. (wire: acceptedPoliciesInheritedFromInstallationId)
external_idstringAn external identifier defined by the integration vendor. (wire: externalId)
integration_idstringThe unique identifier of the app the configuration was created for (example: oac_xzpVzcUOgcB1nrVlirtKhbWV) (wire: integrationId)
owner_idstringThe user or team ID that owns the configuration (example: kr1PsOIzqEL5Xg6M4VZcZosf) (wire: ownerId)
team_idstringWhen the configuration was created for a team, this will show the ID of the team. (example: team_nLlpyC6RE1qxydlFKbrxDlud) (wire: teamId)
user_idstringThe ID of the user that created the configuration. (example: kr1PsOIzqEL5Xg6M4VZcZosf) (wire: userId)
can_configure_open_telemetryboolean (false, true) (wire: canConfigureOpenTelemetry)
completed_atnumberA timestamp that tells you when the configuration was installed successfully (wire: completedAt)
created_atnumberA timestamp that tells you when the configuration was created (wire: createdAt)
customer_delete_requested_atnumberRecord when the customer initited deletion, independent of whether deleteRequestedAt gets set. (wire: customerDeleteRequestedAt)
delete_requested_atnumberA timestamp that tells you when the configuration deletion has been started for cases when the deletion needs to be settled/approved by partners, such as when marketplace invoices have been paid. (wire: deleteRequestedAt)
deleted_atnumberA timestamp that tells you when the configuration was deleted. (wire: deletedAt)
disabled_atnumberA timestamp that tells you when the configuration was disabled. Note: Configurations can be disabled when the associated user loses access to a team. They do not function during this time until the configuration is 'transferred', meaning the associated user is changed to one with access to the team. (wire: disabledAt)
disabled_reasonstring (account-plan-downgrade, disabled-by-admin, disabled-by-owner, feature-not-available, original-owner-left-the-team, original-owner-role-downgraded) (wire: disabledReason)
installation_typestringDefines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external' (external, marketplace) (wire: installationType)
notificationobject
project_selectionstringA string representing the permission for projects. Possible values are all or selected. (all, selected) (example: all) (wire: projectSelection)
projectsarrayWhen a configuration is limited to access certain projects, this will contain each of the project ID it is allowed to access. If it is not defined, the configuration has full access.
scopesarrayThe resources that are allowed to be accessed by the configuration.
slugstringThe slug of the integration the configuration is created for. (example: slack)
sourcestringSource defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics. (backoffice, cli, deploy-button, external, import-recommended-integrations, marketplace, oauth, organization, resource-claims, v0) (example: marketplace)
statusstringThe configuration status. Optional. If not defined, assume 'ready'. (error, onboarding, pending, ready, resumed, suspended, uninstalled)
transfer_request (wire: transferRequest)
typestring (integration-configuration)
updated_atnumberA timestamp that tells you when the configuration was updated. (wire: updatedAt)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidteam_id, slugAllows to retrieve a the configuration with the provided id in case it exists. The authenticated user or team must be the owner of the config in order to access it.
listselectviewinstallation_type, integration_id_or_slug, team_id, slugAllows to retrieve all configurations for an authenticated integration. When the project view is used, configurations generated for the authorization flow will be filtered out of the results.
deletedeleteidteam_id, slugAllows to remove the configuration with the id provided in the parameters. The configuration and all of its resources will be removed. This includes Webhooks, LogDrains and Project Env variables.
connect_resource_to_projectexecintegration_configuration_id, resource_id, projectIdteamId, slugConnects an integration resource to a Vercel project. This endpoint establishes a connection between a provisioned integration resource (from storage APIs like POST /v1/storage/stores/integration/direct) and a specific Vercel project.

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
idstring
integration_configuration_idstring
resource_idstring
viewstring
installation_typestring (wire: installationType)
integration_id_or_slugstringID of the integration (wire: integrationIdOrSlug)
slugstringThe Team slug to perform the request on behalf of.
teamIdstringThe Team identifier to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples

Allows to retrieve a the configuration with the provided id in case it exists. The authenticated user or team must be the owner of the config in order to access it.

SELECT
id,
accepted_policies_inherited_from_installation_id,
external_id,
integration_id,
owner_id,
team_id,
user_id,
can_configure_open_telemetry,
completed_at,
created_at,
customer_delete_requested_at,
delete_requested_at,
deleted_at,
disabled_at,
disabled_reason,
installation_type,
notification,
project_selection,
projects,
scopes,
slug,
source,
status,
transfer_request,
type,
updated_at
FROM vercel.integrations.configurations
WHERE id = '{{ id }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

DELETE examples

Allows to remove the configuration with the id provided in the parameters. The configuration and all of its resources will be removed. This includes Webhooks, LogDrains and Project Env variables.

DELETE FROM vercel.integrations.configurations
WHERE id = '{{ id }}' --required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

Lifecycle Methods

EXEC variables use wire (API) names.

Connects an integration resource to a Vercel project. This endpoint establishes a connection between a provisioned integration resource (from storage APIs like POST /v1/storage/stores/integration/direct) and a specific Vercel project.

EXEC vercel.integrations.configurations.connect_resource_to_project
@integration_configuration_id='{{ integration_configuration_id }}' --required,
@resource_id='{{ resource_id }}' --required,
@teamId='{{ teamId }}',
@slug='{{ slug }}'
@@json=
'{
"projectId": "{{ projectId }}",
"envVarEnvironments": "{{ envVarEnvironments }}",
"makeEnvVarsSensitive": {{ makeEnvVarsSensitive }}
}'
;