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.
Connects the specified application using the provided authentication type and optional auth data.
The parameters for connecting the application.
Optional
payload?: Record<string, string>key-value pairs of authentication data required for the specified auth type.
The application slug.
Optional
type?: AuthTypeThe authentication type to use. If not provided, it defaults to keybased
if payload is provided, otherwise oauth2
.
A promise that resolves to true if the connection was successful, otherwise false.
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.
Delete the specified public workflow.
The workflow ID.
Disconnect the specified application and remove any associated data from Cobalt.
The application slug.
Optional
type: AuthTypeThe authentication type to use. If not provided, it'll remove all the connected accounts.
Execute the specified public workflow.
The execution payload.
Optional
payload?: Record<string, any>The payload to execute the workflow.
Optional
slug?: stringThe application's slug this workflow belongs to.
Optional
sync_execution?: booleanWhether to execute the workflow synchronously.
The workflow id or alias.
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 configs created for the specified application.
The application slug.
The configs created for the specified application.
Returns the specified workflow execution log.
The execution ID.
The specified execution log.
Returns the workflow execution logs for the linked account.
Optional
params: PaginationProps = {}The paginated workflow execution logs.
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.
Returns the execution payload for the specified public workflow.
The workflow ID.
The workflow payload response.
Returns the private workflows for the specified application.
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