All endpoints return JSON. No authentication required.
Returns the service name, version, operational status, loaded vocabulary topics, and available route list. Useful for checking whether the vocabulary loaded successfully from S3.
{
"name": "Business Spew",
"version": "1.0.0",
"status": "running",
"categories": ["tech"],
"services": ["/spew", "/api"]
}
Lightweight health check for load balancers and uptime monitors. Returns 200 ok when vocabulary is loaded, 503 degraded if S3 vocabulary is unavailable.
{ "status": "ok" }
{ "status": "degraded", "reason": "vocabulary not loaded" }
Generates corporate jargon sentences scoped to the named vocabulary topic. All parameters after :topic are optional and positional.
| Segment | Type | Default | Description |
|---|---|---|---|
| :topic | String | — | Vocabulary category (e.g. tech). Returns 404 with available topics if not found. |
| :sentences | Integer | 3 | Sentences per paragraph. |
| :paragraphs | Integer | 1 | Number of paragraphs to generate. |
| :title | String | generated | Document title. Auto-generated from topic vocabulary if omitted. |
GET /api/tech GET /api/tech/2 GET /api/tech/2/4 GET /api/tech/2/4/My%20Title
{
"title": "Stakeholder Maps Initiative",
"topic": "tech",
"paragraphs": [
"We will endeavor to leverage synergy playbooks. ..."
]
}
Identical to the topic route above but selects a vocabulary topic at random. All segments are optional.
GET /api GET /api/3 GET /api/3/2
Accepts a JSON body. All fields are optional — omit any to use the default.
| Field | Type | Default | Description |
|---|---|---|---|
| sentences | Integer | 3 | Sentences per paragraph. |
| paragraphs | Integer | 1 | Number of paragraphs. |
| category | String | random | Vocabulary topic. Falls back to random if omitted or unrecognised. |
POST /spew
Content-Type: application/json
{ "sentences": 2, "paragraphs": 3, "category": "tech" }
{
"paragraphs": [
"We must seize the moment and optimize ROIs. ...",
"Take the customer's temperature and then you can ...",
"Success is not a crap-shoot if we leverage ..."
]
}
Forces a re-fetch of all vocabulary JSON files from S3 without restarting the process. Returns the refreshed category list on success. ⚠️ Authentication not yet enforced — do not expose publicly.
{ "status": "ok", "categories": ["tech"] }
{ "status": "error", "reason": "S3 Error: ..." }