Skip to main content
Use the asteroid-odyssey TypeScript SDK to execute workflows, monitor executions, work with files, and manage profiles from your application.
The SDK exports a client singleton and individual endpoint functions. Configure the client once with your API key, then call the functions directly.

Install

Or with pnpm:

Run a workflow

The end-to-end example — execute, poll to a terminal status, read the result — lives on Deploy a workflow. This page covers what is specific to the SDK.

Client Configuration

All SDK functions share the singleton client. Configure it once at startup:
Every function accepts an optional client override if you need per-request auth:

Common Functions

The most frequently used functions are listed below. See the API reference for the full set.

Common Patterns

Execute and poll

The full run loop, including the statuses that wait for a person

Every execute field

Inputs, profiles, files, metadata, and version pinning

Files

Stage files before an execution and download what the workflow produced

Profiles

Credentials, cookies, proxies, and pools
Send a message to a running workflow, and read its timeline:

Notes

  • Use inputs for execution variables — dynamicData is deprecated.
  • executionActivitiesGet returns Array<AgentsExecutionActivity> directly, not a wrapped object.
  • All functions return { data, error }. Check error before using data.
  • File list responses include a downloadUrl per file. Fetch it with your API key in the X-Api-Key header.

Python SDK

See the Python SDK guide

API

Browse the API landing page and common workflows