POST
/
hubs
/
{hub_id}
/
users
/
{user_id}
/
connections

Path Parameters

hub_id
string
required
user_id
string
required

UserID references an End User in the Hub.

Most APIs support setting this value to either the internal Versori identifier or their external ID as determined by the organisation. The identifier_type query parameter is used to indicate which type of ID is being used.

Query Parameters

identifier_type
enum<string>
default: external

IdentifierType indicates whether the user_id path parameter is a internal identifier created by Versori, or an external identifier. If the value is external, some endpoints also require the hub query parameter to identify the correct Hub.

Available options:
internal,
external

Body

application/json
connectorId
string
required
connection
object
required

ConnectionCreate defines the connection to create against a Connector.

connection.name
string
required

Name is the name of the Connection.

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.

connection.variables
object[]
required

Response

201 - 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.