Create a new project connection
Creates a new connection within the specified project. Where a connection requires sensitive information such as a password or authorisation code, that must be created in the relevant secret vault prior to creating a connection. The name of that secret (and, where relevant, key within the secret) is then passed as part of the connection configuration.
For an example of how to use this endpoint as part of automating the provisioning and management of projects, see https://docs.maia.ai/docs/api-reference/provisioning-a-project
Path Parameters
Body
The parameters platformConnectionType, authProvider and authType are inter-dependent. The valid combinations are:
For the exact vault-secret format to send in connectionProperties — the field names and, for secret-backed fields, the {secretName, secretKey} references — for a given platformConnectionType, authProvider and authType, call GET /v1/connections/schema. That endpoint is the source of truth; the examples below are illustrative only.
The connection creation request containing all necessary details
The kind of secret being referenced. See the combinations table in the operation description for valid values per connection type.
GENERIC_SECRET, CLOUD_PROVIDER_SECRET, OAUTH_USER_TOKENS, OAUTH_AUTHORIZATION_CODE, OAUTH_CLIENT_CRED, COMPOSITE_TOKEN, OAUTH_1_0_X_ADS, USERNAME_PASSWORD "GENERIC_SECRET"
The different types of connection that can be created:
COMPONENT_BASIC— connect a component to a data source, API, or SaaS application using a secret stored in your secrets manager.CLOUD_PLATFORM_CREDENTIALS— give a project access to a cloud provider (AWS, Azure, Google Cloud) using cloud credentials stored in your secrets manager.COMPONENT— connect a component to a data source, API, or SaaS application whose auth fields vary byauthProvider/authType. SeeGET /v1/connections/schemafor the exact fields to send.
COMPONENT_BASIC, CLOUD_PLATFORM_CREDENTIALS, COMPONENT "COMPONENT_BASIC"
Response
Connection created successfully
The different types of connection that can be created:
COMPONENT_BASIC— connect a component to a data source, API, or SaaS application using a secret stored in your secrets manager.CLOUD_PLATFORM_CREDENTIALS— give a project access to a cloud provider (AWS, Azure, Google Cloud) using cloud credentials stored in your secrets manager.COMPONENT— connect a component to a data source, API, or SaaS application whose auth fields vary byauthProvider/authType.
COMPONENT_BASIC, CLOUD_PLATFORM_CREDENTIALS, COMPONENT "COMPONENT_BASIC"