API Reference
API Reference
Base URL: https://api.prova.cobound.dev
Authentication: Authorization: Bearer <api_key>
Content-Type: application/json
Analyze a reasoning chain and return a formal validity certificate.
Request body
Response (200 OK)
Extraction consensus (optional)
By submitting n_extraction_samples greater than 1, Prova runs multiple parallel extraction passes and takes the majority consensus graph. This improves reliability on ambiguous reasoning chains at proportional API cost. Recommended for production pipelines where extraction accuracy is critical.
extraction_consensus object (when n_extraction_samples > 1)
failure object (when verdict=INVALID)
Analyze a pre-built argument graph and return a formal validity certificate. Skips extraction entirely.
When to use this vs. POST /verify
Use /verify when your AI system produces natural language reasoning that needs to be parsed into a graph. Use /verify/structured when your agent framework (LangGraph, CrewAI, custom orchestrators) already maintains an explicit graph of claims and dependencies. The structured path is faster, has no extraction ambiguity, and always returns confidence_score: 100.
Request body
nodes array item
edges array item
Example request (3-node loan approval graph)
{
"nodes": [
{ "id": "claim-1", "type": "premise", "text": "The applicant has stable income" },
{ "id": "claim-2", "type": "claim", "text": "They can make payments" },
{ "id": "claim-3", "type": "conclusion", "text": "Approve the loan" }
],
"edges": [
{ "from": "claim-1", "to": "claim-2" },
{ "from": "claim-2", "to": "claim-3" }
],
"retain": true,
"metadata": { "pipeline": "loan-approvals-v2" }
}Response (200 OK)
Verify a reasoning chain and auto-repair it if INVALID. Runs the full verify-suggest-apply-re-verify loop server-side.
How repair works
POST /repair runs the full pipeline in a single call: verify the original reasoning, generate Claude-powered repair suggestions, apply them, and re-verify. Up to max_iterations repair-verify cycles are run. Each iteration logs its own usage record. If the original is already VALID, returns immediately with iterations_used: 0.
Request body
Response (200 OK)
diff object
Retrieve a stored certificate by ID. Public -- no authentication required.
Path parameters
Returns the same schema as POST /verify. Returns 404 if the certificate does not exist. Certificates are permanent -- they are never deleted.
Health check. Returns current version information.
Response (200 OK)