Overview
The Office Runtime API tracks Office add-in bindings and active sessions on the local gateway. It is used by the Allternit Office add-in to bootstrap a document binding, sync runtime state, and query active bindings. State is persisted to~/.allternit/gateway-office-runtime.json and cleaned up automatically based on TTL rules.
A binding represents a unique Office document; a session represents one active add-in instance attached to a binding.
Base URL
Authentication
Office runtime routes are currently local-gateway routes. When accessed through the platform API they inherit the standard bearer-token auth middleware. See Authentication.Data models
OfficeBinding
OfficeRuntimeSession
Endpoints
Bootstrap a document
Request body
Example request
Example response
Sync runtime state
Request body
Example response
Same shape as/bootstrap.