Hosted beta

API reference

The portable evaluation endpoint, generated from Antaeus's released OpenAPI contract, with the hosted authentication and retry requirements.

Generated at build time from the OpenAPI 3.1.2 documentin Antaeus v0.7.0. Portable schemas are unchanged released copies. The OpenAPI document describes evaluation; hosted key scopes, capacity, and policy-management routes are documented in the hosted guide.

The hosted evaluation URL is /api/v0.1/decisions, using the released v0alpha2 request/Decision schemas. The portable OpenAPI describes/v0alpha2/decisions; configure generated clients to map that operation to the hosted URL. Its server origin is https://api.antaeus.io. The legacy /v0alpha1 hosted base remains an alias for the same v0alpha2 payloads, authentication, usage and replay records.

Hosted request headers

Origin: https://api.antaeus.io. All calls run server-side over HTTPS.

HeaderRequirement
AuthorizationRequired: Bearer <API key>, with decisions:create
Content-TypeRequired: application/json
Idempotency-KeyOptional but recommended: one stable logical event ID, 1–128 visible ASCII characters. Reuse the same key, credential, and exact JSON body on retries within 24 hours.

POST /api/v0.1/decisions

Evaluate one input against an immutable policy

Operation ID: createDecision

Request body

Required JSON body. Choose exactly one inline policy or immutable published reference; the input is a JSON object.

Content typeSchema
application/jsonDecisionRequest JSON Schema
FieldRequiredType / constant
apiVersionYesdecision.antaeus.io/v0alpha2
kindYesDecisionRequest
policyYesobject
inputYesobject

Unknown request fields are rejected. See the runnable inline example and published-reference example.

Responses

StatusMeaningContent type / schema
200A completed allow, review, deny, or failure Decision.application/json
Decision
400The request was not accepted for evaluation.application/problem+json
Problem Details
401The request was not accepted for evaluation.application/problem+json
Problem Details
403The request was not accepted for evaluation.application/problem+json
Problem Details
404The request was not accepted for evaluation.application/problem+json
Problem Details
413The request was not accepted for evaluation.application/problem+json
Problem Details
415The request was not accepted for evaluation.application/problem+json
Problem Details
422The request was not accepted for evaluation.application/problem+json
Problem Details
429The request was not accepted for evaluation.application/problem+json
Problem Details
500The request was not accepted for evaluation.application/problem+json
Problem Details

The hosted service adds X-Request-Id and Cache-Control: no-store. Replays include Idempotency-Replayed: true; 429 and 500 include Retry-After in seconds.

For status-specific action, read retries and errors. A typed failure Decision remains HTTP 200. It is not permission to proceed.

Decision fields

The response body is the portable Decision itself. Optional extensions do not replace its outcome.

FieldRequiredType / schema
apiVersionYesdecision.antaeus.io/v0alpha2
kindYesDecision
outcomeYes../v0alpha1/common.schema.json#/$defs/decisionOutcome
policyYes../v0alpha1/common.schema.json#/$defs/policyIdentity
ruleResultsYesarray
reasonCodesYes../v0alpha1/common.schema.json#/$defs/reasonCodes
failureWhen outcome is failure#/$defs/failure
evaluatorNo#/$defs/evaluator
extensionsNo../v0alpha1/common.schema.json#/$defs/extensions

The complete Decision schema specifies nested fields and conditional requirements. Read the outcome handling table before enforcing a result.

Contract downloads