Overview
The Connector SDK is a powerful tool that allows you to create custom connectors for applications not directly supported by UnifyApps pre-built connectors library. It provides a framework for defining authentication methods, actions, and data schemas, enabling seamless integration with various APIs and services.
A custom connector can include authentications, actions, triggers, and settings. Each action and trigger must be deployed individually before it is available in automations.
This article will guide you through the process of creating and configuring a custom connector using the Connector SDK.
Create a custom connector
Go to Connectors > Custom Connectors to view and manage custom connectors, then select New Custom Connector.


Create a New Custom Connector
Creating a new custom connector involves defining its basic properties. This step sets the foundation for your connector's identity and purpose.


Click
New Custom Connectorin the top right corner.Enter the Connector Name (e.g., "Asana Custom Connector").
Provide a Description for better understanding.
Enter the Base URL — the root of the API every request sits under (e.g., https://api.example.com/v1). It can't be changed after you create the connector.
Optionally, enter a Connector Logo (a logo URL) and select Categories.
Click the
Createbutton.


Configure authentication
Defining how your connector will authenticate with the target application involves its Input, Connection Request, and Output tabs:
In the Authentication tab, click on "
New Authentication".Provide a name for the authentication method (e.g., "API Key").
Define the authentication type for the API request. Supported types are Access Token, Basic Auth, OAuth 2.0, OAuth 1.0, JWT Token, AWS Signature, and Custom.
Click the "
Create" button.

Set Up Input Schema
The input schema defines what information is required from the user for authentication.
In the Input tab, define the input required from the user to authenticate the API request.
You can set up the input schema with
Use Code Snippet(paste a JSON sample) orAdd Fields.Create a field (e.g., "Access Token") with the appropriate field type (e.g., String).


Configure Connection Request
Authentication is normally applied automatically to action requests. Only configure the Connection Request tab to manually place a credential, such as in a header, when the API requires a custom placement.
If a custom placement is required, pass the Access Token in the header.
Provide the key for the header (e.g., "Authorization").
Set the value for the header (e.g., "Bearer {{access_token}}").
Click the "
Save" button to establish authentication.
Create an action
Create a New Action
Each action represents a specific operation your connector can perform. New Action supports creating an action from scratch or importing an OpenAPI specification. This step allows you to define and name these operations.
Navigate to the Actions tab and click on “
New Action”Provide a name for the action (e.g., "Get Task Details").
Add a description (e.g., "Get task details using task ID in ASANA").
Click the "
Create" button.


Configure Action Input
Action inputs define the data required from the user to perform the action.
Create fields in the input schema as required (e.g., "Task ID" as a string).


Define HTTP Request
The HTTP request specifies how your connector interacts with the API. This step is crucial for ensuring your action communicates correctly with the target application.
Define the schema of the API manually or import a curl command.
If you need to Map dynamic values that are being fetched from input as path or query parameter or as a header, then use double curly braces (e.g., {{task_id}}).


Define Output Schema
The output schema defines what data your action will return.
Click on the Output tab.
Set up fields with
Add Fields, or useUse Code Snippetand paste a sample output JSON.Click the
Savebutton.


Deploy and Publish
Deploying and publishing makes your connector available for use. This final step brings your custom connector to life within the UnifyApps ecosystem.
Enable the
Deploy Actiontoggle to publish the action's saved changes and make the action available in automations.
Test the custom connector
Custom connectors become available in Automation Builder after their actions are deployed. Platform roles control access to specific connectors and connector actions. It is suggested that you test a newly created action in the automation builder by following below steps.
Create a new automation (e.g., "Get Task Details from Asana").
Select the trigger type (e.g., webhook).
Search for the custom connector and select the action that you have created.
Create a new connection by selecting the authentication type and provide the authentication information.
Provide the required inputs (e.g., Task ID).
Save the configuration.
Navigate to the Test tab and click "
Start New Test".Click the "
Run Test" button to execute the automation.View the input and output of your custom connector in the right pane.
By following these steps, you can successfully create, configure, and test a custom connector using the Connector SDK, allowing you to integrate with applications not directly supported by UnifyApps' prebuilt connectors. The Connector SDK empowers you to extend the capabilities of your UnifyApps environment, enabling seamless connections with a wide range of APIs and services.