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
Authorizations
a valid bearer token
Path Parameters
The unique identifier of the project where the connection will be created
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$Body
The parameters platformConnectionType, authProvider and authType are inter-dependent. The valid combinations are:
| platformConnectionType | authProvider | authType | Use this for |
|---|---|---|---|
| COMPONENT_BASIC | NONE | GENERIC_SECRET | Creating simple secret definitions |
| COMPONENT_BASIC | (connector name e.g. salesforce) | OAUTH_CLIENT_CRED, OAUTH_USER_TOKENS, OAUTH_AUTHORIZATION_CODE | OAuth secrets stored for the named provider |
| COMPONENT_BASIC | netsuite | COMPOSITE_TOKEN | Creating NetSuite composite-token secrets |
| COMPONENT_BASIC | x-ads | OAUTH_1_0_X_ADS | Creating X Ads OAuth 1.0 secrets |
| CLOUD_PLATFORM_CREDENTIALS | aws | CLOUD_PROVIDER_SECRET | Creating AWS cloud credentials |
| CLOUD_PLATFORM_CREDENTIALS | gcp | CLOUD_PROVIDER_SECRET | Creating GCP cloud credentials |
| CLOUD_PLATFORM_CREDENTIALS | azure | CLOUD_PROVIDER_SECRET | Creating AZURE cloud credentials |
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 "GENERIC_SECRET"
The name of the connection
1"my-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, GCP) using cloud credentials stored in your secrets manager.
COMPONENT_BASIC, CLOUD_PLATFORM_CREDENTIALS "COMPONENT_BASIC"
The authentication provider
"salesforce"
Provides the definition of the values of the connection which will vary by connection type. Includes:
- Location of any sensitive values (secret location and name)
- Any non-sensitive values (url, username)
Response
Connection created successfully
The authentication provider
"salesforce"
The authentication type
GENERIC_SECRET, CLOUD_PROVIDER_SECRET, OAUTH_USER_TOKENS, OAUTH_AUTHORIZATION_CODE, OAUTH_CLIENT_CRED, COMPOSITE_TOKEN, OAUTH_1_0_X_ADS "GENERIC_SECRET"
Provides the definition of the values of the connection which will vary by connection type. Includes:
- Location of any sensitive values (secret location and name)
- Any non-sensitive values (url, username)
The user who created the connection
The date and time when the connection was created
The name of the connection
"my-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, GCP) using cloud credentials stored in your secrets manager.
COMPONENT_BASIC, CLOUD_PLATFORM_CREDENTIALS "COMPONENT_BASIC"
The project ID this connection belongs to
