Build an ANY API connector

An ANY API connector reads an API that no ready-made source covers: you describe the API as a recipe, and DataMind runs it. DataMind's AI, Kartlos, builds that recipe with you, in the panel beside the connector's recipe editor, from the first draft to a confirmed recipe whose streams return real rows. This page covers how the assistant works; the connector screens are on Connect any API and The recipe editor.

The assistant beside the editor

How a build runs

  1. It reads the connector first, so it knows what already exists.
  2. If your request leaves open points, it asks once: which API, which kind of sign-in, which data sets, and what each stream syncs on. It skips the questions when the task is explicit, and it never asks for a secret value. You can attach screenshots of API documentation or responses, and it reads them.
  3. It researches the API and probes it with real requests. When the documentation and the real response disagree, the response wins.
  4. It drafts the recipe and writes it into the editor. On an unfamiliar API it starts with one stream and grows the recipe as the picture clears.
  5. It tells you which secrets to enter under Connection, and continues once each shows as set.
  6. It validates the recipe and reads every issue back: a fatal issue blocks the save, an error blocks confirmation. A host the recipe calls stays an issue until you approve it; see Hosts, streams and data access.
  7. It checks the connection the way Test Connection does: the recipe's check runs with the stored secrets, and nothing is loaded.
  8. It samples every stream the recipe declares, and one discovered instance of each template, so you see real rows and columns.
  9. It confirms the recipe and reports in a short list: the streams, the sign-in kind, the date column each stream syncs on, and what you do next.

Checking, saving and syncing

What the assistant will not do

Limits it works to

Questions, answered

How do I start a build with the assistant?

Add an ANY API connector in Lake and open its recipe editor. While the recipe is empty, Describe your API to the AI starts a build; you can also ask the assistant to change a recipe that already exists. The panel itself is The AI assistant.

What does the assistant do before it writes the recipe?

It reads the connector first: the saved recipe, the settings and the streams. Then it researches your API and probes it with real requests. When the documentation and the real response disagree, the response wins.

Which sign-in methods can a recipe use?

The usual kinds: an API key in a header, a bearer token, basic auth, OAuth with a client credential or a pasted refresh token, a JSON web token, or a username-and-password login that returns a session token. If your API needs bespoke signing, the assistant says so and points you to a Custom connector.

When is a build finished?

When the recipe is Confirmed and every stream it declares has been sampled with real rows, or with a 0-row result you accepted. Sampling proves the shape of the data; loading a table stays a separate step, and the assistant never claims rows landed.

What if a stream returns no rows?

It is not a failure. A stream that returns no rows without an error is a complete result; the assistant reports 0 rows and asks once whether that is expected, and only widens the read when you say so.

What happens if the same error keeps coming back?

It stops and asks. After the same error three times, or after five failed validation passes in a row, the assistant stops working the problem and waits for your decision; a refused change is never retried unchanged.

Can a recipe carry custom code?

No. Recipes are declarative, and executable components are refused. If your API needs custom code, use a Custom connector instead.

How many requests can the connector run at once?

At most 16, with a request timeout between 5 and 900 seconds. Parallel page fetching is allowed only for offset or page-number APIs with a stable sort.