{"openapi":"3.1.0","info":{"title":"ShipTemplates Workflow Kit Public API","version":"1.0.0","description":"Multi-tenant visual workflow automation platform API. Supports session cookies, workspace API keys (`Bearer stk_live_...`), and scoped short-lived embed tokens (`Bearer emb_v1.*`)."},"servers":[{"url":"/api/v1","description":"Version 1 REST API"}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Workspace API Key (`stk_live_...`) or Embed Token (`emb_v1.*`)"}}},"security":[{"BearerAuth":[]}],"paths":{"/workspaces":{"get":{"summary":"List workspaces for current user"},"post":{"summary":"Create a new workspace"}},"/workspaces/{id}":{"get":{"summary":"Get workspace details"},"patch":{"summary":"Update workspace settings"}},"/workspaces/{id}/members":{"get":{"summary":"List workspace members and pending invitations"},"post":{"summary":"Invite member, update role, or remove member"}},"/workflows":{"get":{"summary":"List workflows in workspace"},"post":{"summary":"Create a new workflow"}},"/workflows/{id}":{"get":{"summary":"Get workflow definition, versions, and triggers"},"patch":{"summary":"Update workflow draft or status with optimistic locking"},"delete":{"summary":"Delete workflow"}},"/workflows/{id}/validate":{"post":{"summary":"Validate workflow DAG, handles, and node schemas"}},"/workflows/{id}/publish":{"post":{"summary":"Publish immutable workflow version and synchronize triggers"}},"/workflows/{id}/execute":{"post":{"summary":"Enqueue asynchronous workflow execution"}},"/executions":{"get":{"summary":"List workflow executions"}},"/executions/{id}":{"get":{"summary":"Get execution details, node runs, and structured logs"}},"/executions/{id}/cancel":{"post":{"summary":"Request cancellation of an in-flight execution"}},"/executions/{id}/retry":{"post":{"summary":"Retry a failed or cancelled execution against its pinned version"}},"/credentials":{"get":{"summary":"List safe credential metadata (never returns secrets)"},"post":{"summary":"Encrypt with AES-256-GCM AAD and store workspace credential"}},"/credentials/{id}":{"delete":{"summary":"Delete credential"}},"/credentials/{id}/test":{"post":{"summary":"Verify and test workspace credential"}},"/api-keys":{"get":{"summary":"List workspace API keys"},"post":{"summary":"Generate a new workspace API key (returns secret once)"}},"/api-keys/{id}":{"delete":{"summary":"Revoke workspace API key"}},"/embed/tokens":{"post":{"summary":"Mint a short-lived HMAC-signed embed token for <WorkflowBuilder />"}},"/usage":{"get":{"summary":"Get workspace usage metering breakdown"}}}}