Docs 💬
📖

Syllogy API v1 Overview

All endpoints use JSON over HTTPS. Authentication:

Auth workflow

POST/api/v1/auth/otpSend one-time code to email
Body {"email":"user@example.com"}
POST/api/v1/auth/loginExchange OTP ⇢ session / API key
Body {"email":"…","otp":"123456","type":"web|api"}

Chat completion

POST/api/v1/chat/completionsRequest model output
Add ?stream=true for plain-text stream
Request schema
{
  "model": "model-key",          // optional, see /chat page selector
  "messages": [                  // ≤64 items
    { "role": "system", "content": "…" },
    { "role": "user",   "content": "…" }
  ]
}

Account

GET/api/v1/account/infoEmail, credits, timestamps
POST/api/v1/account/logoutInvalidate current session cookie

Billing

GET/api/v1/invoice/listList LN-invoice history
Query: limit (≤100), offset, status=paid|unpaid

API Key Management

GET/api/v1/keys/listList your API keys
POST/api/v1/keys/newCreate new API key
POST/api/v1/keys/deleteDelete key  Body {"key_hash":"…"}

Rate-limit: 1 request/second per IP plus global cap. Exceeding returns HTTP 429.