To enable your users to view a Marketplace, simply present a “Connect” button or link within your application’s UI.

For example:

Generic Host Application

When a user clicks the Connect button, your application server should make a request towards the Cyclr REST API’s /v1.0/users/marketplace endpoint:

Example Request to create a new Cyclr Account and obtain a Marketplace URL

This would create a new Cyclr Account, a new Cyclr User within that Account, and install a platform’s Cyclr Connector into it using the partnerConnector object. You can use the partnerConnector object to provide authentication details and other properties, to avoid your user having to set it up themselves.

curl -X POST
-H "Authorization: Bearer ${ACCESS_TOKEN}"
-H "Content-Type: application/json"
-H "Accept: application/json"

-d '{
    "MarketplaceId": 27
    "Username": "", 
    "Password": "password",
    "AccountName": "Customer X",
    "partnerConnector": {
        "Name": "Connector Name",
        "Version": "1.0",
        "AuthValue": "00000000000000000000000000000000000000000",
        "Properties": [{"Name": "Url", "Value": "https://myapp.something.blah"}]
}' "https://yourCyclrInstance/v1.0/users/marketplace"

Example Request to use an existing Cyclr Acccount and obtain a Marketplace URL

This tells Cyclr the existing Account to work against and the Cyclr User to impersonate.

curl -X POST
-H "Authorization: Bearer ${ACCESS_TOKEN}"
-H "Content-Type: application/json"
-H "Accept: application/json"

-d '{
    "MarketplaceId": 27
    "Username": "", 
    "Password": "password",
    "AccountId": "0000000-0000-0000-0000-000000000000"
}' "https://yourCyclrInstance/v1.0/users/marketplace"

In the examples above, replace yourCyclrInstance with,, or your own domain if your Cyclr instance is self-hosted.

You must use a Cyclr Partner OAuth token as the Bearer token in this Request.

Full Request Parameter Reference

Request Parameter Description Example Value
MarketplaceId The numeric ID of the Marketplace to view.
You can find this through your Cyclr Console in your web browser's address bar after pressing **Edit** on your Marketplace, e.g.:
AccountId If the Cyclr Account you wish to work with already exists, specify its Id here. If it doesn't exist, provide a value in the AccountName property instead. 0000000-0000-0000-0000-000000000000
AccountName If the Cyclr Account you wish to work with already exists, ignore this property and specify its Id in AccountId. If it doesn't exist, use this property to provide a name for a new Cyclr Account. New Cyclr Account
Username The email address of an existing User to impersonate, or a new User to create.
Password The password of the existing User specified in the Username parameter, or the password to assign them if they don't exist. If you do not intend your end users to access the Cyclr application directly themselves, this password can be an obscure value known only to your app. c0mpl3x_P455w0rd
partnerConnector (Optional) Providing your own platform's Cyclr Connector object here means your users will not be expected to authenticate against your platform during the Marketplace flow.
    partnerConnector.Name A name you wish to give this instance of your Connector installed within the new or existing account. Connector Name
    partnerConnector.Version The version of the partner connector to be installed. 1.0
    partnerConnector.AuthValue (Optional) Authentication value for your platform connector. If your platform requires a username and password, provide a base64 encoded version of "username:password". Provide API keys as plain text. An OAuth token may also be provided here. dXNlcm5hbWU6cGFzc3dvcmQ=
    partnerConnector.[Properties] An array of properties required by the partner connector for successful installation. This is not relevant to all connectors. [ {"Name": "Url", "Value": ""} ]
InlineOAuth (Optional) Defaults to true. Set it to false if you are running Marketplace in an HTML iframe and want OAuth redirect pages to be opened in a popup. false

Example Response

    "AccountId": "0000000-0000-0000-0000-000000000000",
    "ExpiresAtUtc": "2020-01-01T12:30:00.000Z",
    "MarketplaceUrl": "",
    "Token": "lld3UjpZKkuh0I7ObHR0EtxRsPo0No1GqNSyAi8pqXQ="
Response Field Description Example Value
AccountId The ID of the newly created account, or the existing account you provided in your request. 0000000-0000-0000-0000-000000000000
ExpiresAtUtc When the Token and MarketplaceUrl will expire. 2020-01-01T12:30:00.000Z
MarketplaceUrl The URL that your user should be sent to, typically opened in a popup browser window. Once generated by Cyclr, this URL will only be valid for 5 minutes and will expire when first accessed. You should therefore direct your user to it immediately after receiving it.
Token Marketplace URL token. lld3UjpZKkuh0I7ObHR0EtxRsPo0No1GqNSyAi8pqXQ=
Tags: launch
Edit me