Molecule AI
API Reference

Integrations API

Schedules, channels, plugins, auth tokens, templates & bundles, and approvals endpoints.

Schedules

Cron-based scheduled tasks per workspace.

MethodPathAuthDescription
GET/workspaces/:id/schedulesWorkspaceAuthList all schedules for a workspace.
POST/workspaces/:id/schedulesWorkspaceAuthCreate a schedule. Body: { "expression": "0 */6 * * *", "timezone": "UTC", "prompt": "...", "enabled": true }.
PATCH/workspaces/:id/schedules/:scheduleIdWorkspaceAuthUpdate a schedule (expression, timezone, prompt, enabled).
DELETE/workspaces/:id/schedules/:scheduleIdWorkspaceAuthDelete a schedule.
POST/workspaces/:id/schedules/:scheduleId/runWorkspaceAuthManually trigger a schedule immediately.
GET/workspaces/:id/schedules/:scheduleId/historyWorkspaceAuthList past runs for a schedule. Includes status (success, error, skipped) and error_detail.

Schedule source field: template for org/import-seeded schedules, runtime for Canvas/API-created. The last_status includes skipped when the scheduler concurrency-aware-skips a busy workspace.


Channels

Social channel integrations (Telegram, Slack, etc.) for workspace agents.

Per-Workspace Channels

MethodPathAuthDescription
GET/workspaces/:id/channelsWorkspaceAuthList channels for a workspace.
POST/workspaces/:id/channelsWorkspaceAuthCreate a channel. Body includes platform type, JSONB config, and allowlist.
PATCH/workspaces/:id/channels/:channelIdWorkspaceAuthUpdate a channel's config or allowlist.
DELETE/workspaces/:id/channels/:channelIdWorkspaceAuthDelete a channel.
POST/workspaces/:id/channels/:channelId/sendWorkspaceAuthSend an outbound message through the channel.
POST/workspaces/:id/channels/:channelId/testWorkspaceAuthTest the channel connection (send a test message).

Global Channel Endpoints

MethodPathAuthDescription
GET/channels/adaptersNoneList available social platform adapters (Telegram, Slack, etc.).
POST/channels/discoverAdminAuthAuto-detect available chats/groups for a bot token.
POST/webhooks/:typeNoneIncoming webhook endpoint for social platforms. The :type parameter identifies the platform (e.g., telegram, slack).

Plugins

Plugin registry and per-workspace plugin management.

Global Plugin Registry

MethodPathAuthDescription
GET/pluginsNoneList all plugins in the registry. Supports ?runtime= filter to show only compatible plugins.
GET/plugins/sourcesNoneList registered install-source schemes (e.g., github://, local://).

Per-Workspace Plugins

MethodPathAuthDescription
GET/workspaces/:id/pluginsWorkspaceAuthList installed plugins for a workspace.
POST/workspaces/:id/pluginsWorkspaceAuthInstall a plugin. Body: { "source": "github://org/repo" }. Safeguards: 64 KiB body limit, 5 min fetch timeout, 100 MiB max staged-tree.
DELETE/workspaces/:id/plugins/:nameWorkspaceAuthUninstall a plugin by name.
GET/workspaces/:id/plugins/availableWorkspaceAuthList plugins available for this workspace (filtered by workspace runtime).
GET/workspaces/:id/plugins/compatibilityWorkspaceAuthPreflight runtime-change check. Query: ?runtime=X. Returns which currently-installed plugins would be incompatible with the target runtime.

Auth Tokens

Bearer token management for workspaces.

MethodPathAuthDescription
GET/workspaces/:id/tokensWorkspaceAuthList active tokens for a workspace (token values are masked).
POST/workspaces/:id/tokensWorkspaceAuthCreate a new bearer token for the workspace.
DELETE/workspaces/:id/tokens/:tokenIdWorkspaceAuthRevoke a specific token.

Admin token minting

MethodPathAuthDescription
POST/admin/workspaces/:id/tokensAdminAuthMint a fresh bearer token for a workspace (admin / bootstrap / E2E use). The earlier unauthenticated GET /admin/workspaces/:id/test-token route was removed; minting now requires AdminAuth.

Templates and Bundles

Templates

MethodPathAuthDescription
GET/templatesAdminAuthList available workspace templates with their runtime, description, and config schema.
POST/templates/importAdminAuthImport a workspace template from a github:// source URL.

Org Templates

MethodPathAuthDescription
GET/org/templatesAdminAuthList available organization templates.
POST/org/importAdminAuthImport an org template. Applies resolveInsideRoot path sanitization. Creates the full workspace hierarchy defined in org.yaml.

Bundles

MethodPathAuthDescription
GET/bundles/export/:idAdminAuthExport a workspace (or workspace tree) as a portable bundle. Includes config, secrets (keys only), memory, schedules, and hierarchy.
POST/bundles/importAdminAuthImport a previously-exported bundle. Recreates the workspace tree with all associated data.

Approvals

Human-in-the-loop approval system for agent actions.

MethodPathAuthDescription
POST/workspaces/:id/approvalsWorkspaceAuthCreate an approval request. Body includes the action description, metadata, and options.
GET/workspaces/:id/approvalsWorkspaceAuthList approval requests for a workspace.
POST/workspaces/:id/approvals/:id/decideWorkspaceAuthApprove or reject an approval request. Body: { "decision": "approve" } or { "decision": "reject" }.
GET/approvals/pendingAdminAuthList all pending approval requests across all workspaces.

On this page