{"openapi":"3.1.0","info":{"title":"Sim Workflows (BYOK) API","version":"0.1.0","description":"Sim Workflows (BYOK) lets an AI assistant read your own Sim Workflows data through the Sim Workflows API with a key you supply (Sim API key (personal or workspace)). Read-only: 8 tools (list_workflows, get_workflow, list_workflow_versions, get_workflow_deployment, list_workflow_runs, get_execution_stats, list_chat_deployments, list_workflow_folders). The BYOK key travels with each request, is...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-sim-workflows.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-sim-workflows/docs"},"termsOfService":"https://connectorbay.com/byok-sim-workflows/terms"},"servers":[{"url":"https://byok-sim-workflows.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-sim-workflows/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_workflows":{"post":{"operationId":"list_workflows","summary":"List workflows in a workspace with deployment flag, run count, last run time and dates; search, sort and page. Use for \"","description":"List workflows in a workspace with deployment flag, run count, last run time and dates; search, sort and page. Use for \"Which Sim workflows are deployed in my workspace\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workspace_id":{"description":"Workspace id from list_workspaces in the Sim Workspace connector or the Sim app URL.","maxLength":100,"title":"Workspace Id","type":"string"},"scope":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"default":"active","description":"active (default) or archived workflows.","title":"Scope"},"deployed_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to list only deployed workflows.","title":"Deployed Only"},"search":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Text to match in workflow names.","title":"Search"},"sort_by":{"anyOf":[{"enum":["position","name","createdAt","updatedAt","runCount"],"type":"string"},{"type":"null"}],"default":"position","description":"Order by position, name, createdAt, updatedAt or runCount.","title":"Sort By"},"sort_order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":"asc","description":"asc or desc.","title":"Sort Order"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 100, default 50).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from nextCursor of the previous answer; leave empty for the first page.","title":"Cursor"}},"required":["workspace_id"],"title":"list_workflowsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_workflow":{"post":{"operationId":"get_workflow","summary":"Get one workflow's name, description, folder, deployment flag, run count, dates and declared inputs (variables are not r","description":"Get one workflow's name, description, folder, deployment flag, run count, dates and declared inputs (variables are not returned). Use for \"What inputs does Sim workflow wf_123 take\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workflow_id":{"description":"Workflow id from list_workflows.","maxLength":200,"title":"Workflow Id","type":"string"}},"required":["workflow_id"],"title":"get_workflowArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_workflow_versions":{"post":{"operationId":"list_workflow_versions","summary":"List a workflow's deployment versions with number, name, active flag, deployer and latest operation status. Use for \"Whi","description":"List a workflow's deployment versions with number, name, active flag, deployer and latest operation status. Use for \"Which version of Sim workflow wf_123 is active\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workflow_id":{"description":"Workflow id from list_workflows.","maxLength":200,"title":"Workflow Id","type":"string"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 100, default 50).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from nextCursor of the previous answer; leave empty for the first page.","title":"Cursor"}},"required":["workflow_id"],"title":"list_workflow_versionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_workflow_deployment":{"post":{"operationId":"get_workflow_deployment","summary":"Show a workflow's deployment state: deployed flag, active version, latest deployment attempt status, redeployment need a","description":"Show a workflow's deployment state: deployed flag, active version, latest deployment attempt status, redeployment need and public API flag. Use for \"Does Sim workflow wf_123 need redeployment\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workflow_id":{"description":"Workflow id from list_workflows.","maxLength":200,"title":"Workflow Id","type":"string"}},"required":["workflow_id"],"title":"get_workflow_deploymentArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_workflow_runs":{"post":{"operationId":"list_workflow_runs","summary":"List a workflow's runs with status, trigger, start and end time, duration and cost, newest first (inputs and outputs are","description":"List a workflow's runs with status, trigger, start and end time, duration and cost, newest first (inputs and outputs are not returned). Use for \"Did the last Sim runs of workflow wf_123 succeed\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workflow_id":{"description":"Workflow id from list_workflows.","maxLength":200,"title":"Workflow Id","type":"string"},"status":{"anyOf":[{"enum":["pending","running","completed","failed","cancelled","paused"],"type":"string"},{"type":"null"}],"default":null,"description":"Only runs with this status.","title":"Status"},"trigger":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only runs started by this trigger type, for example api, manual or schedule.","title":"Trigger"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only runs started after this ISO 8601 time.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only runs started before this ISO 8601 time.","title":"End Date"},"order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":"desc","description":"desc (default, newest first) or asc.","title":"Order"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 100, default 50).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from nextCursor of the previous answer; leave empty for the first page.","title":"Cursor"}},"required":["workflow_id"],"title":"list_workflow_runsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_execution_stats":{"post":{"operationId":"get_execution_stats","summary":"Get execution statistics for a workspace's workflows over a time window: total runs, errors, average latency and per-wor","description":"Get execution statistics for a workspace's workflows over a time window: total runs, errors, average latency and per-workflow success rates. Use for \"What is the success rate of my Sim workflows over the last week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workspace_id":{"description":"Workspace id from list_workspaces in the Sim Workspace connector or the Sim app URL.","maxLength":100,"title":"Workspace Id","type":"string"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Window start, ISO 8601.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Window end, ISO 8601.","title":"End Date"},"level":{"anyOf":[{"enum":["info","error"],"type":"string"},{"type":"null"}],"default":null,"description":"Only info or error executions.","title":"Level"},"segment_count":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":72,"description":"Number of time segments for the series (1 to 500, default 72).","title":"Segment Count"}},"required":["workspace_id"],"title":"get_execution_statsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_chat_deployments":{"post":{"operationId":"list_chat_deployments","summary":"List chat deployments (workflows exposed as chat) with identifier, URL, title, auth type, active flag and dates. Use for","description":"List chat deployments (workflows exposed as chat) with identifier, URL, title, auth type, active flag and dates. Use for \"Which Sim workflows are exposed as chat and who can use them\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workspace_id":{"description":"Workspace id from list_workspaces in the Sim Workspace connector or the Sim app URL.","maxLength":100,"title":"Workspace Id","type":"string"},"workflow_id":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only deployments of this workflow id.","title":"Workflow Id"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for active only, false for inactive only.","title":"Is Active"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 100, default 50).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from nextCursor of the previous answer; leave empty for the first page.","title":"Cursor"}},"required":["workspace_id"],"title":"list_chat_deploymentsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_workflow_folders":{"post":{"operationId":"list_workflow_folders","summary":"List workflow folders with path, parent path, lock flag and dates. Use for \"How are my Sim workflows organized into fold","description":"List workflow folders with path, parent path, lock flag and dates. Use for \"How are my Sim workflows organized into folders\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workspace_id":{"description":"Workspace id from list_workspaces in the Sim Workspace connector or the Sim app URL.","maxLength":100,"title":"Workspace Id","type":"string"},"parent_path":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only folders under this path.","title":"Parent Path"},"search":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Text to match in folder names.","title":"Search"}},"required":["workspace_id"],"title":"list_workflow_foldersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}