The options to configure the Cobalt SDK.
Optional
baseUrl?: stringThe base URL of the Cobalt API. You don't need to set this.
Optional
token?: stringThe session token.
Returns the specified config, or creates one if it doesn't exist.
The payload object for config.
The specified config.
Connect the specified application, optionally with the auth data that user provides.
The application slug.
Optional
payload: Record<string, string>The key value pairs of auth data.
Whether the connection was successful.
Create a lead for an ecosystem app.
The payload object for the lead.
Create a public workflow for the linked account.
The payload for creating a public workflow for the linked account.
Optional
description?: stringThe workflow description.
The workflow name.
Optional
slug?: stringThe application slug in which this workflow should be created.
The created public workflow.
Delete the specified config.
The application slug.
Optional
configId: stringThe unique ID of the config.
Delete the specified config field value.
The application slug.
The unique ID of the field.
Optional
workflowId: stringThe unique ID of the workflow.
Disconnect the specified application and remove any associated data from Cobalt.
The application slug.
Returns the list of enabled applications and their details.
The list of applications.
Returns the application details for the specified application, provided the application is enabled in Cobalt.
The application slug.
The application details.
Returns the specified config.
The application slug.
Optional
configId: stringThe unique ID of the config.
The specified config.
Returns the specified field of the config.
The application slug.
The unique ID of the field.
Optional
workflowId: stringThe unique ID of the workflow.
The specified config field.
Returns the options for the specified field.
The selected value of the lhs field.
The application slug.
The unique ID of the field.
Optional
workflowId: stringThe unique ID of the workflow, if this is a workflow field.
The specified rule field's options.
Optional
params: PublicWorkflowsPayloadOptional
limit?: numberOptional
page?: numberOptional
slug?: stringUpdate the specified config.
The update payload.
The specified config.
Update the specified config field value.
The application slug.
The unique ID of the field.
The new value for the field.
Optional
workflowId: stringThe unique ID of the workflow.
The updated config field.
Cobalt Frontend SDK