One secure endpoint for your agents: a versioned REST API and an MCP server, both behind the OLQIA gateway. Every response is structured, sourced and traced.
1. Get your free API key. 2. Send your first query. 3. Read the results, their sources and trust signals.
curl https://api.olqia.com/v1/search \
-H "Authorization: Bearer $OLQIA_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "new EU rules for industrial batteries", "mode": "hybrid", "limit": 10}'All calls go through the API / MCP Gateway. Use an API key as a Bearer token. Enterprise accounts can use OAuth2 / OpenID Connect and mutual TLS. Keys are scoped, rate-limited and can be rotated from the console.
Authorization: Bearer olq_live_…
Runs a search plan across OLQIA's engines and returns ranked, structured results.
| Parameter | Type | Description |
|---|---|---|
| query | string | Task or question in natural language (required) |
| mode | string | lexical · semantic · federated · specialised · hybrid (default: hybrid) |
| freshness | string | Time window, e.g. 30d, 12m |
| language | string | auto or an ISO code |
| limit | integer | Maximum number of results (default 10) |
| output_schema | object | Fields and types the results must follow |
Response fields:
| Field | Type | Description |
|---|---|---|
| results[] | array | Title, source, URL, date and fields of your schema |
| results[].signals | object | Relevance, freshness, source type, provenance, corroboration, completeness |
| results[].provenance | object | Retrieval time, method, reference, verification status |
| privacy | object | Egress mode — client identity is never sent to sources |
| security | object | Threats filtered by the Security Engine |
| limitations[] | array | Known limits of the answer |
Add OLQIA as a tool to any MCP-compatible agent. Calls go through the same gateway, quotas and audit as the REST API.
{
"mcpServers": {
"olqia": {
"url": "https://mcp.olqia.com",
"headers": { "Authorization": "Bearer $OLQIA_KEY" }
}
}
}Publish your own agents through OLQIA. Each agent gets an endpoint such as agents.olqia.com/<org>/<agent>, an identity, access policies, request inspection and an audit trail, while it stays inside your private network via Private Link. Available on Enterprise plans and as a Pro add-on.
# Python pip install olqia # TypeScript npm install @olqia/sdk
| Code | Meaning | What to do |
|---|---|---|
| 400 | Invalid request or schema | Check parameters and output_schema |
| 401 | Missing or invalid key | Send a valid Bearer token |
| 403 | Not allowed for this key or plan | Check scopes or upgrade |
| 429 | Rate limit or quota reached | Retry after the indicated delay |
| 5xx | Temporary error | Retry with backoff; see Status |