Read a public JSON endpoint with the REST API Connector
Test a read-only endpoint, select the array that contains its records, and preview the fields before creating a virtual table.
Use the REST API Connector to read records from an external service. If you’re building an integration that calls Mainbase’s API, see create an Inbound API key. This guide uses a public endpoint that returns JSON with a GET request.
Save a connection
- In workspace settings, open REST API and select Add Connection. Install the REST API Connector first if it’s missing. You need permission to manage the connector.
- In Base URL, enter the URL of a public endpoint documented by your provider. For example, a service could publish a list of stations at
https://api.example.org/v1/stations. - In Authentication Type, choose No Authentication for this public endpoint. Select Next to run the connection test automatically. The test checks that the service responds successfully.
- After the test succeeds, select Next, name the connection, and choose Create Integration.
Select and verify the records
-
In the connection’s actions menu, choose Create Virtual Table. Under Configure Endpoint, check the full API Endpoint URL and select GET as the HTTP Method.
-
In Discover Data, set Data Path (Optional) to the array you want to use. In the example below, enter
data.stations. Leave the field empty if the response is already an array.{ "data": { "stations": [ { "id": "st-01", "name": "Central Station" } ] } } -
Select Analyze API Response. Check Detected Fields for the properties of a single record, such as
idandname. If the fields are missing or you see a wrapper such asdata, check the sample response, correct the path, and analyze it again. -
Review Preview Data, use Map Fields to select and name the columns you need, then complete Create Table. Open the virtual table and check a few rows against the preview.
Discover and check a read-only REST API endpoint
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy a question to get started
- How do I create a Kanban view?
- How do I invite a teammate?
- Why is a record missing from this view?