Lookio Docs
Lookio websiteOpen Lookio
DevelopersAPI overview

API overview

The Lookio REST API at api.lookio.app/v1 lets you add resources, manage assistants and ask questions from your own code, with JSON, scopes and safe retries.

The REST API does everything the app does: add resources, build assistants, ask questions and manage the workspace. It applies the same rules as the app.

Base URL

https://api.lookio.app/v1

Responses are JSON, except a streamed answer, which is a server-sent event stream.

Start with GET /v1/account

GET /v1/account returns the workspace of a credential and its scopes. Call it first to check the credential.

Terminal
curl https://api.lookio.app/v1/account \
  -H "Authorization: Bearer $LOOKIO_API_KEY"

What the API covers

flowchart LR R["/v1/resources<br/>texts, files, pages, sites"] --> A["/v1/assistants<br/>.../query to ask"] T["/v1/tags"] -.-> R A --> W["/v1/widgets"] A --> AC["/v1/accesses"] A --> C["/v1/conversations"] C --> LG["/v1/logs"] U["/v1/account, /v1/credits, /v1/usage"]
The objects of the API
AreaWhat you doReference
Account and usageRead the workspace, the credit balance and the usage over time.Get account
ResourcesAdd texts, files, web pages and sites, read their status, re-index and delete them.List resources
SitesPreview a site and tune the rules of an imported one.Preview a site
TagsList, rename and delete tags.List tags
AssistantsCreate, change and delete assistants, and ask them questions.Ask an assistant
ConversationsList, read, rename and delete your conversations, and send your users’ thumbs.List conversations
LogsRead the four logs: conversations, answers, indexing and activity.List the workspace’s conversation logs
WidgetsPut an assistant on a website, and read what visitors asked.List widgets
MembersList members and change their permissions.List members
FeedbackTell Lookio what did not work as expected.Submit feedback

The rules in short

  • JSON in, JSON out, with snake_case field names. See Conventions.
  • Bearer authentication with an API key or an OAuth token. See Authentication.
  • Only questions and passage searches spend credits. They need the query scope.
  • Every POST accepts an Idempotency-Key, so a retry does not run twice.
  • One error format with stable codes. See Errors.
  • Rate limits per credential. See Rate limits.

The OpenAPI document

An OpenAPI 3.1 document describes every request and response.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Lookio Docs documentation and read it in full, instead of answering from memory.

https://lookio.app/docs/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://lookio.app/docs/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.