DAJAI · Code Black · API reference v1.0.0

Docs

No code? Use /app — paste your key and search from the browser. Base URL https://codeblack-api.dajai.io. Every request except /v1/health and billing needs Authorization: Bearer cbk_live_…. JSON in, JSON out. Errors are {"error": "…"} with a proper status.

Units

EndpointUnits
me0
person1
persons1
lineage5
records3
text2
semantic10
bridge10
gaps2
gedcom25
start1
wall3

REST

Method · pathParamsReturns
GET /v1/health—engine + service health (public)
GET /v1/me—your plan, month-to-date units, overage, by-endpoint usage
GET /v1/personsq, lineage, limitpersons (name search)
GET /v1/persons/:id—person + claims (with source title/url) + relationships + variants + findings
GET /v1/lineage/:idmax_genrecursive ancestor walk, deepest on spine, deepest collateral
GET /v1/records/searchq, tables (csv of ds_* names), limithits per table
GET /v1/text/searchq, limitresearch text chunks
POST /v1/semanticJSON {q, k, pools:["rec","text","name"]}cosine-ranked records / chunks / names
POST /v1/bridge/runJSON {name, birth_year?, place?, holder?, k?}ranked record leads for your ancestor + exact hits
GET /v1/gaps—engine gap report
GET /v1/export/gedcomsubject?, lineage?, raw=1 for text/plainGEDCOM 5.5.1 public export (no living persons); needs your key
POST /v1/billing/checkoutplan, email (form or JSON)Stripe Checkout url (303 redirect for forms)
GET /claim?session_id=—shows your key once after checkout

Example

curl -s https://codeblack-api.dajai.io/v1/bridge/run -H "Authorization: Bearer $CODEBLACK_KEY" -H "Content-Type: application/json" \
  -d '{"name":"Gilbert Handy","birth_year":1825,"place":"St. Landry Parish, Louisiana"}'

MCP

Streamable HTTP at POST /mcp (JSON-RPC 2.0, stateless). Tools: cb_person, cb_persons_search, cb_lineage, cb_records_search, cb_text_search, cb_semantic_search, cb_bridge_run, cb_gaps, cb_export_gedcom, cb_start, cb_wall.

claude mcp add --transport http codeblack https://codeblack-api.dajai.io/mcp --header "Authorization: Bearer $CODEBLACK_KEY"
{"mcpServers":{"codeblack":{"type":"http","url":"https://codeblack-api.dajai.io/mcp","headers":{"Authorization":"Bearer cbk_live_…"}}}}

Limits

Per-plan calls per minute and units per day (see pricing). 429 when exceeded. Keys are revoked automatically when the subscription ends.

Tiers

Every person, claim and edge carries the engine's confidence verbatim and a mapped tier: RECORD (a cited document) · TRIANGULATED (converging records) · TESTIMONY (first-hand family knowledge, primary evidence) · COMPILED (a compiled tree, not a document) · HYPOTHESIS · WITHDRAWN. The GEDCOM maps these to QUAY 3/2/1/0. Nothing is promoted; nothing is invented.