v1
latestOpenAPI 3.1.02026-07-22106199311.5 KBConnections
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
post/v1/projects/{projectId}/connections
Path parameters
projectIdstring required
The unique identifier of the project where the connection will be created
Request body
Example request
{
"authProvider": "salesforce",
"authType": "GENERIC_SECRET",
"connectionDetails": {
"connectionProperties": {
"credentialSecretName": "aws-platform-credentials"
}
},
"name": "my-secret",
"platformConnectionType": "COMPONENT_BASIC"
}Response
Connection created successfully
Example response
{
"authProvider": "salesforce",
"authType": "GENERIC_SECRET",
"connectionDetails": {
"connectionProperties": {
"credentialSecretName": "aws-platform-credentials"
}
},
"name": "my-secret",
"platformConnectionType": "COMPONENT_BASIC"
}