Skip to main content
A skimmable reference. For conceptual guides, start at Quickstart. For the HTTP-level view, see the API reference.

Client

new Spine(options)

Runs

CreateRunParams

WaitForCompletionOptions

Canvas

Discriminated run union

Narrow on status to access state-specific fields — result, progress, duration_ms, errors.

String enums

Template

'auto', 'deep_research', 'report', 'slides', 'memo', 'excel', 'app', 'landing_page'. See Templates.

BlockType

17 members covering every block type the platform produces. See Block types.

RunStatus

'running', 'completed', 'partial', 'failed'.

TaskType

'parent-task', 'persona-task', 'tool-call-task'.

Types

All exported from the top-level spine-sdk package:

Errors

See Errors and retries.

Utilities

Runtime support

  • Node.js ≥ 18 (native fetch, FormData, Blob).
  • Modern browsers.
  • Deno (via npm specifier).
  • Bun.
  • Cloudflare Workers and other V8-isolate edge runtimes.
The package ships as dual ESM / CJS with full .d.ts bundles. Zero runtime dependencies.