Deploy LAUNCH
Overview
When you provide your integrations with LAUNCH, there are two ways you can give access to your users:
An Account LAUNCH has a built-in API account that all users use to access it.
A User LAUNCH needs you to create separate user profiles for each user in the Cyclr account.
To allow your users to access LAUNCH, you need to provide your users with a link or button within your application that directs your user to the LAUNCH URL.
Deploy LAUNCH request
You need to set up the link that you provide so that your application makes a request to the Cyclr REST API /v1.0/accounts/CYCLR_ACCOUNT_API_ID/launch
endpoint in order to obtain a LAUNCH URL. This directs your user to that URL when they select the link to your integrations. For more information about the endpoint, see the Interactive API reference page.
When you obtain a Cyclr API Access Token for this call, don’t use an Account Restricted Token.
Example request
Replace {CyclrAPIDomain}
with your API Domain according to the location of your Cyclr console, or your own domain if your Cyclr instance is self-hosted.
curl -X POST
-H "Authorization: Bearer ACCESS_TOKEN"
-H "Content-Type: application/json"
-H "Accept: application/json"
-d '{
"AccountName": "CYCLR_ACCOUNT_NAME",
"ConnectorAuthentications": [
{
"Name": "Example Connector",
"Version": "1.0",
"AuthValue": "XXXXXXXXXX",
"Properties": [
{
"Name": "Url",
"Value": "http://customDomain.appName.com"
}
]
}
]
}' "https://{CyclrAPIDomain}/v1.0/accounts/{CYCLR_ACCOUNT_API_ID}/launch"
Request parameters
Request Parameter | Type | Description |
---|---|---|
| string | API ID of the account to use. If an account with this API ID doesn’t exist, Cyclr creates a new account using this value. |
Account | ||
| string, optional. | If the |
| string, optional. | If the |
Launched Cycle Options | ||
| boolean | Defaults to |
| boolean | Defaults to |
Connector Authentications | ||
| array | Provide your own platform's Cyclr Connector objects so that your users don’t need to authenticate against your platform during the LAUNCH flow. |
| string | Name this instance of your connector in the account to help identify it. |
| string | Specify the version of the connector you want the user to install. |
| string | Provide the ID of the authentication method you want this instance of your Connector to use. If the Connector only supports one form of authentication, this value is optional. |
| string, optional. | (Optional) Provide the authentication value for your platform connector. If your platform requires a username and password, provide a base64 encoded version of |
| array, optional | Provide an array of any properties that the partner connector requires for successful installation. Note: Not all connectors require this array. |
LAUNCH Options | ||
| array, optional | Provide an array of tags to identify the integration. Am integration needs at least one tag to appear through LAUNCH. |
| boolean | This parameter defaults to |
| boolean | This parameter defaults to |
| boolean | This parameter defaults to |
| string | Provide a value to pass through to the final page of the LAUNCH flow. |
| boolean | This parameter defaults to |
| boolean | This parameter defaults to |
Deploy LAUNCH response
{
"AccountId": "CYCLR_ACCOUNT_API_ID",
"ExpiresAtUtc": "2020-01-01T12:30:00.000Z",
"LaunchUrl": "https://hostapp.cyclr.com/account/signinwithtoken?token=lld3UjpZKkuh0I7ObHR0EtxRsPo0No1GqNSyAi8pqXQ%3D&returnUrl=%2Flaunch",
"Token": "lld3UjpZKkuh0I7ObHR0EtxRsPo0No1GqNSyAi8pqXQ="
}
Response parameters
Response Field | Description |
---|---|
| The API ID of the account you provided in your request, or the API ID of the new account if one was created. |
| The date and time that the token and LAUNCH URL expires. |
| The URL that you can send your user to, typically in a popup browser window. When Cyclr generates the URL, it’s only valid for 5 minutes and expires after it’s first accessed. You can therefore direct your user to the URL immediately after you recieve it. |
When you deploy LAUNCH, your console displays an API User. The user has access to the account, but can’t sign in to the console themselves.
Deploy user LAUNCH
To deploy a user LAUNCH, you make a similar request to the Cyclr REST API’s /v1.0/users/launch
endpoint.
For more information about the endpoint, see the Interactive API reference page.
There are 3 additional properties to use in this Request:
Request Parameter | Type | Description |
---|---|---|
| string | The Cyclr Account API ID of the Account to use. If it doesn’t already exist, a new Account will be created. |
| string | Identifies the user. If the user doesn’t already exist, a new User will be created with these details. |
| string | Password of the user. |
Example request
curl -X POST
-H "Authorization: Bearer ACCESS_TOKEN"
-H "Content-Type: application/json"
-H "Accept: application/json"
-d '{
"AccountId": "{CYCLR_ACCOUNT_API_ID}",
"Username": "ExampleUser",
"Password": "P4$$w0rd",
"ConnectorAuthentications": [
{
"Name": "Example Connector",
"Version": "1.0",
"AuthValue": "XXXXXXXXXX",
"Properties": [
{
"Name": "Url",
"Value": "http://customDomain.appName.com"
}
]
}
]
}' "https://{CyclrAPIDomain}/v1.0/users/launch"