Query Parameters
Available options:
internal, external curl --request POST \
--url https://platform.versori.com/api/embedded/v1/hubs/{hub_id}/users/{user_id}/connections \
--header 'Content-Type: application/json' \
--data '{
"connectorId": "<string>",
"connection": {
"name": "<string>",
"credentials": {
"action": [
{
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"validationMessages": [
{}
],
"schemeType": "<string>"
},
"credential": {
"name": "<string>",
"type": "none",
"data": {}
}
}
],
"trigger": [
{
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"validationMessages": [
{}
],
"schemeType": "<string>"
},
"credential": {
"name": "<string>",
"type": "none",
"data": {}
}
}
]
},
"variables": [
{
"name": "<string>",
"value": "<string>"
}
]
}
}'{
"id": "<string>",
"name": "<string>",
"credentials": {
"action": [
{
"id": "<string>",
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"validationMessages": [
{
"text": "<any>",
"severity": "<any>",
"detail": "<any>"
}
],
"schemeType": "<string>"
},
"credential": {
"id": "<string>",
"organisationId": "<string>",
"type": "none",
"name": "<string>",
"usages": [
{
"connection": {}
}
],
"errors": [
"<string>"
],
"data": {},
"expiresAt": "2023-11-07T05:31:56Z"
}
}
],
"trigger": [
{
"id": "<string>",
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"validationMessages": [
{
"text": "<any>",
"severity": "<any>",
"detail": "<any>"
}
],
"schemeType": "<string>"
},
"credential": {
"id": "<string>",
"organisationId": "<string>",
"type": "none",
"name": "<string>",
"usages": [
{
"connection": {}
}
],
"errors": [
"<string>"
],
"data": {},
"expiresAt": "2023-11-07T05:31:56Z"
}
}
]
},
"variables": [
{
"name": "<string>",
"value": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}CreateEndUserConnection creates a new Connection for the given User. The Connection is used to authenticate the user to a Hub Connector.
This endpoint is typically only used for more bespoke implementations where an End User needs to authenticate to a Connector outside of the normal activation flow, for example where credentials are provided by another API and not through End User actions in the embedded UI.
curl --request POST \
--url https://platform.versori.com/api/embedded/v1/hubs/{hub_id}/users/{user_id}/connections \
--header 'Content-Type: application/json' \
--data '{
"connectorId": "<string>",
"connection": {
"name": "<string>",
"credentials": {
"action": [
{
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"validationMessages": [
{}
],
"schemeType": "<string>"
},
"credential": {
"name": "<string>",
"type": "none",
"data": {}
}
}
],
"trigger": [
{
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"validationMessages": [
{}
],
"schemeType": "<string>"
},
"credential": {
"name": "<string>",
"type": "none",
"data": {}
}
}
]
},
"variables": [
{
"name": "<string>",
"value": "<string>"
}
]
}
}'{
"id": "<string>",
"name": "<string>",
"credentials": {
"action": [
{
"id": "<string>",
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"validationMessages": [
{
"text": "<any>",
"severity": "<any>",
"detail": "<any>"
}
],
"schemeType": "<string>"
},
"credential": {
"id": "<string>",
"organisationId": "<string>",
"type": "none",
"name": "<string>",
"usages": [
{
"connection": {}
}
],
"errors": [
"<string>"
],
"data": {},
"expiresAt": "2023-11-07T05:31:56Z"
}
}
],
"trigger": [
{
"id": "<string>",
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"validationMessages": [
{
"text": "<any>",
"severity": "<any>",
"detail": "<any>"
}
],
"schemeType": "<string>"
},
"credential": {
"id": "<string>",
"organisationId": "<string>",
"type": "none",
"name": "<string>",
"usages": [
{
"connection": {}
}
],
"errors": [
"<string>"
],
"data": {},
"expiresAt": "2023-11-07T05:31:56Z"
}
}
]
},
"variables": [
{
"name": "<string>",
"value": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}internal, external