API / 2026-12-01
One contract. Three ways to use it.
The browser console, curl and OpenAPI use the same trial API. Production APIs are not exposed on this host.
https://api.teygu.com
POST /api/trial/keys- Get a key with empty JSON. Success: 201.
POST /api/trial/evaluate- Send scenario, variant and amount with Bearer key. Decision: 200.
DELETE /api/trial/keys- Revoke the Bearer key. Success: 204; subsequent evaluation: 401.
GET /api/trial/scenarios- Published scenario identifiers.
GET /api/trial/openapi.json- The versioned contract published by the server.
Limits and errors
Keys last 30 minutes or 30 decisions. Per IP: 4 new keys per minute and 4 active keys; service: 40 new keys per minute and 512 active keys. At most 2 isolated evaluations at once. Limits return 429, invalid keys 401, invalid input 400/422, temporary failure 503. Rate limits include Retry-After: 60 where applicable.
Fixtures have a 6-second limit and HTTP requests an 8-second limit. Restarts expire keys. Transaction policy uses the supplied amount directly; other controls use valid/violation examples.
Data and access boundaries
Only key hashes stay in RAM. Evaluation inputs are not persisted; temporary fixture data is deleted. IP addresses are used in short-lived quota memory. Infrastructure access logs follow a separate operational policy. Never put keys in URLs.
CORS allows only https://teygu.com and https://www.teygu.com. curl needs no cookie or founder session. This does not grant access to institution production APIs.
