API reference
Wiki
One Wiki: pages with sourced claims, revision history, the most read articles and proposed edits.
- Operations
- 11
- Base path
https://os.one.ml/api/v1/wiki- Scopes
wiki:readwiki:write- API keys
- —
- SDK
genesis.call('wiki_get', …)· helpers undergenesis.wiki- CLI
genesis wiki- MCP
- 11 tools
Operations
| Operation | Endpoint | API key |
|---|---|---|
| Get an entity's page, its claims and their sources | GET/entities/{id} | — |
| List an entity's claims with every source and its stance | GET/entities/{id}/claims | — |
| List an entity's revisions, newest first | GET/entities/{id}/history | — |
| List your proposals, newest first | GET/proposals | — |
| Propose an edit, with its sources | POST/proposals | — |
| Get a proposal and its state | GET/proposals/{id} | — |
| Delete your proposal | DELETE/proposals/{id} | — |
| Withdraw your proposal before it's decided | POST/proposals/{id}/withdraw | — |
| Resolve mentions in text to entity ids | POST/resolve | — |
| Search entities by name and text | GET/search | — |
| The most read articles of the latest day | GET/top | — |
Entities
Get an entity's page, its claims and their sources
GET/v1/wiki/entities/{id}
Scope wiki:read; meter wiki.reads. The page in lang (English when the page has no text in that language): the label, description and aliases, the article as sentences that each name their claims and sources (article.sources maps a source id to the source), the claims with their primary source, and the licence block. include limits the response to the article or the claims.
Parameters
idpath · stringrequireden_q<n>(public item Q<n>) oren_<ulid>langquery · stringLanguage code (default
en)includequery · stringComma list of
articleandclaims(default both)
Responses
- 200The entity page
Response fields
idstringrequiredpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$redirected_fromstringpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$type"person" | "place" | "org" | "event" | "work" | "concept" | "other"requiredwikidata_qidstring | nullrequiredlabelstring | nullrequireddescriptionstring | nullrequiredaliasesstring[]requiredlangstringrequiredpattern
^[a-z]{2,3}(-[a-z0-9]{2,8})?$updated_atstring (date-time)requiredarticleobject | nullThe page (with include=article, the default); null when there is no page in this language
claimsobject[]The claims with their primary source (with include=claims, the default)
claims[].[].idstringrequiredpattern
^cl_[0-7][0-9a-hjkmnp-tv-z]{25}$claims[].[].propertyobjectrequiredclaims[].[].property.idstringrequiredpattern
^(P[1-9][0-9]{0,8}|w_[a-z][a-z0-9_]{0,63})$claims[].[].property.labelstringrequiredclaims[].[].valueobjectrequiredA claim value, by type:
entity{id, label},string{text},quantity{amount (decimal string), unit?},time{time ([+-]YYYY[-MM[-DD]]), precision (year, month or day)},geo{lat, lon},monolingual{text, lang},url{url (https)}.claims[].[].value.type"entity" | "string" | "quantity" | "time" | "geo" | "monolingual" | "url"requiredclaims[].[].qualifiersobjectrequiredclaims[].[].valid_fromstring | null (date)requiredclaims[].[].valid_tostring | null (date)requiredclaims[].[].as_ofstring (date-time)requiredWhen the claim was last confirmed
claims[].[].rank"preferred" | "normal" | "deprecated"requiredclaims[].[].status"settled" | "disputed" | "proposed" | "retired"requireddisputed: sources disagree and both sides are shown
claims[].[].confidencenumberrequiredmin 0 · max 1
claims[].[].independent_sourcesintegerrequiredSupporting sources from independent owners
claims[].[].contradicted_by_countintegerrequiredSources that contradict the claim
claims[].[].volatilebooleanrequiredThe property changes often (a coach, a population)
claims[].[].stalebooleanrequiredA volatile claim older than its property's re-check interval
claims[].[].primary_sourceobject | nullrequiredThe strongest supporting source by
kind(in enum order; newest first within a kind); null when nothing supports the claimclaims[].[].sourcesobject[]Every source and its stance (wiki_claims with include_sources, the default)
claims[].[].sources[].[].idstringrequiredclaims[].[].sources[].[].urlstring (uri)requiredclaims[].[].sources[].[].titlestring | nullrequiredclaims[].[].sources[].[].publisherstring | nullrequiredclaims[].[].sources[].[].kind"primary" | "reference" | "news" | "secondary" | "wikidata" | "wikipedia"requiredclaims[].[].sources[].[].published_atstring | null (date-time)requiredclaims[].[].sources[].[].stance"supports" | "contradicts" | "mentions"requiredclaims[].[].sources[].[].locatorstring | nullrequiredWhere in the source the claim is found
licenseobjectrequiredlicense.textobjectrequiredlicense.text.name"CC BY-SA 4.0"requiredlicense.text.urlstring (uri)requiredlicense.wikipedia_attributionobjectThe CC BY-SA attribution for a page adapted from Wikipedia (the article, its URL and revision), with a note that authors are listed in the page history
license.data_noticestringStructured data from Wikidata (CC0)
license.wikidata_urlstring (uri)history_urlstringrequired
- 401Missing or invalid identity, a replayed request, or
wrong_environment(a request for the environment this deployment does not serve) - 403The credential lacks the scope, a delegated agent tried to propose, or a
createwithout first-partywiki:write - 404No such entity, claim or proposal
- 405The path exists but not for this method
- 413The request body is over 64 KB
- 422The request is invalid
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/wiki/entities/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('wiki_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wiki_get",
"arguments": {
"id": "<id>"
}
}
}Claims
List an entity's claims with every source and its stance
GET/v1/wiki/entities/{id}/claims
Scope wiki:read; meter wiki.claims. Every claim, optionally for one property, with each source and whether it supports, contradicts or only mentions the claim. A disputed claim shows both sides; nothing is picked. Retired claims are left out unless include_retired=true.
Parameters
idpath · stringrequireden_q<n>(public item Q<n>) oren_<ulid>propertyquery · stringA public property id (
P31) or One Wiki's own (w_<slug>)langquery · stringLanguage code (default
en)include_sourcesquery · booleaninclude_retiredquery · boolean
Responses
- 200The claims
Response fields
idstringrequiredpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$redirected_fromstringpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$claimsobject[]requiredclaims[].[].idstringrequiredpattern
^cl_[0-7][0-9a-hjkmnp-tv-z]{25}$claims[].[].propertyobjectrequiredclaims[].[].property.idstringrequiredpattern
^(P[1-9][0-9]{0,8}|w_[a-z][a-z0-9_]{0,63})$claims[].[].property.labelstringrequiredclaims[].[].valueobjectrequiredA claim value, by type:
entity{id, label},string{text},quantity{amount (decimal string), unit?},time{time ([+-]YYYY[-MM[-DD]]), precision (year, month or day)},geo{lat, lon},monolingual{text, lang},url{url (https)}.claims[].[].value.type"entity" | "string" | "quantity" | "time" | "geo" | "monolingual" | "url"requiredclaims[].[].qualifiersobjectrequiredclaims[].[].valid_fromstring | null (date)requiredclaims[].[].valid_tostring | null (date)requiredclaims[].[].as_ofstring (date-time)requiredWhen the claim was last confirmed
claims[].[].rank"preferred" | "normal" | "deprecated"requiredclaims[].[].status"settled" | "disputed" | "proposed" | "retired"requireddisputed: sources disagree and both sides are shown
claims[].[].confidencenumberrequiredmin 0 · max 1
claims[].[].independent_sourcesintegerrequiredSupporting sources from independent owners
claims[].[].contradicted_by_countintegerrequiredSources that contradict the claim
claims[].[].volatilebooleanrequiredThe property changes often (a coach, a population)
claims[].[].stalebooleanrequiredA volatile claim older than its property's re-check interval
claims[].[].primary_sourceobject | nullrequiredThe strongest supporting source by
kind(in enum order; newest first within a kind); null when nothing supports the claimclaims[].[].sourcesobject[]Every source and its stance (wiki_claims with include_sources, the default)
claims[].[].sources[].[].idstringrequiredclaims[].[].sources[].[].urlstring (uri)requiredclaims[].[].sources[].[].titlestring | nullrequiredclaims[].[].sources[].[].publisherstring | nullrequiredclaims[].[].sources[].[].kind"primary" | "reference" | "news" | "secondary" | "wikidata" | "wikipedia"requiredclaims[].[].sources[].[].published_atstring | null (date-time)requiredclaims[].[].sources[].[].stance"supports" | "contradicts" | "mentions"requiredclaims[].[].sources[].[].locatorstring | nullrequiredWhere in the source the claim is found
- 401Missing or invalid identity, a replayed request, or
wrong_environment(a request for the environment this deployment does not serve) - 403The credential lacks the scope, a delegated agent tried to propose, or a
createwithout first-partywiki:write - 404No such entity, claim or proposal
- 405The path exists but not for this method
- 413The request body is over 64 KB
- 422The request is invalid
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/wiki/entities/$ID/claims" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('wiki_claims', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wiki_claims",
"arguments": {
"id": "<id>"
}
}
}History
List an entity's revisions, newest first
GET/v1/wiki/entities/{id}/history
Scope wiki:read; meter wiki.claims. Every revision of the entity, its claims and its pages: who made it, why, the diff, the sources and the check it passed. A merged entity includes the history of its old ids. Pass next_cursor back as cursor for the next page.
Parameters
idpath · stringrequireden_q<n>(public item Q<n>) oren_<ulid>cursorquery · stringlimitquery · integer
Responses
- 200A page of revisions
Response fields
idstringrequiredpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$redirected_fromstringpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$revisionsobject[]requiredrevisions[].[].idstringrequiredpattern
^rv_[0-7][0-9a-hjkmnp-tv-z]{25}$revisions[].[].entity_idstringrequiredpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$revisions[].[].target"entity" | "claim" | "article" | "redirect"requiredrevisions[].[].target_idstringrequiredrevisions[].[].parentstring | nullrequiredrevisions[].[].actorstringrequiredone, system:seed, agent:<id> or user:<id>
revisions[].[].reasonstringrequiredrevisions[].[].diffanyrequiredrevisions[].[].source_idsstring[]requiredrevisions[].[].check"pass" | "skipped"requiredrevisions[].[].model_idsstring[]requiredrevisions[].[].created_atstring (date-time)requirednext_cursorstring | nullrequired
- 401Missing or invalid identity, a replayed request, or
wrong_environment(a request for the environment this deployment does not serve) - 403The credential lacks the scope, a delegated agent tried to propose, or a
createwithout first-partywiki:write - 404No such entity, claim or proposal
- 405The path exists but not for this method
- 413The request body is over 64 KB
- 422The request is invalid
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/wiki/entities/$ID/history" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('wiki_history', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wiki_history",
"arguments": {
"id": "<id>"
}
}
}Proposals
List your proposals, newest first
GET/v1/wiki/proposals
Scope wiki:read; free. Your own proposals in this environment, newest first (the org's with wiki:write, unless delegated); state keeps one state. Pass next_cursor back as cursor for the next page.
Parameters
statequery · "queued" | "checking" | "held" | "accepted" | "refused" | "withdrawn"cursorquery · stringlimitquery · integer
Responses
- 200A page of your proposals
Response fields
A JSON object.
- 401Missing or invalid identity, a replayed request, or
wrong_environment(a request for the environment this deployment does not serve) - 403The credential lacks the scope, a delegated agent tried to propose, or a
createwithout first-partywiki:write - 405The path exists but not for this method
- 422The request is invalid
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/wiki/proposals" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('wiki_list_proposals'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wiki_list_proposals",
"arguments": {}
}
}Propose an edit, with its sources
POST/v1/wiki/proposals
Scope wiki:write; free. Nothing on the page changes here: the proposal is queued for our editors, who accept it (state: accepted, revision) or refuse it. If accepted, the change, your reason word for word, and each source's URL, title and quote become public and stay public, after a delete and after account erase, under an actor name used for that one proposal only. A change without a source is refused at once (422). Entity changes: add_claim, set_label, set_description, add_alias; claim changes: update_claim, retire_claim, dispute_claim. A value must match its property's type. An Idempotency-Key makes a retry return the same proposal (200). A delegated agent may read but not propose (403).
Parameters
Idempotency-Keyheader · string
Request body application/json
targetobjectrequiredtarget.type"entity" | "claim"requiredtarget.idstringrequiredAn entity id (en_…) or a claim id (cl_…)
changeobjectrequiredEntity ops:
add_claim{property_id, value, valid_from?, valid_to?},set_label{lang?, text},set_description{lang?, text},add_alias{lang?, text}. Claim ops:update_claim{value?, valid_to?} (a value or valid_to),retire_claim,dispute_claim. Dates are YYYY-MM-DD; text is 1..400 characters.change.op"add_claim" | "set_label" | "set_description" | "add_alias" | "update_claim" | "retire_claim" | "dispute_claim"requiredchange.property_idstringpattern
^(P[1-9][0-9]{0,8}|w_[a-z][a-z0-9_]{0,63})$change.valueobjectA claim value, by type:
entity{id, label},string{text},quantity{amount (decimal string), unit?},time{time ([+-]YYYY[-MM[-DD]]), precision (year, month or day)},geo{lat, lon},monolingual{text, lang},url{url (https)}.change.value.type"entity" | "string" | "quantity" | "time" | "geo" | "monolingual" | "url"requiredchange.valid_fromstring (date)change.valid_tostring (date)change.langstringpattern
^[a-z]{2,3}(-[a-z0-9]{2,8})?$change.textstringmin length 1 · max length 400
sourcesobject[]requiredsources[].[].urlstring (uri)requiredpattern
^https://sources[].[].titlestringmax length 400
sources[].[].quotestringmax length 300
reasonstringrequiredmin length 1 · max length 2000
Responses
- 200The proposal this Idempotency-Key already made
Response fields
idstringrequiredpattern
^pp_[0-7][0-9a-hjkmnp-tv-z]{25}$entity_idstringrequiredpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$targetobjectrequiredtarget.type"entity" | "claim"requiredtarget.idstringrequiredchangeobjectrequiredsourcesobject[]requiredsources[].[].urlstringsources[].[].titlestringsources[].[].quotestringreasonstringrequiredstate"queued" | "checking" | "accepted" | "held" | "refused"requiredcheckanyrequiredThe checker's result once it has run; null while queued
revisionstring | nullrequiredThe revision the proposal landed as
created_atstring (date-time)requiredupdated_atstring (date-time)required
- 202The proposal, queued
Response fields
idstringrequiredpattern
^pp_[0-7][0-9a-hjkmnp-tv-z]{25}$entity_idstringrequiredpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$targetobjectrequiredtarget.type"entity" | "claim"requiredtarget.idstringrequiredchangeobjectrequiredsourcesobject[]requiredsources[].[].urlstringsources[].[].titlestringsources[].[].quotestringreasonstringrequiredstate"queued" | "checking" | "accepted" | "held" | "refused"requiredcheckanyrequiredThe checker's result once it has run; null while queued
revisionstring | nullrequiredThe revision the proposal landed as
created_atstring (date-time)requiredupdated_atstring (date-time)required
- 401Missing or invalid identity, a replayed request, or
wrong_environment(a request for the environment this deployment does not serve) - 403The credential lacks the scope, a delegated agent tried to propose, or a
createwithout first-partywiki:write - 404No such entity, claim or proposal
- 405The path exists but not for this method
- 413The request body is over 64 KB
- 422The request is invalid
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/wiki/proposals" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"target": {
"type": "entity",
"id": "string"
},
"change": {
"op": "add_claim"
},
"sources": [
{
"url": "https://example.com"
}
],
"reason": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('wiki_propose_edit', {
body: {
target: {
type: 'entity',
id: 'string',
},
change: {
op: 'add_claim',
},
sources: [
{
url: 'https://example.com',
},
],
reason: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wiki_propose_edit",
"arguments": {
"body": {
"target": {
"type": "entity",
"id": "string"
},
"change": {
"op": "add_claim"
},
"sources": [
{
"url": "https://example.com"
}
],
"reason": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get a proposal and its state
GET/v1/wiki/proposals/{id}
Scope wiki:read; meter wiki.reads. Your own proposals in this environment (the org's with wiki:write, unless delegated); any other id is 404.
Parameters
idpath · stringrequired
Responses
- 200The proposal
Response fields
idstringrequiredpattern
^pp_[0-7][0-9a-hjkmnp-tv-z]{25}$entity_idstringrequiredpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$targetobjectrequiredtarget.type"entity" | "claim"requiredtarget.idstringrequiredchangeobjectrequiredsourcesobject[]requiredsources[].[].urlstringsources[].[].titlestringsources[].[].quotestringreasonstringrequiredstate"queued" | "checking" | "accepted" | "held" | "refused"requiredcheckanyrequiredThe checker's result once it has run; null while queued
revisionstring | nullrequiredThe revision the proposal landed as
created_atstring (date-time)requiredupdated_atstring (date-time)required
- 401Missing or invalid identity, a replayed request, or
wrong_environment(a request for the environment this deployment does not serve) - 403The credential lacks the scope, a delegated agent tried to propose, or a
createwithout first-partywiki:write - 404No such entity, claim or proposal
- 405The path exists but not for this method
- 413The request body is over 64 KB
- 422The request is invalid
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/wiki/proposals/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('wiki_get_proposal', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wiki_get_proposal",
"arguments": {
"id": "<id>"
}
}
}Delete your proposal
DELETE/v1/wiki/proposals/{id}
Scope wiki:write; free. Erases your copy of the proposal, in any state. A person's proposal is theirs alone: only they can withdraw or delete it (one filed by the org's key, any wiki:write holder in the org). If accepted, the change, your reason word for word, and each source's URL, title and quote become public and stay public, after a delete and after account erase, under an actor name used for that one proposal only. A delegated agent can't (403).
Parameters
idpath · stringrequired
Responses
- 200Deleted
Response fields
idstringrequireddeletedbooleanrequired
- 401Missing or invalid identity, a replayed request, or
wrong_environment(a request for the environment this deployment does not serve) - 403The credential lacks the scope, a delegated agent tried to propose, or a
createwithout first-partywiki:write - 404No such entity, claim or proposal
- 405The path exists but not for this method
- 413The request body is over 64 KB
- 422The request is invalid
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/wiki/proposals/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('wiki_delete_proposal', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wiki_delete_proposal",
"arguments": {
"id": "<id>"
}
}
}Withdraw
Withdraw your proposal before it's decided
POST/v1/wiki/proposals/{id}/withdraw
Scope wiki:write; free. 409 once it has been decided. A delegated agent can't (403).
Parameters
idpath · stringrequired
Responses
- 200The proposal, withdrawn
Response fields
idstringrequiredpattern
^pp_[0-7][0-9a-hjkmnp-tv-z]{25}$entity_idstringrequiredpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$targetobjectrequiredtarget.type"entity" | "claim"requiredtarget.idstringrequiredchangeobjectrequiredsourcesobject[]requiredsources[].[].urlstringsources[].[].titlestringsources[].[].quotestringreasonstringrequiredstate"queued" | "checking" | "accepted" | "held" | "refused"requiredcheckanyrequiredThe checker's result once it has run; null while queued
revisionstring | nullrequiredThe revision the proposal landed as
created_atstring (date-time)requiredupdated_atstring (date-time)required
- 401Missing or invalid identity, a replayed request, or
wrong_environment(a request for the environment this deployment does not serve) - 403The credential lacks the scope, a delegated agent tried to propose, or a
createwithout first-partywiki:write - 404No such entity, claim or proposal
- 405The path exists but not for this method
- 409Already decided or withdrawn
- 413The request body is over 64 KB
- 422The request is invalid
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/wiki/proposals/$ID/withdraw" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('wiki_withdraw_proposal', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wiki_withdraw_proposal",
"arguments": {
"id": "<id>"
}
}
}Resolve
Resolve mentions in text to entity ids
POST/v1/wiki/resolve
Scope wiki:read; meter wiki.reads per mention. Each mention gets the entity it names, a confidence and the other candidates: an exact name wins, several exact names return the most viewed with lower confidence, and a close name returns a lower confidence still. A mention nothing matches has entity_id: null. With create: true, a first-party caller with wiki:write mints a new entity for a mention nothing matches (the mention then needs a type); anyone else is a 403.
Request body application/json
mentionsobject[]requiredmentions[].[].textstringrequiredmin length 1 · max length 200
mentions[].[].type"person" | "place" | "org" | "event" | "work" | "concept" | "other"mentions[].[].contextstringThe surrounding text, kept with a minted entity max length 400
langstringpattern
^[a-z]{2,3}(-[a-z0-9]{2,8})?$createbooleanMint an entity for a mention nothing matches (first-party callers with wiki:write) default
false
Responses
- 200One result per mention, in order
Response fields
langstringrequiredpattern
^[a-z]{2,3}(-[a-z0-9]{2,8})?$resultsobject[]requiredresults[].[].textstringrequiredresults[].[].entity_idstring | nullrequiredresults[].[].confidencenumberrequiredmin 0 · max 1
results[].[].createdbooleanrequiredThe entity was minted for this mention
results[].[].candidatesstring[]requiredOther entities the mention may name
- 401Missing or invalid identity, a replayed request, or
wrong_environment(a request for the environment this deployment does not serve) - 403The credential lacks the scope, a delegated agent tried to propose, or a
createwithout first-partywiki:write - 405The path exists but not for this method
- 413The request body is over 64 KB
- 422The request is invalid
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/wiki/resolve" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"mentions": [
{
"text": "string"
}
]
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('wiki_resolve', {
body: {
mentions: [
{
text: 'string',
},
],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wiki_resolve",
"arguments": {
"body": {
"mentions": [
{
"text": "string"
}
]
}
}
}
}Search
Search entities by name and text
GET/v1/wiki/search
Scope wiki:read; meter wiki.reads. Full-text search over labels, aliases, descriptions and page leads, fused with a typo-tolerant name match; more-viewed entities break ties.
Parameters
qquery · stringrequiredtypequery · "person" | "place" | "org" | "event" | "work" | "concept" | "other"langquery · stringLanguage code (default
en)limitquery · integer
Responses
- 200Matching entities, best first
Response fields
querystringrequiredresultsobject[]requiredresults[].[].idstringrequiredpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$results[].[].type"person" | "place" | "org" | "event" | "work" | "concept" | "other"requiredresults[].[].labelstring | nullrequiredresults[].[].descriptionstring | nullrequiredresults[].[].scorenumberrequired
- 401Missing or invalid identity, a replayed request, or
wrong_environment(a request for the environment this deployment does not serve) - 403The credential lacks the scope, a delegated agent tried to propose, or a
createwithout first-partywiki:write - 405The path exists but not for this method
- 413The request body is over 64 KB
- 422The request is invalid
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/wiki/search?q=$Q" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('wiki_search', {
q: '<q>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wiki_search",
"arguments": {
"q": "<q>"
}
}
}Top
The most read articles of the latest day
GET/v1/wiki/top
Scope wiki:read; meter wiki.reads. The most read English Wikipedia articles of the latest UTC day One Wiki holds, most read first, from Wikimedia's public pageview counts (source). day is that day, or null with no results before the first day is loaded. Each result is an entity with its label, description, the day's views and its lead image when One Wiki holds one. Pages whose Wikidata classes mark them as adult or shock content are left out of this list.
Parameters
limitquery · integer
Responses
- 200The day's most read articles, most read first
Response fields
daystring | null (date)requiredsource"wikimedia-pageviews"requiredresultsobject[]requiredresults[].[].rankintegerrequiredmin 1
results[].[].idstringrequiredpattern
^en_(q[1-9][0-9]{0,11}|[0-7][0-9a-hjkmnp-tv-z]{25})$results[].[].labelstringrequiredresults[].[].descriptionstring | nullrequiredresults[].[].viewsintegerrequiredmin 0
results[].[].imageobject | nullrequiredresults[].[].image.path_smallstringrequiredresults[].[].image.url_smallstringrequiredresults[].[].image.widthinteger | nullrequiredresults[].[].image.heightinteger | nullrequired
- 401Missing or invalid identity, a replayed request, or
wrong_environment(a request for the environment this deployment does not serve) - 403The credential lacks the scope, a delegated agent tried to propose, or a
createwithout first-partywiki:write - 405The path exists but not for this method
- 413The request body is over 64 KB
- 422The request is invalid
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/wiki/top" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('wiki_top'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wiki_top",
"arguments": {}
}
}L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support