Set up: API, databases, Google and Microsoft

2 min read

Each connector type has its form in the panel's configuration tab. When you're done, Test (Ctrl+Enter) runs the saved configuration and shows what it brings; Save (Ctrl+S) saves.

REST API

  1. Pick the Method (GET, POST, PUT, PATCH or DELETE) and type the URL.
  2. Under Parameters, Headers, Body and Variables you add what the request sends (Add parameter, Add header, Add variable; the body can be JSON or text, with Format JSON).
  3. Authentication goes in Headers: for example Authorization = Bearer {{workspace.config_var.api_token}}. Store the token as a secret variable in Settings › Configuration Variables › Create variable; api_token is the variable's Key, not its name.

Databases (PostgreSQL, MySQL, Azure SQL / SQL Server)

  1. Fill in Host, Port, Database name, User and Password, and encryption (SSL Mode on PostgreSQL, Use SSL on MySQL, Encrypt connection on Azure SQL).
  2. Test connection checks that KoData reaches the server.
  3. Write the SQL query that brings the data.

MongoDB uses a connection string; BigQuery, your Google account.

Google and Microsoft

  1. Click Sign in with Google (or Microsoft) and authorize in the provider's window. You'll see Connected to with the account.
  2. Pick what to read: the spreadsheet and sheet (Sheets), the file (Excel), the Site and List (SharePoint), the Label or Folder and Days to fetch (Gmail, Outlook), the Calendar with Days back and Days ahead, the Team and Channel (Teams), the property and Date range (Analytics)…
  3. Disconnect removes the account.

Google Sheets reads the whole sheet: you don't set a cell range. If the column names aren't in row 1, set it in Header Row Number.

Variables and secrets

Type {{ in any field to use variables: {{workspace.config_var.<slug>}} (for example a token stored as a secret variable), {{current_user.*}}, {{query.<slug>.column}} (first row of a query) or {{params.*}}.

Flatten JSON

If the response has columns with nested JSON, Flatten opens one or more levels into columns.