Takes the agent’s own credential (oc_agent_...) and nothing else. See the Agent quickstart for the commands that call it.What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it. It reads no credential, counts against no rate limit of your rules and no usage, and cannot see the call’s body.
Availability: OneCLI Cloud and self-hosted.
Authorizations
Authorization
string
header
required
An agent's own credential (oc_agent_...). It reads what that agent can use and nothing else.
Headers
Idempotency-Key
string
Not accepted on this call. Sending it is 400 bad_request.
Required string length: 1 - 255
Body
application/json
method
string
required
The HTTP method of the call you plan.
Pattern: ^[A-Za-z]{1,16}$
url
string
required
The full address of the call you plan.
Maximum string length: 8192
Pattern: ^https?:\/\/[^\s/?#]+/i
Response
What would happen.
code
string | null
required
Set when a usage limit refuses the call: the error code the call itself would be answered with. null: no usage limit refuses it.
decision
enum<string>
required
allowed: it would be sent with your item. blocked: a rule or a usage limit refuses it. needs_approval: a person must approve it first. no_item: nothing of yours serves it, so it would be sent with no credential. destination_refused: the gateway does not send there.
Available options:
allowed,
blocked,
needs_approval,
no_item,
destination_refused
item
object | null
required
The item the call would use, by its id in your list of items. null: none.
Show child attributes
reason
string
required
The decision in words, with what it could not take into account.
rule
object | null
required
The rule that decided. null: no rule did, or the rule is set above your vault and does not block.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OneCLI","colors":{"primary":"#0b5530","light":"#93e3b4","dark":"#0b5530"},"logo":{"light":"https://mintcdn.com/onecli-sh-docs/RTC5pGoFGh943jJc/logo/logo-full-light.svg?fit=max\u0026auto=format\u0026n=RTC5pGoFGh943jJc\u0026q=85\u0026s=9323ee06c8de13b4c5507ab8a6fbf2ac","dark":"https://mintcdn.com/onecli-sh-docs/RTC5pGoFGh943jJc/logo/logo-full-dark.svg?fit=max\u0026auto=format\u0026n=RTC5pGoFGh943jJc\u0026q=85\u0026s=c1445d56197cd9e03742ea6ea73a5f52","href":"/"},"favicon":"https://mintcdn.com/onecli-sh-docs/RTC5pGoFGh943jJc/favicon.png?fit=max\u0026auto=format\u0026n=RTC5pGoFGh943jJc\u0026q=85\u0026s=2a0cc29d0e8c090395c4e10e9f327b62","appearance":{"default":"light"},"background":{"color":{"light":"#ebe6d4","dark":"#083f23"}},"navbar":{"links":[{"href":"https://github.com/onecli/onecli","label":"GitHub"},{"href":"https://onecli.sh","label":"Install"}]},"footer":{"socials":{"github":"https://github.com/onecli"}},"fonts":{"heading":{"family":"Overused Grotesk","weight":600,"source":"fonts/OverusedGroteskRoman-VF.woff2","format":"woff2"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"https://mintlify.s3.us-west-1.amazonaws.com/onecli-sh-docs/images/github.svg","href":"https://github.com/onecli"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"onecli-sh-docs","hasAudioNarration":false,"actualSubdomain":"onecli-sh-docs","customDomains":[],"gitSource":{"type":"github","owner":"onecli","repo":"onecli-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6afb23636b0360be0a1911b0"},"entitlements":{},"buildId":"6b0f3c66094709554a753354","clientVersion":"0.0.4402","searchFilterCounts":[{"language":"default","tag":"API Reference","count":159},{"language":"default","tag":"Integrations","count":86},{"language":"default","tag":"Connected apps","count":77},{"language":"default","tag":"OneCLI Cloud","count":71},{"language":"default","tag":"Organization","count":32},{"language":"default","tag":"Vaults and items","count":27},{"language":"default","tag":"Agents","count":23},{"language":"default","tag":"Approvals, rules and activity","count":14},{"language":"default","tag":"Items","count":14},{"language":"default","tag":"Groups","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"a.nav-anchor div.mr-4.rounded-md{--tw-ring-color: transparent !important;--tw-ring-shadow: 0 0 0 0 transparent !important;--tw-ring-offset-shadow: 0 0 0 0 transparent !important;box-shadow:none!important;background:transparent!important;filter:none!important;transition:opacity 0.15s ease!important}a.nav-anchor:hover div.mr-4.rounded-md{--tw-ring-color: transparent !important;--tw-ring-shadow: 0 0 0 0 transparent !important;--tw-ring-offset-shadow: 0 0 0 0 transparent !important;box-shadow:none!important;background:transparent!important;filter:none!important;opacity:0.7!important}a.nav-anchor div.mr-4.rounded-md img{opacity:1!important;filter:none!important;background:transparent!important}a.nav-anchor:hover div.mr-4.rounded-md img{opacity:1!important;filter:none!important;background:transparent!important}.dark a.nav-anchor div.mr-4.rounded-md img,[data-theme=\"dark\"] a.nav-anchor div.mr-4.rounded-md img{filter:invert(1)!important}html:not(.dark) .card,html:not(.dark) .code-block [data-component-part=\"code-block-root\"],html:not(.dark) .callout{background-color:#f3efe1!important}html:not(.dark) .card,html:not(.dark) .code-block{border-color:#cbc3a8!important}[data-component-part=\"step-indicator\"]{border-radius:4px!important;width:1.5rem!important;height:1.5rem!important;margin:0.125rem!important;font-weight:600!important}html:not(.dark) [data-component-part=\"step-indicator\"]{background-color:#f3efe1!important;border:1px solid #cbc3a8!important;color:#0b5530!important}.dark [data-component-part=\"step-indicator\"]{border:1px solid rgba(255, 255, 255, 0.16)!important}[data-component-part=\"step-indicator\"]>div{background-color:transparent!important;color:inherit!important}html:not(.dark) .code-block .code-block-fade-overlay{background-image:linear-gradient(\n to right,\n rgba(243, 239, 225, 0) 0,\n rgba(243, 239, 225, 0.5) 25px,\n #f3efe1 45px\n )!important}#theme-preference-menu-item-system,[data-theme-preference=\"system\"]{display:none!important}"}]}
{"page":{"pagePath":"api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent","slug":"/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent","pageMetadata":{"title":"Ask what would happen to a call, as an agent","description":"What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it.","deprecated":null,"version":null,"sidebarTitle":"Ask what would happen to a call, as an agent","openapi":"/openapi.yaml post /v2/agents/me/check","href":"/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Info}=_components;if(!Info)_missingMdxReference(`Info`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Takes the agent’s own credential (`,_jsx(_components.code,{children:`oc_agent_...`}),`) and nothing else. See the `,_jsx(_components.a,{href:`/agent-quickstart`,children:`Agent quickstart`}),` for the commands that call it.`]}),`\n`,_jsx(_components.p,{children:`What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it. It reads no credential, counts against no rate limit of your rules and no usage, and cannot see the call’s body.`}),`\n`,_jsxs(Info,{children:[_jsx(_components.strong,{children:`Availability:`}),` OneCLI Cloud and self-hosted.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Ask what would happen to a call, as an agent","description":"What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it.","deprecated":null,"version":null,"sidebarTitle":"Ask what would happen to a call, as an agent","openapi":"/openapi.yaml post /v2/agents/me/check","href":"/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/onecli-sh-docs/e8c5fc0faf4d8de9/infra/cloudfront/docs-response-headers.js"],"openApiReferenceData":{"operation":{"operationId":"postAgentsMeCheck","summary":"Ask what would happen to a call, as an agent","tags":["Agent self-service"],"x-mint":{"content":"Takes the agent's own credential (`oc_agent_...`) and nothing else. See the [Agent quickstart](/agent-quickstart) for the commands that call it.\n\nWhat the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it. It reads no credential, counts against no rate limit of your rules and no usage, and cannot see the call's body.\n\n\u003cInfo>**Availability:** OneCLI Cloud and self-hosted.\u003c/Info>\n","metadata":{"title":"Ask what would happen to a call, as an agent","sidebarTitle":"Ask what would happen to a call, as an agent","description":"What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it."}},"description":"What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it.","parameters":["79265bf8-b51f-47dc-abe0-9413e9b651a1"],"requestBody":"401662ff-df44-4fd4-935a-e4593d23ad16","responses":{"200":"cc277d8e-150f-4c72-9797-dedbd5d7559f","400":"6348767a-ff0e-4942-847a-4f0fe3cfb807","401":"a79c19c5-9813-4607-a26b-9cac8b787ae5","403":"22eeb21f-52bd-4da4-b6eb-e36a9979de60","422":"71975556-9d7b-448f-837c-8e871f842040","429":"dc5c8998-b866-46a6-895c-00f489df7d45","500":"28759bc8-820f-4986-ad62-5e503b1b2956","503":"9e801318-58ba-4c2d-9647-035b1b140562"},"security":["d0ec6026-6c5f-4936-89d0-6edc7299807f"],"method":"post","type":"path","servers":["79785793-f50c-4451-be0f-d6b4e66e555e","6fa9721c-6388-4aa1-945c-bb0e6c66436b"],"path":"/v2/agents/me/check","baseUrlOptions":["https://api.onecli.sh","http://localhost:10254"],"title":"Ask what would happen to a call, as an agent","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"79265bf8-b51f-47dc-abe0-9413e9b651a1":{"description":"Not accepted on this call. Sending it is 400 bad_request.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"type":"string","isRequired":false,"description":"Not accepted on this call. Sending it is 400 bad_request.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"properties":{"method":{"description":"The HTTP method of the call you plan.","pattern":"^[A-Za-z]{1,16}$","type":"string","isRequired":true,"uniqueKey":"method","typeLabel":"string"},"url":{"description":"The full address of the call you plan.","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+/i","type":"string","isRequired":true,"uniqueKey":"url","typeLabel":"string"}},"required":["method","url"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"method":"\u003cstring>","url":"\u003cstring>"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"cc277d8e-150f-4c72-9797-dedbd5d7559f":{"content":{"application/json":{"schema":{"properties":{"code":{"oneOf":[{"description":"Set when a usage limit refuses the call: the error code the call itself would be answered with. null: no usage limit refuses it.","type":"string","isRequired":true,"uniqueKey":"code.oneOf.0","typeLabel":"string"},{"description":"Set when a usage limit refuses the call: the error code the call itself would be answered with. null: no usage limit refuses it.","type":"null","isRequired":true,"uniqueKey":"code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"code","typeLabel":"string | null"},"decision":{"description":"allowed: it would be sent with your item. blocked: a rule or a usage limit refuses it. needs_approval: a person must approve it first. no_item: nothing of yours serves it, so it would be sent with no credential. destination_refused: the gateway does not send there.","enum":["allowed","blocked","needs_approval","no_item","destination_refused"],"type":"string","isRequired":true,"uniqueKey":"decision","typeLabel":"enum\u003cstring>"},"item":{"oneOf":[{"description":"The item the call would use, by its id in your list of items. null: none.","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"item.oneOf.0.id","typeLabel":"string"}},"required":["id"],"type":"object","isRequired":true,"uniqueKey":"item.oneOf.0","typeLabel":"object"},{"description":"The item the call would use, by its id in your list of items. null: none.","properties":{"id":{"type":"string"}},"required":["id"],"type":"null","isRequired":true,"uniqueKey":"item.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"item","typeLabel":"object | null"},"reason":{"description":"The decision in words, with what it could not take into account.","type":"string","isRequired":true,"uniqueKey":"reason","typeLabel":"string"},"rule":{"oneOf":[{"description":"The rule that decided. null: no rule did, or the rule is set above your vault and does not block.","properties":{"id":{"oneOf":[{"description":"null for a rule set above your vault.","type":"string","isRequired":true,"uniqueKey":"rule.oneOf.0.id.oneOf.0","typeLabel":"string"},{"description":"null for a rule set above your vault.","type":"null","isRequired":true,"uniqueKey":"rule.oneOf.0.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"rule.oneOf.0.id","typeLabel":"string | null"},"name":{"type":"string","isRequired":true,"uniqueKey":"rule.oneOf.0.name","typeLabel":"string"}},"required":["id","name"],"type":"object","isRequired":true,"uniqueKey":"rule.oneOf.0","typeLabel":"object"},{"description":"The rule that decided. null: no rule did, or the rule is set above your vault and does not block.","properties":{"id":{"oneOf":[{"description":"null for a rule set above your vault.","type":"string"},{"description":"null for a rule set above your vault.","type":"null"}]},"name":{"type":"string"}},"required":["id","name"],"type":"null","isRequired":true,"uniqueKey":"rule.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"rule","typeLabel":"object | null"}},"required":["decision","item","rule","reason","code"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","decision":"allowed","item":{"id":"\u003cstring>"},"reason":"\u003cstring>","rule":{"id":"\u003cstring>","name":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"What would happen.","exampleType":"generated"},"6348767a-ff0e-4942-847a-4f0fe3cfb807":{"content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"enum":["bad_request","validation_failed","unauthenticated","forbidden","not_found","conflict","gone","idempotency_conflict","precondition_required","rate_limited","authorization_pending","slow_down","access_denied","expired_token","internal","unavailable"],"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"details":{"items":{"properties":{"field":{"description":"Where the problem is.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"description":"What kind of problem.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"},"message":{"description":"The problem in words.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["field","issue","message"],"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"error.details","typeLabel":"object[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"oneOf":[{"description":"The X-Request-Id of this call, to quote when asking.","type":"string","isRequired":true,"uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"description":"The X-Request-Id of this call, to quote when asking.","type":"null","isRequired":true,"uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["code","message","details","requestId"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"bad_request","details":[{"field":"\u003cstring>","issue":"\u003cstring>","message":"\u003cstring>"}],"message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"Bad request.","exampleType":"generated"},"a79c19c5-9813-4607-a26b-9cac8b787ae5":{"content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"enum":["bad_request","validation_failed","unauthenticated","forbidden","not_found","conflict","gone","idempotency_conflict","precondition_required","rate_limited","authorization_pending","slow_down","access_denied","expired_token","internal","unavailable"],"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"details":{"items":{"properties":{"field":{"description":"Where the problem is.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"description":"What kind of problem.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"},"message":{"description":"The problem in words.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["field","issue","message"],"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"error.details","typeLabel":"object[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"oneOf":[{"description":"The X-Request-Id of this call, to quote when asking.","type":"string","isRequired":true,"uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"description":"The X-Request-Id of this call, to quote when asking.","type":"null","isRequired":true,"uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["code","message","details","requestId"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"bad_request","details":[{"field":"\u003cstring>","issue":"\u003cstring>","message":"\u003cstring>"}],"message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"Not signed in.","exampleType":"generated"},"22eeb21f-52bd-4da4-b6eb-e36a9979de60":{"content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"enum":["bad_request","validation_failed","unauthenticated","forbidden","not_found","conflict","gone","idempotency_conflict","precondition_required","rate_limited","authorization_pending","slow_down","access_denied","expired_token","internal","unavailable"],"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"details":{"items":{"properties":{"field":{"description":"Where the problem is.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"description":"What kind of problem.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"},"message":{"description":"The problem in words.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["field","issue","message"],"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"error.details","typeLabel":"object[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"oneOf":[{"description":"The X-Request-Id of this call, to quote when asking.","type":"string","isRequired":true,"uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"description":"The X-Request-Id of this call, to quote when asking.","type":"null","isRequired":true,"uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["code","message","details","requestId"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"bad_request","details":[{"field":"\u003cstring>","issue":"\u003cstring>","message":"\u003cstring>"}],"message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"Not allowed.","exampleType":"generated"},"71975556-9d7b-448f-837c-8e871f842040":{"content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"enum":["bad_request","validation_failed","unauthenticated","forbidden","not_found","conflict","gone","idempotency_conflict","precondition_required","rate_limited","authorization_pending","slow_down","access_denied","expired_token","internal","unavailable"],"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"details":{"items":{"properties":{"field":{"description":"Where the problem is.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"description":"What kind of problem.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"},"message":{"description":"The problem in words.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["field","issue","message"],"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"error.details","typeLabel":"object[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"oneOf":[{"description":"The X-Request-Id of this call, to quote when asking.","type":"string","isRequired":true,"uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"description":"The X-Request-Id of this call, to quote when asking.","type":"null","isRequired":true,"uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["code","message","details","requestId"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"bad_request","details":[{"field":"\u003cstring>","issue":"\u003cstring>","message":"\u003cstring>"}],"message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"Validation failed.","exampleType":"generated"},"dc5c8998-b866-46a6-895c-00f489df7d45":{"content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"enum":["bad_request","validation_failed","unauthenticated","forbidden","not_found","conflict","gone","idempotency_conflict","precondition_required","rate_limited","authorization_pending","slow_down","access_denied","expired_token","internal","unavailable"],"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"details":{"items":{"properties":{"field":{"description":"Where the problem is.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"description":"What kind of problem.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"},"message":{"description":"The problem in words.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["field","issue","message"],"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"error.details","typeLabel":"object[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"oneOf":[{"description":"The X-Request-Id of this call, to quote when asking.","type":"string","isRequired":true,"uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"description":"The X-Request-Id of this call, to quote when asking.","type":"null","isRequired":true,"uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["code","message","details","requestId"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"bad_request","details":[{"field":"\u003cstring>","issue":"\u003cstring>","message":"\u003cstring>"}],"message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"Too many checks. Wait for Retry-After seconds.","exampleType":"generated"},"28759bc8-820f-4986-ad62-5e503b1b2956":{"content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"enum":["bad_request","validation_failed","unauthenticated","forbidden","not_found","conflict","gone","idempotency_conflict","precondition_required","rate_limited","authorization_pending","slow_down","access_denied","expired_token","internal","unavailable"],"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"details":{"items":{"properties":{"field":{"description":"Where the problem is.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"description":"What kind of problem.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"},"message":{"description":"The problem in words.","type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"required":["field","issue","message"],"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"error.details","typeLabel":"object[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"oneOf":[{"description":"The X-Request-Id of this call, to quote when asking.","type":"string","isRequired":true,"uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"description":"The X-Request-Id of this call, to quote when asking.","type":"null","isRequired":true,"uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["code","message","details","requestId"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"bad_request","details":[{"field":"\u003cstring>","issue":"\u003cstring>","message":"\u003cstring>"}],"message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"Unexpected error.","exampleType":"generated"},"9e801318-58ba-4c2d-9647-035b1b140562":{"content":{"application/json":{"schema":{"properties":{"decision":{"enum":["unknown"],"type":"string","isRequired":true,"uniqueKey":"decision","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","isRequired":true,"uniqueKey":"reason","typeLabel":"string"}},"required":["decision","reason"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"decision":"unknown","reason":"\u003cstring>"}}},"exampleType":"generated"}},"description":"The gateway could not decide. Never read this as allowed.","exampleType":"generated"}},"security":{"d0ec6026-6c5f-4936-89d0-6edc7299807f":{"agentBearer":{"description":"An agent's own credential (oc_agent_...). It reads what that agent can use and nothing else.","scheme":"bearer","type":"http","scopes":[],"schemeName":"agentBearer"}}},"servers":{"79785793-f50c-4451-be0f-d6b4e66e555e":{"url":"https://api.onecli.sh","description":"OneCLI Cloud"},"6fa9721c-6388-4aa1-945c-bb0e6c66436b":{"url":"http://localhost:10254","description":"Self-hosted"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"An agent's own credential (oc_agent_...). It reads what that agent can use and nothing else.","scheme":"bearer","type":"http","scopes":[],"schemeName":"agentBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An agent's own credential (oc_agent_...). It reads what that agent can use and nothing else.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"agentBearer","name":"Authorization"}],"title":"agentBearer"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"onecli-sh-docs","siteName":"OneCLI","title":"Ask what would happen to a call, as an agent - OneCLI","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T21:30:21.575Z","originalFileLocation":"api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OneCLI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/onecli-sh-docs/kVhcqu1MSXl6LB8G/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/onecli-sh-docs/kVhcqu1MSXl6LB8G/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/onecli-sh-docs/kVhcqu1MSXl6LB8G/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/onecli-sh-docs/kVhcqu1MSXl6LB8G/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/onecli-sh-docs/kVhcqu1MSXl6LB8G/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/onecli-sh-docs/kVhcqu1MSXl6LB8G/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/onecli-sh-docs/kVhcqu1MSXl6LB8G/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/onecli-sh-docs/kVhcqu1MSXl6LB8G/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/onecli-sh-docs/kVhcqu1MSXl6LB8G/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Ask what would happen to a call, as an agent - OneCLI\">\u003cmeta data-mint-head property=\"og:description\" content=\"What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OneCLI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://onecli-sh-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Agent+self-service\u0026amp;title=Ask+what+would+happen+to+a+call%2C+as+an+agent\u0026amp;description=What+the+gateway+would+decide+for+one+call+of+yours%2C+with+nothing+sent.+It+is+advice%3A+the+call+itself+is+decided+again+when+you+make+it.\u0026amp;theme=c07fb6f5c2da82bc69807d12\u0026amp;signature=5732c04cc7813e4a5acb454bf222672856e6a677e62c738c2dd61938b54195b4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Ask what would happen to a call, as an agent - OneCLI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://onecli-sh-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Agent+self-service\u0026amp;title=Ask+what+would+happen+to+a+call%2C+as+an+agent\u0026amp;description=What+the+gateway+would+decide+for+one+call+of+yours%2C+with+nothing+sent.+It+is+advice%3A+the+call+itself+is+decided+again+when+you+make+it.\u0026amp;theme=c07fb6f5c2da82bc69807d12\u0026amp;signature=5732c04cc7813e4a5acb454bf222672856e6a677e62c738c2dd61938b54195b4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/onecli-sh-docs/kVhcqu1MSXl6LB8G/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OneCLI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0b5530\">\u003clink data-mint-head rel=\"canonical\" href=\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://onecli-sh-docs.mintlify.dev/#organization\",\"name\":\"OneCLI\",\"url\":\"https://onecli-sh-docs.mintlify.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/onecli-sh-docs/RTC5pGoFGh943jJc/logo/logo-full-light.svg?fit=max\u0026auto=format\u0026n=RTC5pGoFGh943jJc\u0026q=85\u0026s=9323ee06c8de13b4c5507ab8a6fbf2ac\"}},{\"@type\":\"WebSite\",\"@id\":\"https://onecli-sh-docs.mintlify.dev/docs#website\",\"name\":\"OneCLI\",\"url\":\"https://onecli-sh-docs.mintlify.dev/docs\",\"publisher\":{\"@id\":\"https://onecli-sh-docs.mintlify.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent#webpage\",\"url\":\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent\",\"name\":\"Ask what would happen to a call, as an agent\",\"description\":\"What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it.\",\"dateModified\":\"2026-12-01T21:30:21.575Z\",\"isPartOf\":{\"@id\":\"https://onecli-sh-docs.mintlify.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agents\",\"item\":\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agents/list-agents\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agent self-service\",\"item\":\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agent-self-service\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ask what would happen to a call, as an agent\",\"item\":\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent#apireference\",\"headline\":\"Ask what would happen to a call, as an agent\",\"name\":\"Ask what would happen to a call, as an agent\",\"description\":\"What the gateway would decide for one call of yours, with nothing sent. It is advice: the call itself is decided again when you make it.\",\"url\":\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent\",\"mainEntityOfPage\":{\"@id\":\"https://onecli-sh-docs.mintlify.dev/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent#webpage\"},\"dateModified\":\"2026-12-01T21:30:21.575Z\",\"publisher\":{\"@id\":\"https://onecli-sh-docs.mintlify.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://onecli-sh-docs.mintlify.dev/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OneCLI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OneCLI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent.md","siteName":"OneCLI","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"https://mintlify.s3.us-west-1.amazonaws.com/onecli-sh-docs/images/github.svg","href":"https://github.com/onecli"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides"}]},{"tab":"API Reference","groups":[{"group":"Overview","root":{"title":"API Reference: Authentication, Paging and Errors","sidebarTitle":"Overview","href":"/api-reference"},"pages":[{"title":"Editions: Cloud and Self-hosted Endpoints","sidebarTitle":"Editions","href":"/api-reference/editions"},{"title":"API Errors: Codes, Statuses and the Error Format","sidebarTitle":"Errors","href":"/api-reference/errors"},{"title":"Gateway Errors: When a Call Is Refused or Held","sidebarTitle":"Gateway errors","href":"/api-reference/gateway-errors"},{"title":"Multiple Accounts: Choosing Which Item Serves a Call","sidebarTitle":"Multiple accounts","href":"/api-reference/multi-account"},{"title":"Environment variables","sidebarTitle":"Environment variables","href":"/reference/environment-variables"},{"title":"Telemetry: what OneCLI collects and where","sidebarTitle":"Telemetry","href":"/reference/telemetry"}]},{"group":"Vaults and items","pages":[{"group":"Vaults","root":{"title":"Vaults API: List, Create, Rename and Delete Vaults","sidebarTitle":"Overview","href":"/api-reference/vaults"},"pages":[{"title":"List vaults","deprecated":null,"version":null,"sidebarTitle":"List vaults","openapi":"/openapi.yaml get /v2/vaults","href":"/api-reference/vaults/list-vaults"},{"title":"Make a vault","deprecated":null,"version":null,"sidebarTitle":"Make a vault","openapi":"/openapi.yaml post /v2/vaults","href":"/api-reference/vaults/make-a-vault"},{"title":"Read a vault","deprecated":null,"version":null,"sidebarTitle":"Read a vault","openapi":"/openapi.yaml get /v2/vaults/{id}","href":"/api-reference/vaults/read-a-vault"},{"title":"Rename a vault","deprecated":null,"version":null,"sidebarTitle":"Rename a vault","openapi":"/openapi.yaml patch /v2/vaults/{id}","href":"/api-reference/vaults/rename-a-vault"},{"title":"Delete a vault","deprecated":null,"version":null,"sidebarTitle":"Delete a vault","openapi":"/openapi.yaml delete /v2/vaults/{id}","href":"/api-reference/vaults/delete-a-vault"},{"title":"List a vault's sources","deprecated":null,"version":null,"sidebarTitle":"List a vault's sources","openapi":"/openapi.yaml get /v2/vaults/{id}/sources","href":"/api-reference/vaults/list-a-vaults-sources"}]},{"group":"Items","root":{"title":"Items API: Add, Rotate, Move and Delete Keys","sidebarTitle":"Overview","href":"/api-reference/items"},"pages":[{"title":"List a vault's items","deprecated":null,"version":null,"sidebarTitle":"List a vault's items","openapi":"/openapi.yaml get /v2/vaults/{id}/items","href":"/api-reference/items/list-a-vaults-items"},{"title":"Add a key to a vault","deprecated":null,"version":null,"sidebarTitle":"Add a key to a vault","openapi":"/openapi.yaml post /v2/vaults/{id}/items","href":"/api-reference/items/add-a-key-to-a-vault"},{"title":"Read an item","deprecated":null,"version":null,"sidebarTitle":"Read an item","openapi":"/openapi.yaml get /v2/items/{id}","href":"/api-reference/items/read-an-item"},{"title":"Rename, move, turn off, or set plain http for an item","deprecated":null,"version":null,"sidebarTitle":"Rename, move, turn off, or set plain http for an item","openapi":"/openapi.yaml patch /v2/items/{id}","href":"/api-reference/items/rename-move-turn-off-or-set-plain-http-for-an-item"},{"title":"Delete an item","deprecated":null,"version":null,"sidebarTitle":"Delete an item","openapi":"/openapi.yaml delete /v2/items/{id}","href":"/api-reference/items/delete-an-item"},{"title":"Replace a key's value","deprecated":null,"version":null,"sidebarTitle":"Replace a key's value","openapi":"/openapi.yaml put /v2/items/{id}/value","href":"/api-reference/items/replace-a-keys-value"},{"title":"List a key's versions","deprecated":null,"version":null,"sidebarTitle":"List a key's versions","openapi":"/openapi.yaml get /v2/items/{id}/versions","href":"/api-reference/items/list-a-keys-versions"},{"title":"Put an earlier version back","deprecated":null,"version":null,"sidebarTitle":"Put an earlier version back","openapi":"/openapi.yaml post /v2/items/{id}/versions/{version}/restore","href":"/api-reference/items/put-an-earlier-version-back"},{"title":"Restore a deleted item","deprecated":null,"version":null,"sidebarTitle":"Restore a deleted item","openapi":"/openapi.yaml post /v2/items/{id}/restore","href":"/api-reference/items/restore-a-deleted-item"}]},{"group":"Permissions","root":{"title":"Permissions API: Set What Agents May Do With an Item","sidebarTitle":"Overview","href":"/api-reference/permissions"},"pages":[{"title":"Read what agents may do with an item","deprecated":null,"version":null,"sidebarTitle":"Read what agents may do with an item","openapi":"/openapi.yaml get /v2/items/{id}/permissions","href":"/api-reference/permissions/read-what-agents-may-do-with-an-item"},{"title":"Set what agents may do with an item","deprecated":null,"version":null,"sidebarTitle":"Set what agents may do with an item","openapi":"/openapi.yaml put /v2/items/{id}/permissions","href":"/api-reference/permissions/set-what-agents-may-do-with-an-item"}]},{"group":"Connect tokens","root":{"title":"Connect Tokens API: Tokens That Connect Agents","sidebarTitle":"Overview","href":"/api-reference/connect-tokens"},"pages":[{"title":"Read a vault's connect token","deprecated":null,"version":null,"sidebarTitle":"Read a vault's connect token","openapi":"/openapi.yaml get /v2/vaults/{id}/connect-token","href":"/api-reference/connect-tokens/read-a-vaults-connect-token"},{"title":"Make a vault's connect token","deprecated":null,"version":null,"sidebarTitle":"Make a vault's connect token","openapi":"/openapi.yaml post /v2/vaults/{id}/connect-token","href":"/api-reference/connect-tokens/make-a-vaults-connect-token"},{"title":"Turn a vault's connect token off","deprecated":null,"version":null,"sidebarTitle":"Turn a vault's connect token off","openapi":"/openapi.yaml delete /v2/vaults/{id}/connect-token","href":"/api-reference/connect-tokens/turn-a-vaults-connect-token-off"},{"title":"List a vault's one-use connect tokens","deprecated":null,"version":null,"sidebarTitle":"List a vault's one-use connect tokens","openapi":"/openapi.yaml get /v2/vaults/{id}/connect-tokens","href":"/api-reference/connect-tokens/list-a-vaults-one-use-connect-tokens"},{"title":"Make a one-use connect token","deprecated":null,"version":null,"sidebarTitle":"Make a one-use connect token","openapi":"/openapi.yaml post /v2/vaults/{id}/connect-tokens","href":"/api-reference/connect-tokens/make-a-one-use-connect-token"},{"title":"Turn a one-use connect token off","deprecated":null,"version":null,"sidebarTitle":"Turn a one-use connect token off","openapi":"/openapi.yaml delete /v2/vaults/{id}/connect-tokens/{tokenId}","href":"/api-reference/connect-tokens/turn-a-one-use-connect-token-off"}]}]},{"group":"Agents","pages":[{"group":"Agents","root":{"title":"Agents API: Connect, List, Rename and Disconnect","sidebarTitle":"Overview","href":"/api-reference/agents"},"pages":[{"title":"List agents","deprecated":null,"version":null,"sidebarTitle":"List agents","openapi":"/openapi.yaml get /v2/agents","href":"/api-reference/agents/list-agents"},{"title":"Connect an agent","deprecated":null,"version":null,"sidebarTitle":"Connect an agent","openapi":"/openapi.yaml post /v2/agents","href":"/api-reference/agents/connect-an-agent"},{"title":"Read an agent","deprecated":null,"version":null,"sidebarTitle":"Read an agent","openapi":"/openapi.yaml get /v2/agents/{id}","href":"/api-reference/agents/read-an-agent"},{"title":"Rename an agent","deprecated":null,"version":null,"sidebarTitle":"Rename an agent","openapi":"/openapi.yaml patch /v2/agents/{id}","href":"/api-reference/agents/rename-an-agent"},{"title":"Disconnect an agent","deprecated":null,"version":null,"sidebarTitle":"Disconnect an agent","openapi":"/openapi.yaml delete /v2/agents/{id}","href":"/api-reference/agents/disconnect-an-agent"}]},{"group":"Agent sign-ups","root":{"title":"Agent Sign-ups API: Let an Agent Ask to Connect","sidebarTitle":"Overview","href":"/api-reference/agent-sign-ups"},"pages":[{"title":"Start an agent sign-up","deprecated":null,"version":null,"sidebarTitle":"Start an agent sign-up","openapi":"/openapi.yaml post /v2/agent-signups","href":"/api-reference/agent-sign-ups/start-an-agent-sign-up"},{"title":"Look up an agent sign-up by its code","deprecated":null,"version":null,"sidebarTitle":"Look up an agent sign-up by its code","openapi":"/openapi.yaml post /v2/agent-signups/verify","href":"/api-reference/agent-sign-ups/look-up-an-agent-sign-up-by-its-code"},{"title":"Approve an agent sign-up","deprecated":null,"version":null,"sidebarTitle":"Approve an agent sign-up","openapi":"/openapi.yaml post /v2/agent-signups/{id}/approve","href":"/api-reference/agent-sign-ups/approve-an-agent-sign-up"},{"title":"Deny an agent sign-up","deprecated":null,"version":null,"sidebarTitle":"Deny an agent sign-up","openapi":"/openapi.yaml post /v2/agent-signups/{id}/deny","href":"/api-reference/agent-sign-ups/deny-an-agent-sign-up"},{"title":"Poll an agent sign-up","deprecated":null,"version":null,"sidebarTitle":"Poll an agent sign-up","openapi":"/openapi.yaml post /v2/agent-signups/{id}/token","href":"/api-reference/agent-sign-ups/poll-an-agent-sign-up"}]},{"group":"Agent self-service","root":{"title":"Agent Self-service API: What an Agent Can Read","sidebarTitle":"Overview","href":"/api-reference/agent-self-service"},"pages":[{"title":"The OneCLI skill for agents","deprecated":null,"version":null,"sidebarTitle":"The OneCLI skill for agents","openapi":"/openapi.yaml get /v2/skill","href":"/api-reference/agent-self-service/the-onecli-skill-for-agents"},{"title":"Read who you are, as an agent","description":"The calling agent: its name, its one vault and where it sends its calls. Called with the agent's own access only.","deprecated":null,"version":null,"sidebarTitle":"Read who you are, as an agent","openapi":"/openapi.yaml get /v2/agents/me","href":"/api-reference/agent-self-service/read-who-you-are-as-an-agent"},{"title":"Ask what would happen to a call, as an agent","deprecated":null,"version":null,"sidebarTitle":"Ask what would happen to a call, as an agent","openapi":"/openapi.yaml post /v2/agents/me/check","href":"/api-reference/agent-self-service/ask-what-would-happen-to-a-call-as-an-agent"},{"title":"List what you can use, as an agent","description":"The items of the calling agent's own vault, and the organization items shared with that vault, newest first, with what each allows.","deprecated":null,"version":null,"sidebarTitle":"List what you can use, as an agent","openapi":"/openapi.yaml get /v2/agents/me/items","href":"/api-reference/agent-self-service/list-what-you-can-use-as-an-agent"}]}]},{"group":"Approvals, rules and activity","pages":[{"group":"Approvals","root":{"title":"Approvals API: List and Answer Held Requests","sidebarTitle":"Overview","href":"/api-reference/approvals"},"pages":[{"title":"List waiting requests","deprecated":null,"version":null,"sidebarTitle":"List waiting requests","openapi":"/openapi.yaml get /v2/approvals","href":"/api-reference/approvals/list-waiting-requests"},{"title":"Answer a waiting request","deprecated":null,"version":null,"sidebarTitle":"Answer a waiting request","openapi":"/openapi.yaml patch /v2/approvals/{id}","href":"/api-reference/approvals/answer-a-waiting-request"}]},{"group":"Rules","root":{"title":"Rules API: Organization-Wide Block and Approval Rules","sidebarTitle":"Overview","href":"/api-reference/rules"},"pages":[{"title":"List the organization's rules","deprecated":null,"version":null,"sidebarTitle":"List the organization's rules","openapi":"/openapi.yaml get /v2/org/rules","href":"/api-reference/rules/list-the-organizations-rules"},{"title":"Make an organization rule","deprecated":null,"version":null,"sidebarTitle":"Make an organization rule","openapi":"/openapi.yaml post /v2/org/rules","href":"/api-reference/rules/make-an-organization-rule"},{"title":"Read an organization rule","deprecated":null,"version":null,"sidebarTitle":"Read an organization rule","openapi":"/openapi.yaml get /v2/org/rules/{id}","href":"/api-reference/rules/read-an-organization-rule"},{"title":"Change an organization rule","deprecated":null,"version":null,"sidebarTitle":"Change an organization rule","openapi":"/openapi.yaml patch /v2/org/rules/{id}","href":"/api-reference/rules/change-an-organization-rule"},{"title":"Remove an organization rule","deprecated":null,"version":null,"sidebarTitle":"Remove an organization rule","openapi":"/openapi.yaml delete /v2/org/rules/{id}","href":"/api-reference/rules/remove-an-organization-rule"}]},{"group":"Activity","root":{"title":"Activity API: Request Log, Usage Counts and Audit Log","sidebarTitle":"Overview","href":"/api-reference/activity"},"pages":[{"title":"List activity","deprecated":null,"version":null,"sidebarTitle":"List activity","openapi":"/openapi.yaml get /v2/activity","href":"/api-reference/activity/list-activity"},{"title":"Read usage","deprecated":null,"version":null,"sidebarTitle":"Read usage","openapi":"/openapi.yaml get /v2/usage","href":"/api-reference/activity/read-usage"},{"title":"Read counts","deprecated":null,"version":null,"sidebarTitle":"Read counts","openapi":"/openapi.yaml get /v2/counts","href":"/api-reference/activity/read-counts"},{"title":"Read the audit log","deprecated":null,"version":null,"sidebarTitle":"Read the audit log","openapi":"/openapi.yaml get /v2/audit","href":"/api-reference/activity/read-the-audit-log"}]}]},{"group":"Organization","pages":[{"group":"Apps","root":{"title":"Apps API: Connectable Apps and Your Own OAuth Apps","sidebarTitle":"Overview","href":"/api-reference/apps"},"pages":[{"title":"List the apps that can be connected","deprecated":null,"version":null,"sidebarTitle":"List the apps that can be connected","openapi":"/openapi.yaml get /v2/apps","href":"/api-reference/apps/list-the-apps-that-can-be-connected"},{"title":"List the apps that take the organization's own OAuth app","deprecated":null,"version":null,"sidebarTitle":"List the apps that take an OAuth app of the organization's own","openapi":"/openapi.yaml get /v2/org/apps","href":"/api-reference/apps/list-the-apps-that-take-an-oauth-app-of-the-organizations-own"},{"title":"Read the organization's own app","deprecated":null,"version":null,"sidebarTitle":"Read the organization's own app","openapi":"/openapi.yaml get /v2/org/apps/{provider}","href":"/api-reference/apps/read-the-organizations-own-app"},{"title":"Save the organization's own app","deprecated":null,"version":null,"sidebarTitle":"Save the organization's own app","openapi":"/openapi.yaml put /v2/org/apps/{provider}","href":"/api-reference/apps/save-the-organizations-own-app"},{"title":"Remove the organization's own app","deprecated":null,"version":null,"sidebarTitle":"Remove the organization's own app","openapi":"/openapi.yaml delete /v2/org/apps/{provider}","href":"/api-reference/apps/remove-the-organizations-own-app"}]},{"group":"API keys","root":{"title":"API Keys API: Make, List and Revoke Managing Keys","sidebarTitle":"Overview","href":"/api-reference/api-keys"},"pages":[{"title":"List your keys","deprecated":null,"version":null,"sidebarTitle":"List your keys","openapi":"/openapi.yaml get /v2/keys","href":"/api-reference/api-keys/list-your-keys"},{"title":"Make a key","deprecated":null,"version":null,"sidebarTitle":"Make a key","openapi":"/openapi.yaml post /v2/keys","href":"/api-reference/api-keys/make-a-key"},{"title":"Read one of your keys","deprecated":null,"version":null,"sidebarTitle":"Read one of your keys","openapi":"/openapi.yaml get /v2/keys/{id}","href":"/api-reference/api-keys/read-one-of-your-keys"},{"title":"Revoke one of your keys","deprecated":null,"version":null,"sidebarTitle":"Revoke one of your keys","openapi":"/openapi.yaml delete /v2/keys/{id}","href":"/api-reference/api-keys/revoke-one-of-your-keys"},{"title":"Confirm it's you","deprecated":null,"version":null,"sidebarTitle":"Confirm it's you","openapi":"/openapi.yaml post /v2/session/confirmation","href":"/api-reference/api-keys/confirm-its-you"}]},{"group":"Organization","root":{"title":"Organization API: Your Account, Organizations and Logo","sidebarTitle":"Overview","href":"/api-reference/organization"},"pages":[{"title":"Read who you are","deprecated":null,"version":null,"sidebarTitle":"Read who you are","openapi":"/openapi.yaml get /v2/me","href":"/api-reference/organization/read-who-you-are"},{"title":"Change your name","deprecated":null,"version":null,"sidebarTitle":"Change your name","openapi":"/openapi.yaml patch /v2/me","href":"/api-reference/organization/change-your-name"},{"title":"Make an organization","deprecated":null,"version":null,"sidebarTitle":"Make an organization","openapi":"/openapi.yaml post /v2/organizations","href":"/api-reference/organization/make-an-organization"},{"title":"Rename the organization","deprecated":null,"version":null,"sidebarTitle":"Rename the organization","openapi":"/openapi.yaml patch /v2/org","href":"/api-reference/organization/rename-the-organization"},{"title":"Delete the organization","deprecated":null,"version":null,"sidebarTitle":"Delete the organization","openapi":"/openapi.yaml delete /v2/org","href":"/api-reference/organization/delete-the-organization"},{"title":"Set the organization's logo","deprecated":null,"version":null,"sidebarTitle":"Set the organization's logo","openapi":"/openapi.yaml put /v2/org/logo","href":"/api-reference/organization/set-the-organizations-logo"},{"title":"Remove the organization's logo","deprecated":null,"version":null,"sidebarTitle":"Remove the organization's logo","openapi":"/openapi.yaml delete /v2/org/logo","href":"/api-reference/organization/remove-the-organizations-logo"},{"title":"Read an organization's logo","deprecated":null,"version":null,"sidebarTitle":"Read an organization's logo","openapi":"/openapi.yaml get /v2/organization-logos/{organizationId}/{key}","href":"/api-reference/organization/read-an-organizations-logo"}]},{"group":"Utility","root":{"title":"Utility API: Health Check","sidebarTitle":"Overview","href":"/api-reference/utility"},"pages":[{"title":"Health check","deprecated":null,"version":null,"sidebarTitle":"Health check","openapi":"/openapi.yaml get /v2/health","href":"/api-reference/utility/health-check"}]}]},{"group":"OneCLI Cloud","pages":[{"group":"Members","root":{"title":"Members API: List, Change and Remove Members","sidebarTitle":"Overview","href":"/api-reference/members"},"pages":[{"title":"List members","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List members","openapi":"/openapi.yaml get /v2/members","href":"/api-reference/members/list-members"},{"title":"Read a member","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Read a member","openapi":"/openapi.yaml get /v2/members/{id}","href":"/api-reference/members/read-a-member"},{"title":"Change a member","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Change a member","openapi":"/openapi.yaml patch /v2/members/{id}","href":"/api-reference/members/change-a-member"},{"title":"Remove a member, or leave","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Remove a member, or leave","openapi":"/openapi.yaml delete /v2/members/{id}","href":"/api-reference/members/remove-a-member-or-leave"},{"title":"Preview a member's removal","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Preview a member's removal","openapi":"/openapi.yaml get /v2/members/{id}/removal-preview","href":"/api-reference/members/preview-a-members-removal"},{"title":"Transfer ownership","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Transfer ownership","openapi":"/openapi.yaml post /v2/members/{id}/transfer-ownership","href":"/api-reference/members/transfer-ownership"},{"title":"List people","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List people","openapi":"/openapi.yaml get /v2/people","href":"/api-reference/members/list-people"}]},{"group":"Invites","root":{"title":"Invites API: Invite People to an Organization","sidebarTitle":"Overview","href":"/api-reference/invites"},"pages":[{"title":"List invites","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List invites","openapi":"/openapi.yaml get /v2/invites","href":"/api-reference/invites/list-invites"},{"title":"Invite a person","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Invite a person","openapi":"/openapi.yaml post /v2/invites","href":"/api-reference/invites/invite-a-person"},{"title":"Take up an invite","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Take up an invite","openapi":"/openapi.yaml post /v2/invites/accept","href":"/api-reference/invites/take-up-an-invite"},{"title":"Cancel an invite","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Cancel an invite","openapi":"/openapi.yaml delete /v2/invites/{id}","href":"/api-reference/invites/cancel-an-invite"}]},{"group":"Groups","root":{"title":"Groups API: Manage Groups, Members and Group Roles","sidebarTitle":"Overview","href":"/api-reference/groups"},"pages":[{"title":"List groups","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List groups","openapi":"/openapi.yaml get /v2/groups","href":"/api-reference/groups/list-groups"},{"title":"Create a group","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Create a group","openapi":"/openapi.yaml post /v2/groups","href":"/api-reference/groups/create-a-group"},{"title":"Read a group","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Read a group","openapi":"/openapi.yaml get /v2/groups/{id}","href":"/api-reference/groups/read-a-group"},{"title":"Rename a group","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Rename a group","openapi":"/openapi.yaml patch /v2/groups/{id}","href":"/api-reference/groups/rename-a-group"},{"title":"Delete a group","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Delete a group","openapi":"/openapi.yaml delete /v2/groups/{id}","href":"/api-reference/groups/delete-a-group"},{"title":"List a group's members","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List a group's members","openapi":"/openapi.yaml get /v2/groups/{id}/members","href":"/api-reference/groups/list-a-groups-members"},{"title":"Add a member to a group","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Add a member to a group","openapi":"/openapi.yaml put /v2/groups/{id}/members/{userId}","href":"/api-reference/groups/add-a-member-to-a-group"},{"title":"Remove a member from a group","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Remove a member from a group","openapi":"/openapi.yaml delete /v2/groups/{id}/members/{userId}","href":"/api-reference/groups/remove-a-member-from-a-group"},{"title":"Read a group's role","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Read a group's role","openapi":"/openapi.yaml get /v2/groups/{id}/roles","href":"/api-reference/groups/read-a-groups-role"},{"title":"Set a group's role","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Set a group's role","openapi":"/openapi.yaml put /v2/groups/{id}/roles","href":"/api-reference/groups/set-a-groups-role"},{"title":"Clear a group's role","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Clear a group's role","openapi":"/openapi.yaml delete /v2/groups/{id}/roles","href":"/api-reference/groups/clear-a-groups-role"},{"title":"List a group's vaults","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List a group's vaults","openapi":"/openapi.yaml get /v2/groups/{id}/vaults","href":"/api-reference/groups/list-a-groups-vaults"}]},{"group":"Vault sharing","root":{"title":"Vault Sharing API: Share a Vault With People and Groups","sidebarTitle":"Overview","href":"/api-reference/vault-sharing"},"pages":[{"title":"Read who a vault is shared with","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Read who a vault is shared with","openapi":"/openapi.yaml get /v2/vaults/{id}/access","href":"/api-reference/vault-sharing/read-who-a-vault-is-shared-with"},{"title":"Replace who a vault is shared with","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Replace who a vault is shared with","openapi":"/openapi.yaml put /v2/vaults/{id}/access","href":"/api-reference/vault-sharing/replace-who-a-vault-is-shared-with"}]},{"group":"Shared items","root":{"title":"Shared Items API: One Key Shared With Many Vaults","sidebarTitle":"Overview","href":"/api-reference/shared-items"},"pages":[{"title":"List the shared items","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List the shared items","openapi":"/openapi.yaml get /v2/org/shared-items","href":"/api-reference/shared-items/list-the-shared-items"},{"title":"Add a shared key","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Add a shared key","openapi":"/openapi.yaml post /v2/org/shared-items","href":"/api-reference/shared-items/add-a-shared-key"},{"title":"Read a shared item","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Read a shared item","openapi":"/openapi.yaml get /v2/org/shared-items/{id}","href":"/api-reference/shared-items/read-a-shared-item"},{"title":"Rename a shared item, replace its value, or open it","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Rename a shared item, give a shared key a new value, or open it to all vaults","openapi":"/openapi.yaml patch /v2/org/shared-items/{id}","href":"/api-reference/shared-items/rename-a-shared-item-give-a-shared-key-a-new-value-or-open-it-to-all-vaults"},{"title":"Delete a shared item","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Delete a shared item","openapi":"/openapi.yaml delete /v2/org/shared-items/{id}","href":"/api-reference/shared-items/delete-a-shared-item"},{"title":"List the vaults an item is shared with","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List the vaults an item is shared with","openapi":"/openapi.yaml get /v2/org/shared-items/{id}/vaults","href":"/api-reference/shared-items/list-the-vaults-an-item-is-shared-with"},{"title":"Share an item with a vault","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Share an item with a vault","openapi":"/openapi.yaml put /v2/org/shared-items/{id}/vaults/{vaultId}","href":"/api-reference/shared-items/share-an-item-with-a-vault"},{"title":"Take an item away from a vault","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Take an item away from a vault","openapi":"/openapi.yaml delete /v2/org/shared-items/{id}/vaults/{vaultId}","href":"/api-reference/shared-items/take-an-item-away-from-a-vault"},{"title":"List the shared items a vault may use","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List the shared items a vault may use","openapi":"/openapi.yaml get /v2/vaults/{id}/shared-items","href":"/api-reference/shared-items/list-the-shared-items-a-vault-may-use"},{"title":"Read what a vault's agents may do with a shared item","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Read what a vault's agents may do with a shared item","openapi":"/openapi.yaml get /v2/vaults/{id}/shared-items/{itemId}/permissions","href":"/api-reference/shared-items/read-what-a-vaults-agents-may-do-with-a-shared-item"},{"title":"Set what a vault's agents may do with a shared item","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Set what a vault's agents may do with a shared item","openapi":"/openapi.yaml put /v2/vaults/{id}/shared-items/{itemId}/permissions","href":"/api-reference/shared-items/set-what-a-vaults-agents-may-do-with-a-shared-item"}]},{"group":"Sign-in","root":{"title":"Sign-in API: Single Sign-On Connections and Domains","sidebarTitle":"Overview","href":"/api-reference/sign-in"},"pages":[{"title":"List sign-in connections","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List sign-in connections","openapi":"/openapi.yaml get /v2/org/sign-in/connections","href":"/api-reference/sign-in/list-sign-in-connections"},{"title":"Create a sign-in connection","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Create a sign-in connection","openapi":"/openapi.yaml post /v2/org/sign-in/connections","href":"/api-reference/sign-in/create-a-sign-in-connection"},{"title":"Change a sign-in connection","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Change a sign-in connection","openapi":"/openapi.yaml patch /v2/org/sign-in/connections/{id}","href":"/api-reference/sign-in/change-a-sign-in-connection"},{"title":"Delete a sign-in connection","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Delete a sign-in connection","openapi":"/openapi.yaml delete /v2/org/sign-in/connections/{id}","href":"/api-reference/sign-in/delete-a-sign-in-connection"},{"title":"Test a sign-in connection","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Test a sign-in connection","openapi":"/openapi.yaml post /v2/org/sign-in/connections/{id}/test","href":"/api-reference/sign-in/test-a-sign-in-connection"},{"title":"List sign-in domains","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List sign-in domains","openapi":"/openapi.yaml get /v2/org/sign-in/domains","href":"/api-reference/sign-in/list-sign-in-domains"},{"title":"Claim a sign-in domain","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Claim a sign-in domain","openapi":"/openapi.yaml post /v2/org/sign-in/domains","href":"/api-reference/sign-in/claim-a-sign-in-domain"},{"title":"Release a sign-in domain","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Release a sign-in domain","openapi":"/openapi.yaml delete /v2/org/sign-in/domains/{id}","href":"/api-reference/sign-in/release-a-sign-in-domain"},{"title":"Verify a sign-in domain","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Verify a sign-in domain","openapi":"/openapi.yaml post /v2/org/sign-in/domains/{id}/verify","href":"/api-reference/sign-in/verify-a-sign-in-domain"},{"title":"Read the sign-in requirement","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Read the sign-in requirement","openapi":"/openapi.yaml get /v2/org/sign-in/enforcement","href":"/api-reference/sign-in/read-the-sign-in-requirement"},{"title":"Change the sign-in requirement","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Change the sign-in requirement","openapi":"/openapi.yaml patch /v2/org/sign-in/enforcement","href":"/api-reference/sign-in/change-the-sign-in-requirement"}]},{"group":"Directory tokens","root":{"title":"Directory Tokens API: Tokens for Directory Sync","sidebarTitle":"Overview","href":"/api-reference/directory-tokens"},"pages":[{"title":"List directory tokens","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"List directory tokens","openapi":"/openapi.yaml get /v2/org/directory-tokens","href":"/api-reference/directory-tokens/list-directory-tokens"},{"title":"Make a directory token","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Make a directory token","openapi":"/openapi.yaml post /v2/org/directory-tokens","href":"/api-reference/directory-tokens/make-a-directory-token"},{"title":"Revoke a directory token","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Revoke a directory token","openapi":"/openapi.yaml delete /v2/org/directory-tokens/{id}","href":"/api-reference/directory-tokens/revoke-a-directory-token"}]},{"group":"LLM sign-in","root":{"title":"LLM Sign-in API: Add a Claude or ChatGPT Subscription","sidebarTitle":"Overview","href":"/api-reference/llm-sign-in"},"pages":[{"title":"Start a Claude sign-in","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Start a Claude sign-in","openapi":"/openapi.yaml post /v2/llm/anthropic/sign-in","href":"/api-reference/llm-sign-in/start-a-claude-sign-in"},{"title":"Finish a Claude sign-in","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Finish a Claude sign-in","openapi":"/openapi.yaml post /v2/llm/anthropic/sign-in/finish","href":"/api-reference/llm-sign-in/finish-a-claude-sign-in"},{"title":"Start a ChatGPT sign-in","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Start a ChatGPT sign-in","openapi":"/openapi.yaml post /v2/llm/openai/sign-in","href":"/api-reference/llm-sign-in/start-a-chatgpt-sign-in"},{"title":"Poll a ChatGPT sign-in","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Poll a ChatGPT sign-in","openapi":"/openapi.yaml get /v2/llm/openai/sign-in/{id}","href":"/api-reference/llm-sign-in/poll-a-chatgpt-sign-in"},{"title":"Cancel a ChatGPT sign-in","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Cancel a ChatGPT sign-in","openapi":"/openapi.yaml delete /v2/llm/openai/sign-in/{id}","href":"/api-reference/llm-sign-in/cancel-a-chatgpt-sign-in"}]},{"group":"Billing","root":{"title":"Billing API: Plan, Credits and Payment State","sidebarTitle":"Overview","href":"/api-reference/billing"},"pages":[{"title":"Link an AWS Marketplace purchase","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Link an AWS Marketplace purchase","openapi":"/openapi.yaml post /v2/billing/aws-marketplace/registrations","href":"/api-reference/billing/link-an-aws-marketplace-purchase"},{"title":"Read a payment problem","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Read a payment problem","openapi":"/openapi.yaml get /v2/billing/payment-issue","href":"/api-reference/billing/read-a-payment-problem"},{"title":"Read the plan's usage","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Read the plan's usage","openapi":"/openapi.yaml get /v2/billing/quota","href":"/api-reference/billing/read-the-plans-usage"},{"title":"Read the subscription","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Read the subscription","openapi":"/openapi.yaml get /v2/billing/subscription","href":"/api-reference/billing/read-the-subscription"}]},{"group":"Support","root":{"title":"Support API: Write to the Team or Ask for an App","sidebarTitle":"Overview","href":"/api-reference/support"},"pages":[{"title":"Ask for an app","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Ask for an app","openapi":"/openapi.yaml post /v2/app-requests","href":"/api-reference/support/ask-for-an-app"},{"title":"Write to the team","deprecated":null,"version":null,"tag":"Cloud","sidebarTitle":"Write to the team","openapi":"/openapi.yaml post /v2/support","href":"/api-reference/support/write-to-the-team"}]}]}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks"}]}]},"basePath":"","title":"Ask what would happen to a call, as an agent - OneCLI","deploymentId":"dpl_FJXVBuj1Gbcjzv4BLN7d4WGZQfWn","buildId":"dpl_FJXVBuj1Gbcjzv4BLN7d4WGZQfWn","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BOnbbU68.js","snippetPresets-BxuPKrW8.js","utils-CEkR-TlS.js","style-to-object-BY3JEAdk.js","utils-C3h1luYv.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DIjwh9qi.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DT_vIWtT.js","_Uint8Array-A6zzLEKJ.js","isObject-FP1Yky1u.js","ApiExamples-2hAcsR2B.js","usePlaygroundInputsStore-BxSIiUv4.js","shallow-BnVcH_Vp.js","isEqual-BPo_0IrI.js","CodeSnippets-fNAiOVHv.js","CodeSnippet-BFWCicrH.js","use-playground-group-access-DddevprM.js","Page-zZr9uBwS.js","api-description-markdown-B22zaWSK.js","DynamicMarkdown-rJ80e-H3.js","SectionHeading-B2zwbl_Y.js","MethodPill-BZe_7-2H.js","getPastedJson-D30c16tY.js","Check2Icon-B51XHHRW.js","axios-CsQoIw0U.js","Markdown-CrWcS0iW.js","AssistantPageLink-C5g489Fj.js","dist-D0mIFLFs.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}