POST
/v1/global-connectionsCreate a global connection
Creates a global connection for the supplied piece and projects. Choose a supported connection type and provide its matching value object; the schema includes secret text, OAuth 2.0, and cloud OAuth 2.0 configurations.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Global connection details. The required fields depend on the connection type.
displayNamestringrequired
externalIdstringoptional
metadataobjectoptional
pieceNamestringrequired
pieceVersionstringoptional
preSelectForNewProjectsbooleanoptional
projectIdsarray<string>required
scopestringrequired
typestringrequired
valueobjectrequired
201Returns the created global connection, including its identifier, display name, piece, associated projects, scope, status, and timestamps.
createdstringrequired
displayNamestringrequired
externalIdstringrequired
flowIdsarray<string>optional
idstringrequired
metadataobjectoptional
ownerobjectoptional
ownerIdstringoptional
pieceNamestringrequired
pieceVersionstringrequired
platformIdstringoptional
preSelectForNewProjectsbooleanrequired
projectIdsarray<string>required
scopestringrequired
statusstringrequired
typestringrequired
updatedstringrequired
usingSecretManagerbooleanrequired
Error handling
Provide displayName, pieceName, type, value, scope, and projectIds. The visible connection variants require scope to be PLATFORM; for SECRET_TEXT, value requires type and secret_text, while OAUTH2 requires client_id, code, scope, client_secret, redirect_url, and type.