REST API
Use https://api.ivorleaf.io from a trusted backend with an approved organization credential. The Quickstart submits a small supplied-text validation with ordinary HTTP.
Core operations
| Method and path | Purpose | Successful result |
|---|---|---|
POST /v1/validation | Evaluate information against supplied, URL-acquired or mixed evidence. | 200 completed; conditional 202 accepted. |
GET /v1/validation/{validation_id} | Retrieve organization-owned execution state. | 200 active, completed or failed. |
GET /v1/validation/usage/status | Inspect organization VU capacity and consumption. | 200 typed usage status. |
GET /v1/api/usage/status | Compatibility usage and current-credential context. | 200; shape depends on credential context. |
GET /health | Public API health check. | Health response; does not establish authorization or provider readiness. |
Contract and request identity
The interactive API reference reads production OpenAPI directly. It defines endpoint methods, security schemes, parameters and request/response models. Several advanced responses remain incompletely typed; avoid inferring a guaranteed schema from an example.
Core validation uses a closed JSON object with information and evidence; see request forms. Authenticate with X-API-Key or a bearer organization credential and preserve an explicit Idempotency-Key before dispatch. X-Ivorleaf-Client: api is the normal direct client classification.
Handle both immediate completion and accepted work, and inspect execution status even after a successful GET. Read lifecycle, idempotency, and errors. No documented customer field chooses an evaluator, acquisition provider or organization policy.
Examples and further operations
JSON file input shows direct submission without private backend access. Runnable cURL, TypeScript and Python examples in the portal repository submit or retrieve once without automatic retries. Python SDK availability is separate from the HTTP contract.
Advanced Workflows covers Technical Sessions, persistence, artifacts, assessments and packaged experiences. Their paths in OpenAPI do not imply that an organization approved only for validation can execute them.