valta_proxy_request
Make real API calls to connected services through Valta's spend-gated proxy. Declare cost upfront; proxy checks wallet limits and executes only if approved, with automatic refund on failure.
Instructions
Make a real outbound API call to a connected service (e.g. Stripe) through Valta's spend-gated egress proxy, instead of calling the provider directly. Declare the amount this call will cost up front — Valta checks it against the agent's wallet limits (freeze state, per-transaction/daily/monthly caps, approval thresholds) and only makes the real request if approved, using the account's own stored credential for that service. If the upstream call fails, the declared amount is automatically refunded. Only services with proxying enabled can be called this way — currently: stripe, serper, polygon.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional JSON body to send with the request | |
| path | Yes | Path on the service's API, relative to its base URL, e.g. "/v1/customers" | |
| amount | Yes | Declared cost of this call in USD — checked against wallet limits before the real call is made | |
| method | Yes | HTTP method for the upstream call | |
| agentId | Yes | The Valta agent/wallet ID or name this spend is attributed to | |
| service | Yes | The connected service to call, e.g. "stripe" | |
| category | No | Optional spend category | |
| description | Yes | What this call is for — recorded in the audit trail |