Repository navigation
Document Action Gateway data plane REST APIs - #1270
Merged
anup-deka merged 3 commits intoOct 16, 2026
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an Action Gateway Data Plane tag that documents the gateway's REST endpoints, which are the REST forms of a session's MCP meta tools (
action_search,action_invoke,action_code). These operations use their own base URL,https://actions.do-ai.run, set per operation inservers, the same way the Inference endpoints usehttps://inference.do-ai.run.gatewayTools_listGET /toolsgatewayTools_list_searchPOST /tools/searchgatewayTools_runPOST /tools/invokegatewayCode_runPOST /code/executegatewaySessionApprovals_updatePOST /approvals/session/{session_id}/{approval_id}gatewayApprovals_updatePOST /approvals/{approval_id}(session inX-Session-Id)MCP routes and the tool registry APIs are out of scope.
What's documented
action_gateway:executescope, plus a session UUID inX-Session-Idor in the path. The session must belong to the same user and team. When the team is not enabled, requests return a412release gate.ToolResultenvelope (status,output,error{class, message, retriable, recovery_hint},call_id,_meta). Status codes and messages follow the gateway's sanitized error registry. Edge rejections (401, and 403 for scope or account standing) use the standard DigitalOcean error format. Request bodies are limited to 1 MiB.askpolicy return_meta.status: requires_approvalwithapproval_id,expires_at, and adeciderequest description.use_casecan be up to 512 bytes and 32 search terms and must contain at least one letter or digit.limitdefaults to 10 and is capped at 50.GET /toolspages 1 to 100 tools (default 20) using a session-pinned page token, withETagandIf-None-Matchreturning304.x-tagGroupsunder Public APIs.Lint rule changes (
spectral/ruleset.yml)path-must-include-versionnow allows the unversioned data plane paths.ratelimit-headersskips those same paths. Edge'sactions-apiroute for these endpoints has no rate-limiter filter, and the gateway doesn't setratelimit-*headers, so documenting them would be wrong.Retry-Afteris documented on429because the gateway sets it when a tool-call limit is hit. I confirmed the rule still fails a/v2response that lacks the headers.Verification
Checked against cthulhu
origin/master(5d665672, Oct 15) andaction-infra-manifestmain(82d9b4a8):server.goand Edge'sextauth/actions-api.jsonnetlist the same six paths.permissions.action_gateway_execute, which isaction_gateway:execute.GET /toolspaging behavior match the gateway code.make lintpasses with 0 errors. All 8 warnings were already onmain, and none are inaction_gatewayfiles.oneOf.Not verified
No calls were made against
actions.do-ai.runwith a real token; response bodies come from the gateway source.Follow-up
A separate Product Docs PR will:
action-gatewayandaction-gateway-data-planeinscripts/product-stubs.yaml