Check that your API fits
A custom API works when the API:- uses one static secret on every request: an API key in a header, a bearer token, or basic auth
- is served over HTTPS from one base domain
- takes JSON or file upload (multipart) request bodies
Create a custom API
1
Open the form
Go to Connections in the sidebar, open the Advanced tab and click Add Custom API. You can also go to Settings → Data → Custom APIs and click Add Custom API.
2
Fill in the details
3
Save
Click Create Custom API.
/v1/customers. Without a domain, every call has to use a full URL.
Vybe sends the credential like this:
How Vybe protects the credential
- Vybe encrypts the credential and never shows it again after you save it.
- Vybe adds the credential to each request on its servers. Coworkers, app code and the browser never see it.
- When a credential is attached, calls must use HTTPS.
- Calls to private or internal network addresses, such as
localhostor10.x.x.x, are blocked. - Vybe removes the credential from error responses before showing them.
Add documentation
Coworkers and the app editor’s AI read a custom API’s Documentation before they call it. You’ll see “Retrieved custom API documentation” in the chat. The better the docs, the fewer wrong guesses about endpoints and fields.- Free text: paste the parts of the API docs that matter, with example requests and responses.
- OpenAPI: paste the OpenAPI spec as JSON or YAML, then click Validate OpenAPI. You’ll see “OpenAPI spec is valid”, or a list of OpenAPI Validation Issues to fix.
Who can use a custom API
The Scope decides which apps can call the API:- Organization (all apps): every app in your organization. These are also the only custom APIs that AI coworkers can use.
- Specific Apps: only the apps you selected. Coworkers can’t use these; their Connections section shows “Restricted to specific apps”.
Use a custom API in chat
Call our billing API and list the invoices that failed in the last 7 days.
Look up customer 4821 in the Acme API and tell me their plan.Each call appears as a step such as “Called GET /v1/invoices”. In the coworker’s activity history, calls appear as “Called custom API”. A call times out after 30 seconds, or 120 seconds when it uploads files.
Use a custom API in apps
The AI in the app editor writes the code. It calls the custom API through Vybe’s helpers, which add the credential for you:callCustomApi from @/client-lib/custom-api-client the same way. App code never reads the key from environment variables or sets the auth header itself. See Working with code.
Edit or delete a custom API
Custom APIs are listed on the Advanced tab of Connections and under Settings → Data → Custom APIs, with their Type, Domain and Scope. To edit one, click Edit next to it. On Edit Custom API:- You can change the type, name, API key header, domain, scope, description and documentation.
- “Auth type can’t be changed after creation.” To switch auth type, create a new custom API and delete the old one.
- To replace the credential, fill in the credential fields. “Leave all credential fields blank to keep the current values, or fill them all in to replace them.”