{"openapi":"3.1.0","info":{"title":"Sim Workspace (BYOK) API","version":"0.1.0","description":"Sim Workspace (BYOK) lets an AI assistant read your own Sim Workspace data through the Sim Workspace API with a key you supply (Sim API key (personal or workspace)). Read-only: 9 tools (list_workspaces, get_workspace, list_organizations, get_organization, list_organization_workspaces, get_billing_status, get_usage_summary, get_usage_breakdown, get_api_status). The BYOK key travels with each...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-sim-workspace.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-sim-workspace/docs"},"termsOfService":"https://connectorbay.com/byok-sim-workspace/terms"},"servers":[{"url":"https://byok-sim-workspace.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-sim-workspace/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_workspaces":{"post":{"operationId":"list_workspaces","summary":"List workspaces the key can access with member count and dates. Use for \"Which Sim workspaces can my key access\".","description":"List workspaces the key can access with member count and dates. Use for \"Which Sim workspaces can my key access\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"sort_by":{"anyOf":[{"enum":["name","createdAt","updatedAt"],"type":"string"},{"type":"null"}],"default":"createdAt","description":"Order by name, createdAt or updatedAt.","title":"Sort By"},"sort_order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":"desc","description":"asc or desc.","title":"Sort Order"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many results to return (1 to 100).","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"}},"title":"list_workspacesArguments","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_workspace":{"post":{"operationId":"get_workspace","summary":"Get one workspace's name, member count and dates by id. Use for \"How many members does Sim workspace ws_123 have\".","description":"Get one workspace's name, member count and dates by id. Use for \"How many members does Sim workspace ws_123 have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workspace_id":{"description":"Workspace id from list_workspaces.","maxLength":200,"title":"Workspace Id","type":"string"}},"required":["workspace_id"],"title":"get_workspaceArguments","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_organizations":{"post":{"operationId":"list_organizations","summary":"List organizations the key's user belongs to with slug, role and creation date. Use for \"Which Sim organizations am I pa","description":"List organizations the key's user belongs to with slug, role and creation date. Use for \"Which Sim organizations am I part of and what is my role\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"search":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Text to match in organization names.","title":"Search"},"sort_by":{"anyOf":[{"enum":["name","createdAt"],"type":"string"},{"type":"null"}],"default":"name","description":"Order by name or createdAt.","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"}},"title":"list_organizationsArguments","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_organization":{"post":{"operationId":"get_organization","summary":"Get one organization's name, slug, your role and creation date by id. Use for \"What is my role in Sim organization org_1","description":"Get one organization's name, slug, your role and creation date by id. Use for \"What is my role in Sim organization org_123\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organization_id":{"description":"Organization id from list_organizations.","maxLength":200,"title":"Organization Id","type":"string"}},"required":["organization_id"],"title":"get_organizationArguments","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_organization_workspaces":{"post":{"operationId":"list_organization_workspaces","summary":"List the workspaces that belong to an organization (id and name). Use for \"Which workspaces are in Sim organization org_","description":"List the workspaces that belong to an organization (id and name). Use for \"Which workspaces are in Sim organization org_123\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organization_id":{"description":"Organization id from list_organizations.","maxLength":200,"title":"Organization Id","type":"string"},"search":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Text to match in workspace names.","title":"Search"},"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":["organization_id"],"title":"list_organization_workspacesArguments","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_billing_status":{"post":{"operationId":"get_billing_status","summary":"Show the billing period, plan, status and credit and storage usage against limits for the key's account or one workspace","description":"Show the billing period, plan, status and credit and storage usage against limits for the key's account or one workspace. Use for \"How many Sim credits have I used this period\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workspace_id":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only this workspace id (from list_workspaces).","title":"Workspace Id"}},"title":"get_billing_statusArguments","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_usage_summary":{"post":{"operationId":"get_usage_summary","summary":"Get an organization's credit usage totals and time series (credits and event counts per day, week or month) for a window","description":"Get an organization's credit usage totals and time series (credits and event counts per day, week or month) for a window. Use for \"How many credits did Sim organization org_123 use in the last 30 days\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organization_id":{"description":"Organization id from list_organizations.","maxLength":200,"title":"Organization Id","type":"string"},"preset":{"anyOf":[{"enum":["current-period","previous-period","7d","30d","custom"],"type":"string"},{"type":"null"}],"default":"30d","description":"Time window: 30d (default), 7d, current-period, previous-period or custom (then give start_date and end_date).","title":"Preset"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Window start for preset=custom, ISO 8601.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Window end for preset=custom, ISO 8601.","title":"End Date"},"timezone":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":"UTC","description":"IANA time zone for bucketing, for example Europe/Berlin (default UTC).","title":"Timezone"},"workspace_id":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only this workspace id (from list_workspaces).","title":"Workspace Id"}},"required":["organization_id"],"title":"get_usage_summaryArguments","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_usage_breakdown":{"post":{"operationId":"get_usage_breakdown","summary":"Break an organization's credit usage down by workspace, workflow, model or source for a window, with credits, events, sh","description":"Break an organization's credit usage down by workspace, workflow, model or source for a window, with credits, events, share and tokens per row. Use for \"Which Sim workflows used the most credits in organization org_123 this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organization_id":{"description":"Organization id from list_organizations.","maxLength":200,"title":"Organization Id","type":"string"},"dimension":{"description":"What to group by: workspace, workflow, model or source.","enum":["workspace","workflow","model","source"],"title":"Dimension","type":"string"},"preset":{"anyOf":[{"enum":["current-period","previous-period","7d","30d","custom"],"type":"string"},{"type":"null"}],"default":"30d","description":"Time window: 30d (default), 7d, current-period, previous-period or custom (then give start_date and end_date).","title":"Preset"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Window start for preset=custom, ISO 8601.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Window end for preset=custom, ISO 8601.","title":"End Date"},"timezone":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":"UTC","description":"IANA time zone for bucketing, for example Europe/Berlin (default UTC).","title":"Timezone"},"workspace_id":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only this workspace id (from list_workspaces).","title":"Workspace Id"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Maximum rows (1 to 100, default 50).","title":"Limit"}},"required":["organization_id","dimension"],"title":"get_usage_breakdownArguments","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_api_status":{"post":{"operationId":"get_api_status","summary":"Show whether the v2 API is enabled for the key and which key type is in use (personal, workspace or OAuth) with its expi","description":"Show whether the v2 API is enabled for the key and which key type is in use (personal, workspace or OAuth) with its expiry. Use for \"What kind of Sim API key am I using and when does it expire\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_api_statusArguments","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}}}}