Sequin brings data from sources like Salesforce and HubSpot into Basedash so you can build custom interfaces on your API data. Changes you make to your API data in Basedash will be applied to the API and your database at the same time - allowing you build actions and workflows.

In this guide, we’ll show you how to use Sequin with Basedash to build on top of your API data.

Setup a Sequin sync

Before you can use Sequin with Basedash, you’ll need to create a sync. Sequin will guide you through authenticating, selecting the data you want to sync, and connecting to your database. Read our getting started guide for step-by-step instructions.

Create a Basedash Connection

A connection in Basedash is a connection to a database or API that you can use to build apps and pages.

Even if you previously created a Basedash connection for your Postgres database, you’ll want to setup a new Postgres connection for Sequin. That’s because you’ll use Sequin’s Postgres Proxy to interface with your Sequin-synced tables. The Proxy lets Sequin capture inserts, updates, and deletes you make in your database and commit them to the API.

Step 1: Go to your Basedash workspace, and select the Connections tab in the left-hand menu. Click the New connection + button.

Step 2: Select PostgreSQL from the list of connections and then click Other.

Step 3: Enter a display name for your connection, such as salesforce_sequin. On the next step, paste in the connection string from the Connection instructions tab of your Sequin dashboard:

Step 4: Click Connect data source. Basedash will now connect to your database via Sequin’s Proxy and verify the schema, tables, and columns you have access to.

Create a Basedash view

Now, Sequin is syncing your API data to Postgres. You’ve also connected Basedash to Postgres via Sequin’s Proxy. To start working with your data in Basedash, you’ll create views. A view helps you work with your data in a more structured way.

Step 1: In your Basedash workspace, click the New + button and select View.

Step 2: Select your Sequin connection from the list of connections. Basedash will show you a list of tables and views you have access to. Select the table you want to work with and then click Create view.

Basedash will generate a view of your API data. Customize the view to visualize your data in a helpful way. You can add filters, sorts, charts, segments and more.

Beyond just viewing your data, you can also create, update, and delete records in your view.

Create new records

  1. To create a new record, click the + Create new action on the right side bar.
  2. Enter a temporary id for your new record (Sequin will replace this with the real id from your source) and then enter the values for your new record.
  3. Then click Create - a new record will be simultaneously created in your API source and your database.

Update records

  1. To update a record, select the record you need to update in your view.
  2. Depending on your view’s configuration, make the changes you need right in the table, form, or in editor on the right.
  3. Basedash will save the changes to Sequin - and your source will be updated immediately.

Delete records

  1. To delete a record, select the record you want to delete.
  2. Click the delete button and confirm your choice.
  3. Basedash will delete the record from Sequin - and your source will be updated immediately.

Errors

When you’re creating, updating, or deleting data in Basedash, you may attempt to make a change that causes an error in the API source. For instance, you may enter an invalid email address, miss a required field, or attempt to duplicate a record. When this happens, you’ll see an error message in Basedash. The record will not be created, updated, or deleted in your database or in the API until you fix the error.


After you’ve created your first view, you’ll see a page in your workspace. You can customize this page to show summary information about your data using segments and graphs.

Create complex views using a query

If you need to create a more complex view, like one that combines data from several tables in your database, you can create query.

Step 1: In your Basedash workspace, click the New + button and select Query and pick your Sequin connection from the list.

Step 2: Write your SQL query. For example, to combine information about your accounts and opportunities in Salesforce:

select
  salesforce.account.*,
  salesforce.opportunity.*
from salesforce.account
join salesforce.opportunity
  on salesforce.account.api_id = salesforce.opportunity.account_id;

Step 3: Click Run query to see the results of your query. When you’re happy with the results, click Done to save the query.

Next steps

You can now use Basedash to build custom interfaces, dashboards, and interactions on top of sources like Salesforce, Airtable, and HubSpot. If you have any questions, please reach out to us.