Omni
Omni: queries against the semantic model.
Connection type: For the app and the agent. Credentials: Omni instance name, API key.
How it works
The app and the agent never see the credentials. They call the Omni API through the Bloklo gateway, for example fetch("/gw/<connection id>/v1/whoami"). The gateway appends the path to the address https://{instance}.omniapp.co/api (the fields in braces come from the connection form), adds an Authorization: Bearer … header with the key from the connection, and passes the service's response back to the app.
- Reads (GET) go through at once. Writes (POST, PUT, PATCH, DELETE) go through at once only when the connection is set to Always allow; otherwise the gateway returns status 202 with an
approval_idand the write waits for approval in the panel (see Agent permissions). - The Test button sends
GET /v1/whoamiand checks that the service accepted the credentials.
JSON REST API under /api, key as Bearer. The semantic query POST /v1/query/run needs a modelId and a field list; without resultType the response is an NDJSON stream with Arrow results (base64), while resultType csv, json or xlsx returns a ready document. Row limit: 1000 by default.
Before you start
- An account with Omni with permission to create API keys or tokens.
Where to get the credentials
- In Omni (administrator), open Settings → API access → Organization keys → Generate new key, or create a personal access token if the administrator enabled them.
- Copy the key (shown once).
Connecting in Bloklo
- Open Connectors in the sidebar and find Omni.
- Click Connect and enter a connection name in Details.
- In Configure connection, fill in: Omni instance name, API key.
- Click Connect. Bloklo saves the credentials encrypted and sends a test request; the message shows whether the service responded.
- Attach the connection to a project: Attach to a project… on the connection page, or describe the task in the project chat and pick the connection the agent suggests.
Form fields
- Omni instance name: The part of the address before .omniapp.co.
- API key: An organisation key (Settings → API access) or a personal access token.
Never paste credentials into the chat with the agent. Enter them only in the connection form.
Example prompts
Prompts to type in the chat of a project with the connection attached:
- “Add a sales dashboard with Omni model query results and a date filter.”
- “Build a page listing model topics and the fields available for a report.”
- “Add a one-click CSV export of a query result.”
API methods
The most commonly used Omni API methods. The path goes after /gw/<connection id>; parts in braces, such as {id}, are replaced with values. The gateway treats every request other than GET as a write, including queries sent with POST (such as search or GraphQL), so they need approval unless the connection is set to Always allow. The full list of methods is in the provider's documentation.
| Method | Path | What it does | In the gateway |
|---|---|---|---|
GET | /v1/whoami | Key identity and permissions | read |
GET | /v1/models | List models | read |
GET | /v1/models/{modelId}/topic | List model topics | read |
GET | /v1/models/{modelId}/topic/{topicName} | Get a topic | read |
POST | /v1/query/run | Run a semantic query | write (approval) |
GET | /v1/query/wait | Wait for query results | read |
GET | /v1/documents | List documents | read |
GET | /v1/folders | List folders | read |
GET | /v1/connections | List connections | read |
GET | /v1/schedules | List schedules | read |
Service limits
60 requests per minute per key for /api routes (raising to 500 is available on request); exceeding returns 429, usually without Retry-After. Query: query.limit defaults to 1000; results stay readable for about an hour.
Agent actions and permissions
| Action | Type | What the agent uses it for |
|---|---|---|
| Read data | read | Fetches data from the service, such as a list of records, to build and check the app. Examples: key identity and permissions; list models; list model topics. |
| Write data | write | Requests other than GET: creating, changing or deleting data in the service, and also queries sent with POST (such as search). Examples: run a semantic query. |
By default, reads run without asking and writes need approval in the chat. Change this on the connector page or in Settings → Agent permissions (see Agent permissions).
Troubleshooting
The connection test shows “Invalid key” (HTTP 401)
The service did not recognise the credentials: the value is wrong, expired, revoked or was copied with a space. Create a new key at the provider and enter it on the connection page under Change credentials. Empty fields stay unchanged.
The connection test shows “Invalid key” (HTTP 403)
The credentials are rejected or lack the needed permissions, or the service only accepts requests from selected IP addresses. Check the key, extend its permissions at the provider or add the Bloklo gateway IP address (shown in Settings → Privacy & security) to the allowlist.
The test returns another HTTP code
The Test button sends the service a read request that requires valid credentials. A code other than 401 and 403 usually means a temporary problem at the service or a restriction on the account at the provider; include the error code shown with the result in a problem report.
Limits and security
- One connection can make up to 1,000 requests per minute; the service's own limits also apply.
- Credentials are encrypted and not shown in the browser after saving; only the names of stored fields are visible.
- A published app works for every visitor: protect the data the connection gives access to with sign-in in the app.
Something unclear or out of date? Contact us