Installed Account Connectors must be setup and authenticated before Cycles using them can run.
Cyclr supports several types of authentications in Connectors, these being the main 3:
AuthType | Description |
---|---|
API Key | Your user will provide an API Key from the third party application that gives access to the third party API. |
HTTP Basic | Your user will provide a username and password to access the third Party API. |
OAuth | Your user will be taken through an OAuth flow which will generate an access token that’s returned to Cyclr which is then used to access the third party API. |
For each Connector requiring authentication, take your user through the appropriate flow.
Note: Setting up an Account Connector through Cyclr’s API can be involved, depending on the authentication the Connector use and any additional properties that must be set.
Installing and authenticating the Connector within an Account through Cyclr’s interface, noting the options that are displayed and how each effects the actual values stored on the Account Connector itself is a good way to understand the process.
You can retrieve the current state of an Account Connector using this Cyclr API endpoint:GET /v1.0/account/connectors/{id}
Checking the Authentication Type #
To check the Authentication Type that an installed Account Connector requires, make the following call:
Request: #
GET /v1.0/account/connectors/{id}
Authorization Bearer ********************
X-Cyclr-Account: 00000000-0000-0000-0000-000000000000
Response: #
{
"Id": 0,
"Name": "Pipedrive",
"Description": null,
"AuthValue": null,
"Authenticated": false,
"Connector": {
"Id": 0,
"Name": "Pipedrive",
"Description": "Sales CRM for small teams with big ambitions.",
"Status": "Approved",
"Version": "1.0",
"Icon": null,
"AuthDescription": null,
"AuthType": "ApiKey",
"OAuth2Type": "Unknown",
"AuthScheme": null
},
"IsPartnerIntegrationConnector": false,
"Properties": [],
"CustomFields": []
}
In this example, the AuthType
for this Account Connector is “ApiKey”.
The Response also confirms that the Account Connector is not considered to have been authenticated yet, showing:"Authenticated": false
Account Connector Properties #
Before beginning the authentication process, you should set the values of any Parameters on the Account Connector that aren’t marked as Optional.
To identify what these Parameters are, look in the Connector
section you receive when making the Cyclr API call above for Parameters with IsAccountConnectorProperty
:true
and IsOptional
:false
.
You could provide some interface of your own to obtain the values for these Parameters from the user.
Call the POST /v1.0/account/connectors/{accountConnectorId}/properties
endpoint to set each of those values on your Account Connector.
The Account Connector should now be ready to authenticate.
API Key Authentication
HTTP Basic Authentication
OAuth Authentication