Any integration can be setup as Custom App and they function similarly to other pre-built integrations available in Cobalt.

Creating Custom Apps

To create a custom app, click on + Add App in the Apps section and specify Name, Description and Slug to identify the app within the Cobalt platform and click on Create
You can also generate Actions for the custom app by providing the OpenAPI Spec.
Custom App in the Apps list in Cobalt

Authentication Methods

Custom Apps support multiple authentication methods. To setup the Authorization for the Custom App, navigate to Authorization in the App and choose the desired method. The methods of Authorization are:
If the Custom App requires API Key based authentication, select Key Based. It requires users to set up an API for generating access tokens.Key-based authorizationFollow the steps below to setup your custom app:
1

Select Key Auth type

Select either of Basic Auth, Bearer Token or API Key as the auth mechanism.
2

Configure User Input Fields

Add the input fields that will be visible to your users asking for the required API credentials and click on Save.
3

Map Auth fields

Once you have added the required user input fields, map those fields now to setup auth data.Key-based authorization setup
4

Add Base URL

Provide the Base URL of the API endpoints for the custom app and the key code for Invalid API Credentials.
5

Setup Identifier and Validation

Optionally, you can also provide an endpoint which will be called to perform validation of the provided credentials.
Its recommended to provide a GET API endpoint to perform validation, so as to avoid modifying any data using the credentials.
Key-based auth validation
Congratulations!You have successfully setup a Key based Custom Application in Cobalt.
If you want to provide OAuth 2.0 type authorization, select OAuth 2.0 in the methods.OAuth 2.0 authorizationFollow the steps below to configure OAuth mechanism for your custom app:
1

Provide OAuth Credentials

Add the Client ID, Client Secret and the Scopes of the developer OAuth 2.0 app that you have created.
Ensure that you add the provided Callback URL in your developer OAuth 2.0 app.
2

Add Authorization and Token URL

Add the Authorization and Token URL required for OAuth authentication in the provided fields, select Client Authentication type and Save.
You can find both the URLs from the Authentication documentation of the custom app that you are setting up.
3

Setup Refresh Mechanism and API Base URL

In the API Setup section, provide the Base URL for the APIs and appropriate code i.e. Expired Access Token Codes which is received on token expiry for the Refresh mechanism to work.OAuth 2.0 Refresh mechanism
4

Setup Identifier and Validation

Optionally, you can also provide an endpoint which will be called to perform validation of the provided credentials.
Its recommended to provide a GET API endpoint to perform validation, so as to avoid modifying any data using the credentials.
5

Extract Access Token & Refresh Token

In the Auth Tokens Data section, you will provide the mapping using which the tokens can be extracted once received on callback on successful authorization.Usually an object is received after authorization which will be saved as access_token_response on Cobalt’s end and you need to provide the key mapping of the required fields from the object.Extract Access Token
Congratulations!You have successfully setup a OAuth 2.0 Custom Application in Cobalt.
Select this option if no authentication is required for accessing the custom app.

Custom Actions for App

Custom Apps support the addition of Actions of APIs.

Create Custom Action

Select Custom Actions, click on the New Action button and provide a Name and Description. Add any required or optional Fields for the API and add the API under API Call section.
Provide the API by breaking it into 2 parts i.e. Base URL and the Endpoint.
Actions in the Custom App

Enable Pagination for Custom Action

If the Action’s API supports pagination, then you can add it to the custom action. Go to the API Call section and enable the Pagination toggle. In the Type field, select the pagination type and provide the required fields and click on Save API Call. Actions Pagination in the Custom App