Create a custom app by performing setup from scratch
+ Add App
in the Custom Apps section of Cobalt, choose + Create from Scratch
and specify Name, Description and Slug to identify the app within the Cobalt platform and click on Create
.
Authorization
in the App and choose the desired method.
The methods of Authorization are:
Key Based
Key Based
. It requires users to set up an API for generating access tokens.Select Key Auth type
Configure User Input Fields
Save
.Map Auth fields
Add Base URL
Setup Identifier and Validation
OAuth 2.0
OAuth 2.0
in the methods.Provide OAuth Credentials
Callback URL
in your developer OAuth 2.0 app.Add Authorization and Token URL
Client Authentication
type and Save
.Setup Refresh Mechanism and API Base URL
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.Extract Access Token & Refresh Token
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.Setup Identifier
No Auth
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.
Pagination
toggle.
In the Type
field, select the pagination type and provide the required fields and click on Save API Call
.