POST
/user/proxy-cached
const url = 'https://example.com/user/proxy-cached';const options = { method: 'POST', headers: {'X-Tenzir-UserKey': '<X-Tenzir-UserKey>', 'Content-Type': 'application/json'}, body: '{"tenant_id":"example","node_id":"example","request_id":"example","http":{"path":"example","method":"GET","api_version":0,"headers":{},"body_base64":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/user/proxy-cached \ --header 'Content-Type: application/json' \ --header 'X-Tenzir-UserKey: <X-Tenzir-UserKey>' \ --data '{ "tenant_id": "example", "node_id": "example", "request_id": "example", "http": { "path": "example", "method": "GET", "api_version": 0, "headers": {}, "body_base64": "example" } }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
ProxyRequest
This is sent as request body to the /proxy endpoint.
object
tenant_id
required
Tenant Id
string
node_id
required
Node Id
string
Responses
Section titled “ Responses ”Successful Response
Media type application/json
CachedProxyResponse
object
Example
{ "from_cache": false}{"detail": "Invalid API Key"}
{"detail": "Not permitted to access this tenant"}
{"detail": "Cache not found"}
{"detail": "Tenant not found"}
{"detail": "Node not found"}
{"detail": "Proxy timed out"}
{"detail": "Node not connected"}
Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}