Custom connections
When nothing ready-made connects Cadreen to a service, you can ask it to build a connection from the API's own specification. You see the plan, a workspace admin approves it, and only then can executions use it.
How does it work?
- Ask. In Connected services, choose Connect a service, then Build it for me. You can also get here when an API spec or server address doesn't work, from an empty search of pre-built integrations, or from an execution that needs a service.
- Cadreen looks for an existing way first. It searches pre-built integrations, API specifications and MCP servers. For a service name such as “Acme Pay”, the API specification search looks on the service's own site, in its documentation, in a public directory of API descriptions and on the web. It tells you one of three things: it found something, it found nothing, or it couldn't search everywhere. A place it couldn't check is named, and kept apart from a place that was searched and had nothing; a place with nothing to look up by is never listed as searched. When it finds a description on the web, the card says which domain it came from (“a domain named …”) and leaves it to you to judge. A domain named like the service is not proof that it is the service's.
- You choose to build. Nothing is sent to the service until you do. Give or confirm the API's address, and, if you have it, the address of its OpenAPI or Swagger specification. A service name alone isn't enough.
- Cadreen builds it. Research, design and build read the API and its specification only. The card shows each step as it happens. You can pause, resume or cancel while it builds.
- You check drafted calls. When the API has no specification, Cadreen may draft calls from its documentation. Each drafted call waits for you: keep it or remove it. Nothing is tested or added while a draft remains. Calls are never guessed silently.
- You add a credential, if the API needs one. The card asks for exactly what the API declares (a token, a username and password, or an API key) and says where it goes: the header or address parameter the API names, on calls to that API only. Cadreen stores it encrypted, as this workspace's: another workspace can't use it.
- Cadreen tests it. It calls the API with requests that only read, using your credential, and records each call's result. Calls that change or delete data are never made.
- A workspace admin approves. Choose Review details to read the test report and the plan: every call with its method and real address, where it came from, its risk, and whether each call asks a person first. Only a workspace admin can deploy it or decline it (with a reason); the same decision is in Decisions, and the choice is recorded with their name.
- It's added. Its tools belong to this workspace only. Cadreen checks it every 15 minutes with a call that only reads, and the card shows the last check. If the check isn't available, the card says the connection was added but can't be checked yet. Disconnect removes its tools.
- Cadreen uses it in chat. In this workspace, chat can call its tools. A call that only reads runs right away. A call that changes or deletes data waits for a person in this workspace to approve it in Decisions, whatever your rules say; it then runs once, with exactly the details that were approved, and its receipt says what ran and who approved it.
What does "It can do N things" count?
Only calls whose test succeeded. It never counts the actions you asked for, or calls that weren't tested.
Can it reach a private or internal API?
No. Cadreen refuses to call private and internal addresses, so an address such as api.internal.example.com fails.
Private hosts aren't supported. Contact support if you need one.
What can go wrong?
The search was incomplete
The card names each provider it couldn't search and why. Check there first; you can still choose to build.
Cadreen couldn't read the API
Give the address of its specification. Without one, Cadreen can only draft calls when drafting is available for your workspace, and you confirm each drafted call.
The test didn't pass
The card lists each call that didn't work and why (for example, the API refused the credential). Build and test again reads the API again and asks for a credential again.
The API is busy or limits requests
Read-only requests that fail for a moment, or answer "too many requests", are retried with backoff, respecting the time the API asks for. If it still fails, the card says why and you can try again.
Adding it failed
Nothing stays half-added. Ask for approval again keeps the tested plan; it isn't rebuilt.
It stopped making progress
Each step may take up to 10 minutes. A step that stopped (for example, because Cadreen restarted) is marked as stopped within about 10 more minutes, with a reason; then try again. You can cancel at any time.
Using the API instead?
The same steps are routes under /api/v1/cadreen/connections/sessions; see the API reference. Each session lists the steps its state allows in available_actions, and its live stream resumes from the last event you received, so none is missed. API keys can start and build connections but can't approve them.