Syllogy API v1 Overview
All endpoints use JSON over HTTPS. Authentication:
- Browser UI – cookie
api_key=syweb-…
(set after OTP login)
- Server / script – header
Authorization: Bearer sk-sy-…
128-bit Base64URL-encoded payload
Auth workflow
POST | /api/v1/auth/otp | Send one-time code to email |
| Body {"email":"user@example.com"} |
POST | /api/v1/auth/login | Exchange OTP ⇢ session / API key |
| Body {"email":"…","otp":"123456","type":"web|api"} |
Chat completion
POST | /api/v1/chat/completions | Request 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/info | Email, credits, timestamps |
POST | /api/v1/account/logout | Invalidate current session cookie |
Billing
GET | /api/v1/invoice/list | List LN-invoice history Query: limit (≤100), offset , status=paid|unpaid |
API Key Management
GET | /api/v1/keys/list | List your API keys |
POST | /api/v1/keys/new | Create new API key |
POST | /api/v1/keys/delete | Delete key Body {"key_hash":"…"} |
Rate-limit: 1 request/second per IP plus global cap. Exceeding returns HTTP 429.