Invoke an authorized API-key connection
vault_invoke_writeExecute a provider operation through an authorized API-key/PAT connection using a POST request, including AI model calls. Authentication and destination hosts are controlled by API Vault; the stored credential is injected server-side and never returned.
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": {
"connection_id": "<connection_id>",
"path": "<path>"
},
"name": "vault_invoke_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| path | Yes | ||
| headers | No | ||
| model_id | No | ||
| operation | No | api.request | |
| credential | No | For owner-bound custom APIs only. API Vault chooses Bearer by default; set this only when the provider docs require a custom header or query parameter. The stored key is still injected server-side and never returned. | |
| connection_id | Yes |