POST
/
o
/
{organisation_id}
/
connectors
/
{connector_id}
/
connections

Authorizations

Authorization
string
headerrequired

Bearer token authentication used by the Versori Platform. External consumers must provide an API key, however internal consumers must provide a JWT id_token issued by our IdP.

Path Parameters

organisation_id
string
required
connector_id
string
required

ID is the unique identifier of the Connector.

Body

application/json

ConnectionCreate defines the connection to create against a Connector.

name
string
required

Name is the name of the Connection.

credentials
object
required

ConnectionCredentialsCreate defines the Action and Trigger credentials for the owning Connector.

This supports defining multiple credentials for each type, which are applied to the request in the order they are defined. This is to enable Connectors which require both a user session token and an API key to be provided in the request.

This object can either define a reference to an existing Credential via the InferredReference object, or it can define a new Credential via the CredentialCreate object.

credentials.action
object[]
credentials.trigger
object[]
variables
object[]
required
variables.name
string
required

Name is the name of the connection variable.

variables.value
string
required

Value is the value of the connection variable.

Response

200 - application/json

Connection defines the Action and Trigger credentials for the owning Connector, and additional variables which can be used to customize the Connector in a particular connection.

id
string
required

ID is the unique identifier of the Connection. Typically this is only used internally and most (if not all) public-facing APIs will use the name in combination with the Connector's id instead.

name
string
required

Name is the name of the Connection. This must be unique within the owning Connector.

credentials
object
required

ConnectionCredentials defines the Action and Trigger credentials for the owning Connector. If multiple credentials are defined for each type, they are applied to the request in the order they are defined. This is to enable Connectors which require both a user session token and an API key to be provided in the request.

credentials.action
object[]
credentials.trigger
object[]
variables
object[]
required
variables.name
string
required

Name is the name of the connection variable.

variables.value
string
required

Value is the value of the connection variable.

createdAt
string
required

CreatedAt is the time the Connection was created.

updatedAt
string
required

UpdatedAt is the time the Connection was last updated.