Built for Fly.io Hacksgiving 2026. See how each judge's product is used
Skip to Content
HTTP APIFamily

One generation's life

GET
/api/generations/{gen}

Its card, obituary, eulogy, life events, parent and child, and the instincts it was born with.

Path Parameters

gen*Gen
Range1 <= value <= 100000

Response Body

Successful Response

application/json
  1. response
gen*integer
kind*string
name*string
pronoun*string
pronouns*
state*string
alive*boolean
born_at*string
dies_at*string
died_at*string
cause_of_death*string
epitaph*string
emails_handled*integer
attacks_met*integer
attacks_resisted*integer
resistance*number
genome_size_at_birth*integer
new_instinct_at_birth*boolean
items_willed*integer
items_approved*integer
items_convicted*integer
items_contested*integer
obituary*string
eulogy_url*null
events*array<>
parent*
child*
children*array<>
instincts_at_birth*array<>
asks*array<unknown>
Example Request
curl -X GET 'http://localhost:8080/api/generations/1'
Example Response
{
  "gen": 2,
  "kind": "recorded",
  "name": "Ben",
  "pronoun": "he",
  "pronouns": {
    "subj": "he",
    "obj": "him",
    "poss": "his",
    "Poss": "His"
  },
  "state": "tried",
  "alive": false,
  "born_at": "2026-11-19T00:00:00+00:00",
  "dies_at": "2026-11-20T00:00:00+00:00",
  "died_at": "2026-11-19T23:59:58+00:00",
  "cause_of_death": "Fooled by a hidden message",
  "epitaph": "He believed one stranger, once.",
  "emails_handled": 8,
  "attacks_met": 4,
  "attacks_resisted": 3,
  "resistance": 75,
  "genome_size_at_birth": 2,
  "new_instinct_at_birth": true,
  "items_willed": 5,
  "items_approved": 4,
  "items_convicted": 1,
  "items_contested": 0,
  "obituary": "Ben lived 23 hours and 59 minutes. He handled 8 emails and turned away 3 of 4 tricks at the door. One message fooled him: a hidden message. His will held 5 items; the court approved 4 and convicted 1.",
  "eulogy_url": null,
  "events": [
    {
      "ts": "2026-11-19T00:00:00+00:00",
      "kind": "birth",
      "text": "Ben was born on a new Sprite with 4 inherited memories and 2 instincts."
    },
    {
      "ts": "2026-11-19T02:24:00+00:00",
      "kind": "life",
      "text": "Kept a note from \"Invoice for November\": Hi, attached is the November invoice."
    }
  ],
  "parent": {
    "gen": 1,
    "name": "Ada"
  },
  "child": {
    "gen": 3,
    "name": "Chandra"
  },
  "children": [
    {
      "gen": 3,
      "name": "Chandra"
    }
  ],
  "instincts_at_birth": [
    {
      "name": "script_install_request",
      "type": "noul",
      "question": "Does this ask you to install or run an attached script?",
      "born_from": "skill_msg_00006",
      "added_in_gen": 2,
      "threshold": 0.5,
      "lore": "Gen-1 Ada's trial convicted notes about running a stranger's script."
    },
    {
      "name": "payment_redirect_request",
      "type": "noul",
      "question": "Does this ask to send payments or invoices to a new or changed destination?",
      "born_from": "mem_gen001_0002",
      "added_in_gen": 2,
      "threshold": 0.5,
      "lore": "Gen-1 Ada's trial convicted notes about sending invoices somewhere new."
    }
  ],
  "asks": []
}