Skip to main content

API Collection

This section explains how to create, configure, and use an API Collection data source in DataDios. API Collection is a Postman-style API workbench that lets you organize, execute, and test REST API requests directly within the platform.


How API Collection Works​

Unlike database or file-based data sources, an API Collection is a container -- it does not connect to a single external system at creation time. Instead, you create the data source first, then add individual API requests (with their own endpoints, authentication, headers, and bodies) inside it afterward.

Because of this design:

  • The Test Connection button validates that the container can be initialized. It does not test any external API endpoint -- there are none configured yet at this stage.
  • A successful "Connected to API Collection" message confirms the data source is ready to hold collections and requests. It does not mean an external service was reached.

This is expected behavior and matches the workbench pattern: the actual API connectivity happens when you execute individual requests within the collection.


Steps to Create an API Collection Data Source​

Step 1: Access Creation Dialog​

  1. Navigate to Data Explorer from the left navigation menu.
  2. Click + Add connection in the top-right corner.

Step 2: Select Type and Details​

  1. In the Create data source dialog, under Identity, enter a Name for the data source.
  2. Choose API Collection (under API HUB) as the Type.
  3. Under Connection Parameters, fill in Description for this API workbench (optional) — it is the only field on the form.

API Collection connection form

No connection parameters (host, credentials, etc.) are required at this stage. Alongside Connection the dialog carries a Drift tab, though drift scheduling isn't available yet for this connector type; there is no Workload or Profiling tab for this data source type.

Step 3: Test and Save​

  1. Click Test Connection to validate the configuration.
  2. Once validation succeeds ("Connected to API Collection"), click Create.
  3. The new data source appears in the Sources list on the Data Explorer page.

Working with Collections and Requests​

Click the connection's name in the Sources list to open it. Its Sources tab lists the collections and folders inside it; a new connection starts empty. Everything is added through one dialog, Create object in your connection, which Add item opens. Add item is on the connection's row, and at the top of the page once you are inside the connection.

  1. Add a collection. Set Node Type to collection, then give it a Name and the API's Base URL.
  2. Add a folder. Set Node Type to folder, name it, and choose where it goes under Parent collection/folder.
  3. Add a request. Node Type starts as request. Choose the parent collection or folder, then fill in Method, URL Path (for example /users/{id}), Params, Headers, Body Type and Auth Type.
  4. Run a request. On a request's row, click Execute item. It runs straight away and shows the response.
  5. Change or remove a request with Edit item or Delete item on its row. Collections and folders have neither, so to remove one you delete the whole connection.

Importing an OpenAPI or Swagger spec is not available in the new interface.

Auth Type starts as inherit. The other options are none, bearer, basic, apikey and oauth2_cc.

Authentication is inherited up the tree (Postman-style) -- setting auth on a collection applies it to all requests within, unless overridden at the request level.


Best Practices​

  1. Organize by domain -- group related APIs into separate collections (e.g., "Payments", "Users", "Inventory")
  2. Use collection-level auth -- set authentication at the collection level to avoid repeating credentials on every request
  3. Add descriptions -- document each collection and request so team members understand their purpose
  4. Use the SSRF allowlist -- if calling internal services, coordinate with your administrator to add trusted hosts to the API_COLLECTION_ALLOW_HOSTS environment variable

For general data source management, see Data Sources.