Run a saved decision
POST/v1/decisions/:name
Runs a saved decision of the source project: the input, the memory and the constraints of the project build the state of the document, Jev answers the questions of the document, and the rules turn the answers into the actions of the decision. The call is a System One call under a document, so the platform Jev of the call needs the classify grant of the project.
Request
Responses
- 200
- 400
- 401
- 402
- 403
- 404
- 429
- 503
The answer of the decision: the id of the call, the answer of each question, the rules that matched and the actions that they set.
bad_request for a call without an input, an input that is not a text, a model that is not a provider and a name, or a decision without a document; no_route for a route that does not start with a Jev model; invalid_memory_subject and invalid_memory_scope for memory headers that the gateway cannot read.
The bearer virtual key is missing (missing_key), or it is not valid or it is revoked (invalid_key).
The project may not send calls (subscription_required). proxium.tech is in open beta and does not return this answer.
The route starts with the platform Jev and the project has no classify grant (jev_not_granted), or a content rule of the project blocked the call (guardrail_blocked).
unknown_decision: the project has no decision of that name in force.
The key or the source used its budget window (tenant_capped or source_capped, retry-after: 60), or the project reached a monthly cap (credits_exhausted, retry-after: 3600). No project on proxium.tech has a monthly cap during the open beta.
Response Headers
Seconds to wait before the next call.
Each attempt of the failover chain failed (upstream_failed). The message gives the reason of the last attempt, or client deadline exceeded when x-proxium-timeout-ms ran out. Or: The key store or the limits store is not available (keystore_unavailable, limits_unavailable). A deployment that refuses calls while its budget store is down answers budget_unavailable with retry-after: 5; proxium.tech lets the call through.
Response Headers
Seconds to wait before the next call.