Skip to content
GET /v1/evaluate

Evaluate under an assignment

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/truthtable-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/truthtable-api/v1/evaluate" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/truthtable-api/v1/evaluate", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/truthtable-api/v1/evaluate");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/truthtable-api/v1/evaluate",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "result": 0,
        "boolean": false,
        "variables": [
            "P",
            "Q"
        ],
        "assignment": {
            "P": 1,
            "Q": 0
        },
        "expression": "P -> Q"
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:16.804Z",
        "request_id": "6717889c-64f4-4564-973a-0fb905d0c791"
    },
    "status": "ok",
    "message": "Evaluate",
    "success": true
}