Send proxied provider request
stack_proxy_requestSend an HTTP request to a connected provider through STACK's credential proxy. STACK injects the provider credential, which is never returned. Non-GET calls require authority_request_id, which identifies one operation: an operation is counted once, a different request under the same id is refused as a conflict, and an operation with an unknown provider outcome is not resent automatically. Status and stored-response reads are not counted. Passports in enforced mode also require approval_id from an approved intent (stack_submit_intent, stack_get_intent_approval). When refused CONTROL_DENIED with reason review_required, ask again with the same input and control_ref set to the ref once the owner approved.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"service": "<service>",
"url": "<url>",
"method": "<method>",
"passport_token": "<passport_token>"
},
"name": "stack_proxy_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full target URL (e.g. "https://api.openai.com/v1/models") | |
| body | No | Request body (will be JSON-serialized) | |
| query | No | Query parameters to append to URL | |
| method | Yes | HTTP method | |
| headers | No | Extra headers (auth headers will be stripped — STACK injects them) | |
| service | Yes | Provider slug (e.g. "openai", "slack", "github") | |
| connection | No | Which connection of the service to use, by its name or id (scon_*). Needed only when the agent has more than one connection of the service. | |
| approval_id | No | Approval id from stack_submit_intent. Required when the calling passport is in enforced mode. Sent server-side as X-Intent-Approval-Id. | |
| control_ref | No | The ref of a refusal that held this action for the owner, sent as X-Control-Ref once the owner approved it; omit on the first request | |
| passport_token | Yes | Passport JWT token | |
| authority_request_id | No | Stable high-entropy operation id. Required for non-GET calls. One id identifies one unchanged request. |