1. Sign in
Google OAuth creates your account. Locally you can use the dev login when ALLOW_DEV_LOGIN=true.
System One, as a hosted API
Sign in with Google, mint an API key, and send state plus
choice / score / noul questions.
The engine returns structured answers your code can branch on — the same shape as TypeSafe Jev, running Laya.
Google OAuth creates your account. Locally you can use the dev login when ALLOW_DEV_LOGIN=true.
Keys are shown once, stored as SHA-256 hashes in Postgres, and sent as Authorization: Bearer.
POST /v1/systemone evaluates every question in one pass. Default model laya-latest routes to the right checkpoint.
curl -s $PUBLIC_BASE_URL/v1/systemone \
-H "Authorization: Bearer $LAYA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"state": "Duplicate charge on invoice #4411. Refund today or we cancel.",
"model": "laya-latest",
"questions": {
"department": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "invoices, payments, refunds",
"technical": "bugs, outages, integrations",
"sales": "pricing, new contracts"
}
},
"is_urgent": {
"type": "noul",
"instructions": "Does this convey urgency?"
}
}
}'