Developers · API

APIs: inside documents, and around them.

There are two programming surfaces today: the Runtime API that a document uses inside a reader, and a connector that lets AI assistants work with a user’s IDOP Cloud. A general public HTTP API is planned, not built.

§ 01Runtime API

globalThis.idop

Available

Methods (IDOP 1.0, §11)
idop.runtime.getInfo()
idop.storage.read(path)            idop.storage.write(path, text)
idop.storage.delete(path)          idop.storage.list()
idop.storage.transaction(operations)
idop.network.request({ capability, url, method, headers, body })
idop.env.get(id)
idop.ui.requestSave()              idop.ui.requestConfiguration()
idop.host.getInputFile()           idop.host.putOutputFile(bytes)

Every method returns a promise. Failures reject with an error whose code is stable — branch on it, never on the message. The complete reference, with every error code, is in §11 and §16 of the specification.

§ 02Connector for AI assistants

An MCP server that acts only as the user.

It lets assistants such as Claude and ChatGPT create, read, update and share documents in a user’s IDOP Cloud — after the user signs in and approves the connection.

Available

Tools offered by the IDOP Cloud connector
ToolKindWhat it does
get_authoring_guidereadThe rules for an IDOP 1.0 document that works
get_starterreadA complete, working document to build on (app, canvas)
list_files · search_filesreadBrowse and find files in the user’s IDOP Cloud, with paths; recent documents
read_documentreadWhat a document is, the data saved inside it, and (include_code, paths) its source, paged
show_documentreadA live document card (MCP App) where the client renders apps; links elsewhere
validate_documentreadCheck sources without saving: syntax, what cannot work, the format
create_documentwriteCheck, pack and save a new .idop — or return it as a 24-hour download link
update_documentwrite · destructiveChange a document’s code as a new revision, keeping its data
update_document_datawrite · destructiveChange storage/ as a new revision
get_download_linkwrite · open worldThe .idop file itself, behind a 24-hour link
create_folder · move_filewrite · destructive (move)Organise folders; move and rename
create_share_linkwrite · open worldA link with an expiry and an optional password
list_share_links · revoke_share_linkread · write, destructiveSee and withdraw share links
delete_filewrite · destructiveDelete one file
  • OAuth 2.1 sign-in; the connector holds no service key and acts with the user’s own permissions.
  • Every document an assistant writes is validated by the same core as the reader before it is saved.
  • The user can withdraw the connection at any time.

The server is live at https://mcp.idoplabs.com/mcp. How to add it to Claude, ChatGPT and Claude Code: MCP connector.

§ 03Public HTTP API

Planned.

Planned

Programmatic access to IDOP Cloud beyond the assistant connector — for integrations, automation and other readers — is planned. No endpoints are published, and none of the examples on this site call one.

If you need one, tell us what for: it will shape what we build. Contact.

Use the Runtime API.

The examples show storage, network access with a credential, and viewers for ordinary files.