API Builder
Define a custom REST API as an integration in API Builder so workflows, dashboards, and agents can call its endpoints.
API Builder, the visual designer for custom integrations, defines a REST API for a system that has no built-in Intuidy integration. After you save the definition and add a credential, workflows, dashboards, and agents can call its endpoints.
Before you start
- Check Integrations for a built-in integration first. API Builder is for systems that don't have one.
- Have one of these ready: the API's OpenAPI document, the URL of its documentation, or its base URL, authentication method, and endpoints.
- Don't enter API keys or secrets in API Builder. You add them on the Integrations page after the definition is saved, as you do for any other integration.
- To have an AI agent draft the definition, the agent connects over AIPI, the Intuidy REST API. It needs an AIPI key with the scopes API Builder lists, created in Settings → AIPI Keys.
Choose how to start
Go to Integrations → Custom and select Create New Integration to open API Builder. There are four ways to make a definition.
| Way | What you provide | What happens |
|---|---|---|
| Import an OpenAPI document | An OpenAPI 3.x or Swagger 2.0 document: its URL, the URL of a documentation page, pasted text up to 5 MB, or a file of any size | Intuidy reads the document and creates a draft. |
| Discover from the web | A documentation URL or the API's name | Intuidy finds and reads the documentation, extracts endpoints, and scores the draft. |
| Use an AI agent | An agent connected to Intuidy, and the message API Builder provides | The agent reads the documentation and submits a draft for you to review. |
| Enter it manually | The base URL, the authentication method, and the endpoints | You fill in the form yourself. Knowledge of REST APIs helps, and each field explains what it needs. |
The first three produce a draft under Open drafts. Nothing becomes an integration until you load the draft, review it, confirm its hosts, and save it.
Start from a draft
Import an OpenAPI document
- Under Where the document is, choose Spec URL, Documentation page URL, Paste the document (up to 5 MB), or Upload a file (any size).
- Enter the URL, paste the document, or choose the file.
- Select Find & import.
Discover from the web
- Under Discover from documentation on the web, enter the Documentation URL, or enter the API's name in API name (web search).
- Select Discover from the web.
Intuidy identifies the documentation site, reads its pages, extracts endpoints, and scores the result. The draft shows Accuracy, Completeness, Pages read, and Reachability. When confidence is low, API Builder recommends continuing with an AI agent.
Have an AI agent draft it
- In Settings → AIPI Keys, create or choose an AIPI key with the scopes API Builder lists.
- Connect the agent to the Intuidy MCP server, the server AI assistants use to work with Intuidy, with the key as its bearer token. See MCP server.
- In API Builder, select Copy message and give the message to the agent.
- Wait for the agent's draft to appear under Open drafts. The list refreshes every 10 seconds.
Load a draft
- Under Open drafts, find the draft.
- Select Load.
The draft fills the form. Review it in the three parts described below. To remove a draft you don't need, select Discard draft.
Define the API
The form has three parts: Connection, Endpoints, and Review & save. A loaded draft arrives with these filled in; a manual definition starts empty.
Set the connection
- Enter a Display name, such as Northwind Supply CRM.
- Enter the Base URL of the API.
- Choose the authentication method.
- Select Next: Endpoints.
Description (optional), Default pagination (optional), and Headers on every call (optional) are also set here.
| Authentication method | What you define |
|---|---|
| No authentication | Nothing. |
| API key (header or query parameter) | Whether the key is sent in a header or a query parameter, the header or parameter name (for example X-API-Key or api_key), and an optional prefix placed before the key, such as Bearer or Token . |
| Bearer token | Nothing here. You add the token on Integrations after saving. |
| Basic auth (username / password) | Nothing here. You add the username and password on Integrations after saving. |
| OAuth 2.0 — client credentials | The Token URL, optional scopes and audience, the scope separator, and how the client credentials are sent: as form fields in the token request (most providers) or in an HTTP Basic authorization header. You enter the client id and secret on Integrations after saving. |
| OAuth 2.0 — authorization code (connect later) | The Authorization URL and Token URL. After saving, you register the OAuth app on Integrations, and each person then connects their own account. |
| Several secret headers | The header names, comma separated, for example X-Client-Id, X-Client-Secret. |
The default pagination says how list endpoints page. An endpoint can override it.
| Pagination | What you define |
|---|---|
| None | Nothing. |
| Page number | The page parameter. |
| Offset | The offset parameter. |
| Cursor in the response | The cursor parameter and the path to the next cursor in the response, such as meta.next_cursor. |
| Next-page link in the response | The path to the next link in the response, such as links.next. |
You can also set a page-size parameter and a page size.
Add endpoints
- Select Add an endpoint.
- Enter the path. A path is required.
- Enter a name, such as Get all users, and one sentence on what the endpoint returns or does.
- Choose whether the endpoint reads or writes.
- Select Add parameter for each parameter the endpoint takes.
- Add the endpoint to the list, and repeat for each endpoint you need.
- Select Next: Review.
These options shape what an endpoint returns:
| Option | What it does |
|---|---|
| Paste a sample response | Paste example JSON and select Analyze JSON to pick the root and fields from it. The sample is saved with the endpoint as documentation and is never sent to the API. |
| Root path (the list of rows) | The path to the rows in the response, such as data.items. Leave it blank when the response itself is the row or list. |
| Output columns | The columns each row returns. Select Add column or Add all fields, then give each column a name (letters, digits, and underscores) and its path in the row, such as attributes.name. With no columns chosen, each row is returned as it comes. |
| This endpoint pages differently from the default | Sets pagination for this endpoint only. |
In a long list, use Find endpoints to search by path, name, or tag.
Review and save
- Wait for API Builder to check the definition, and fix anything listed under Fix these before saving.
- Under Hosts that will receive the credential, select each host to confirm it is the system you intend.
- Select Save integration.
Intuidy refuses calls to any host you didn't confirm, even after the integration is saved. A host that uses plain http or a bare IP address is marked. For plain http you also confirm that the credential and the data travel unencrypted.
If the API needs no credential, you can check the definition before saving: under Test a read endpoint, choose an endpoint and select Run test call.
Add the credential
The saved integration appears under Integrations → Custom. Its endpoints become usable when it has a credential.
- Go to Integrations → Custom.
- Select Connect on the integration.
- Enter the credential the API needs, such as the key, the token, or the client id and secret.
For an authorization code integration, register the OAuth app before anyone connects. Under OAuth app, copy the redirect URI and register it with the provider. Then enter the Client id and the client secret, which stays blank for a public client, and select Save app. Each person then connects their own account from Integrations.
To check that it works, select Edit Definition on the integration, go to Review & save, choose an endpoint under Test a read endpoint, and select Run test call. The call returns rows from the API.
To change the definition later, select Edit Definition, make your changes, and select Save changes.
Troubleshooting
- No OpenAPI document was found there. The URL doesn't lead to a document Intuidy can read. Try a different URL, or enter the API by hand.
- The file is not an OpenAPI 3.x or Swagger 2.0 document. Import a document in one of those two formats, or use web discovery instead.
- Nothing verifiable was extracted. Web discovery found no endpoints it could confirm. Try a documentation URL, an OpenAPI import, or an AI agent.
- Accuracy shows Unverified. None of the pages the draft cites could be read, so accuracy is unknown rather than low. Check each endpoint against the API's documentation before saving.
- No hosts yet — the base URL is missing or invalid. Go back to Connection and correct the Base URL.
- This API needs a credential. A test call can't run until the credential exists. Save the integration, add the credential under Integrations → Custom, then test from Edit Definition.
- Params must be a JSON object. Enter the test parameters as a JSON object, for example
{"limit": 10}.
For problems after the integration is connected, see Troubleshoot connections.
↳ Connect an integration ↳ Share a connection ↳ MCP server