API reference
Traces
Research and evidence: research runs, web search with evidence, and usage events.
- Operations
- 67
- Base path
https://os.one.ml/api/v1/traces- Scopes
traces:deletetraces:readtraces:write- API keys
- 3 failed with an API key · 2 need a signed-in session · 3 refused to API keys · 48 tested with an API key
- SDK
genesis.call('traces_listApiKeys', …)· helpers undergenesis.traces- MCP
- 45 tools; the other 22 through
genesis_call
Operations
Api keys
List Traces API keys
GET/v1/traces/api-keys
Needs traces:read at the gateway.
Parameters
limitquery · integerPage size (backend default 20)
offsetquery · integer
Responses
- 200Keys
Response fields
itemsobject[]requireditems[].[].platform_idstringitems[].[].org_idstringitems[].[].workspace_idstringitems[].[].project_idstringitems[].[].environment_idstringitems[].[].idstringrequireditems[].[].namestringrequireditems[].[].key_prefixstringitems[].[].principal_idstringitems[].[].principal_kind"human" | "agent" | "service"items[].[].entitlements"traces:read" | "traces:write" | "traces:delete" | "traces:admin" | "traces:export"[]items[].[].last_used_atstring (date-time)items[].[].expires_atstring (date-time)items[].[].revoked_atstring (date-time)items[].[].created_atstring (date-time)items[].[].updated_atstring (date-time)items[].[].secretstringThe key secret. Returned once, on create and rotate only; store it now.
items[].[].statusstringSet to "revoked" on revoke
totalintegerrequired
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/api-keys" \
-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('traces_listApiKeys'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_listApiKeys",
"arguments": {}
}
}
}Create a Traces API key
POST/v1/traces/api-keys
Needs traces:delete at the gateway (traces:admin is accepted as a deprecated alias). These are native Traces keys; they are not Genesis API keys.
Request body application/json
namestringrequiredmax length 160
principal_idstringDefaults to the caller
principal_kind"human" | "agent" | "service"entitlements"traces:read" | "traces:write" | "traces:delete" | "traces:admin" | "traces:export"[]expires_atstring (date-time)ttl_secondsintegerTakes precedence over expires_at min 1
Responses
- 201Key created;
secretis shown onceResponse fields
platform_idstringorg_idstringworkspace_idstringproject_idstringenvironment_idstringidstringrequirednamestringrequiredkey_prefixstringprincipal_idstringprincipal_kind"human" | "agent" | "service"entitlements"traces:read" | "traces:write" | "traces:delete" | "traces:admin" | "traces:export"[]last_used_atstring (date-time)expires_atstring (date-time)revoked_atstring (date-time)created_atstring (date-time)updated_atstring (date-time)secretstringThe key secret. Returned once, on create and rotate only; store it now.
statusstringSet to "revoked" on revoke
- 400Invalid body
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/api-keys" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_createApiKey', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_createApiKey",
"arguments": {
"body": {
"name": "string"
}
}
}
}
}Read one Traces API key
GET/v1/traces/api-keys/{id}
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Key
Response fields
platform_idstringorg_idstringworkspace_idstringproject_idstringenvironment_idstringidstringrequirednamestringrequiredkey_prefixstringprincipal_idstringprincipal_kind"human" | "agent" | "service"entitlements"traces:read" | "traces:write" | "traces:delete" | "traces:admin" | "traces:export"[]last_used_atstring (date-time)expires_atstring (date-time)revoked_atstring (date-time)created_atstring (date-time)updated_atstring (date-time)secretstringThe key secret. Returned once, on create and rotate only; store it now.
statusstringSet to "revoked" on revoke
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/api-keys/$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('traces_getApiKey', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_getApiKey",
"arguments": {
"id": "<id>"
}
}
}
}Revoke a Traces API key
DELETE/v1/traces/api-keys/{id}
Needs traces:delete at the gateway (traces:admin is accepted as a deprecated alias).
Parameters
idpath · stringrequired
Responses
- 200Revoked key (status: revoked)
Response fields
platform_idstringorg_idstringworkspace_idstringproject_idstringenvironment_idstringidstringrequirednamestringrequiredkey_prefixstringprincipal_idstringprincipal_kind"human" | "agent" | "service"entitlements"traces:read" | "traces:write" | "traces:delete" | "traces:admin" | "traces:export"[]last_used_atstring (date-time)expires_atstring (date-time)revoked_atstring (date-time)created_atstring (date-time)updated_atstring (date-time)secretstringThe key secret. Returned once, on create and rotate only; store it now.
statusstringSet to "revoked" on revoke
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/traces/api-keys/$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('traces_revokeApiKey', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_revokeApiKey",
"arguments": {
"id": "<id>"
}
}
}
}Rotate
Rotate a Traces API key
POST/v1/traces/api-keys/{id}/rotate
Needs traces:delete at the gateway (traces:admin is accepted as a deprecated alias).
Parameters
idpath · stringrequired
Responses
- 200Rotated key; the new
secretis shown onceResponse fields
platform_idstringorg_idstringworkspace_idstringproject_idstringenvironment_idstringidstringrequirednamestringrequiredkey_prefixstringprincipal_idstringprincipal_kind"human" | "agent" | "service"entitlements"traces:read" | "traces:write" | "traces:delete" | "traces:admin" | "traces:export"[]last_used_atstring (date-time)expires_atstring (date-time)revoked_atstring (date-time)created_atstring (date-time)updated_atstring (date-time)secretstringThe key secret. Returned once, on create and rotate only; store it now.
statusstringSet to "revoked" on revoke
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/api-keys/$ID/rotate" \
-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('traces_rotateApiKey', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_rotateApiKey",
"arguments": {
"id": "<id>"
}
}
}
}Artifacts
Download a stored artifact (for example a screenshot)
GET/v1/traces/artifacts/{id}
Needs traces:read at the gateway. The response is binary. The generic SDK client reads non-JSON bodies as text; fetch it with an HTTP client to keep the bytes intact.
Parameters
idpath · stringrequired
Responses
- 200The artifact bytes, with its stored Content-Type, an ETag (sha256) and a filename in Content-Disposition
Response fields
Type:
string (binary) - 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/artifacts/$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('traces_getArtifact', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_getArtifact",
"arguments": {
"id": "<id>"
}
}
}
}Batch
Start a batch scrape job
POST/v1/traces/batch/scrape
Needs traces:write at the gateway. Metered per URL.
Parameters
Idempotency-Keyheader · stringrequiredStable key; replays return the original result and are metered once
Request body application/json
urlstringurlsstring[]At least one URL across
urlandurlsis requiredformatsstring[]formatstringextract_depthstringtimeoutnumberwebhook_urlstringlimitinteger
Responses
- 200Existing job returned for a replayed Idempotency-Key
Response fields
A JSON object.
- 201Job
Response fields
idstringrequiredstatus"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"requiredtypestringcreated_atstring (date-time)updated_atstring (date-time)runobjectlinksobjecttotalintegerurlsstring[]
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 409Idempotency-Key was used for a different batch request
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/batch/scrape" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{}'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('traces_createBatchScrape', {
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_createBatchScrape",
"arguments": {
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Read a batch scrape job
GET/v1/traces/batch/scrape/{id}
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Job
Response fields
idstringrequiredstatus"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"requiredtypestringcreated_atstring (date-time)updated_atstring (date-time)runobjectlinksobjecttotalintegerurlsstring[]
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/batch/scrape/$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('traces_getBatchScrape', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getBatchScrape",
"arguments": {
"id": "<id>"
}
}
}Cancel a batch scrape job
POST/v1/traces/batch/scrape/{id}/cancel
Needs traces:write at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Job
Response fields
idstringrequiredstatus"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"requiredtypestringcreated_atstring (date-time)updated_atstring (date-time)runobjectlinksobjecttotalintegerurlsstring[]
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/batch/scrape/$ID/cancel" \
-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('traces_cancelBatchScrape', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_cancelBatchScrape",
"arguments": {
"id": "<id>"
}
}
}Coding
Fetch documentation chunks for a library
POST/v1/traces/coding/docs
Needs traces:read at the gateway.
Request body application/json
library_idstringquerystringtopicstringversionstringtokensintegerMaximum tokens to return
include_examplesboolean
Responses
- 200Documentation chunks (chunks[], total_chunks, returned_tokens)
Response fields
A JSON object.
- 400library_id or query is required
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/coding/docs" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_getLibraryDocs', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getLibraryDocs",
"arguments": {
"body": {}
}
}
}Resolve a library name to its identity
POST/v1/traces/coding/resolve
Needs traces:read at the gateway.
Request body application/json
querystringlibrary_namestringplatformstringnpm, pypi, cargo, go, maven or all
versionstring
Responses
- 200Matches (matches[], total)
Response fields
A JSON object.
- 400library_name or query is required
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/coding/resolve" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_resolveLibrary', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_resolveLibrary",
"arguments": {
"body": {}
}
}
}Crawl
Start a site crawl job
POST/v1/traces/crawl
Needs traces:write at the gateway. Metered as crawl pages requested (up to limit).
Parameters
Idempotency-Keyheader · stringrequiredStable key; replays return the original result and are metered once
Request body application/json
urlstringrequiredPublic http(s) URL
max_depthintegermin 1 · max 5
max_breadthintegermin 0 · max 100
limitintegermin 1 · max 200
instructionsstringselect_pathsstring[]extract_depthstringformatstringtimeoutnumberwebhook_urlstring
Responses
- 200Existing job returned for a replayed Idempotency-Key
Response fields
A JSON object.
- 201Job
Response fields
idstringrequiredstatus"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"requiredtypestringcreated_atstring (date-time)updated_atstring (date-time)runobjectlinksobjecturlstring
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 409Idempotency-Key was used for a different crawl request
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/crawl" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "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('traces_createCrawl', {
body: {
url: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_createCrawl",
"arguments": {
"body": {
"url": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Read a crawl job
GET/v1/traces/crawl/{id}
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Job
Response fields
idstringrequiredstatus"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"requiredtypestringcreated_atstring (date-time)updated_atstring (date-time)runobjectlinksobjecturlstring
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/crawl/$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('traces_getCrawl', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getCrawl",
"arguments": {
"id": "<id>"
}
}
}Cancel
Cancel a crawl job
POST/v1/traces/crawl/{id}/cancel
Needs traces:write at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Job
Response fields
idstringrequiredstatus"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"requiredtypestringcreated_atstring (date-time)updated_atstring (date-time)runobjectlinksobjecturlstring
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/crawl/$ID/cancel" \
-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('traces_cancelCrawl', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_cancelCrawl",
"arguments": {
"id": "<id>"
}
}
}Cancel a deep research run (no key; twice changes nothing): returns every verified claim, the sources read and the drafted sections
POST/v1/traces/research/{id}/cancel
Needs traces:write at the gateway.
Parameters
idpath · stringrequired
Responses
- 200The cancelled run with what it found
Response fields
idstringstatusstringrun_status"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"planobjectsteersobject[]drafted_sectionsobject[]reportobjecttitle, summary (every sentence cites), sections[{heading, markdown}], sources[{n, url, title, domain}], citations[{n, claim_id, source_id, url, quote}]
claimsobject[]sourcesobject[]events_urlstring
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization (RESEARCH_NOT_FOUND)
- 409RESEARCH_DEEP_FINISHED: the run completed or failed
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/research/$ID/cancel" \
-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('traces_cancelResearch', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_cancelResearch",
"arguments": {
"id": "<id>"
}
}
}
}Cancel a run
POST/v1/traces/runs/{id}/cancel
Needs traces:write at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Run is now cancelled
Response fields
status"cancelled"
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 500The run could not be cancelled
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/runs/$ID/cancel" \
-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('traces_cancelRun', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_cancelRun",
"arguments": {
"id": "<id>"
}
}
}Evidence
List evidence packs
GET/v1/traces/evidence
Needs traces:read at the gateway.
Parameters
limitquery · integerPage size (backend default 20)
offsetquery · integersource_idquery · stringrun_idquery · stringcategoryquery · stringtypequery · string
Responses
- 200Evidence
Response fields
itemsobject[]requiredtotalintegerrequired
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/evidence" \
-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('traces_listEvidence'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_listEvidence",
"arguments": {}
}
}Read one evidence pack
GET/v1/traces/evidence/{id}
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Evidence pack
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/evidence/$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('traces_getEvidence', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getEvidence",
"arguments": {
"id": "<id>"
}
}
}Evidence collected by a run
GET/v1/traces/runs/{id}/evidence
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Run evidence
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/runs/$ID/evidence" \
-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('traces_getRunEvidence', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getRunEvidence",
"arguments": {
"id": "<id>"
}
}
}Extract
Extract page content from URLs
POST/v1/traces/extract
Needs traces:read at the gateway. Metered per URL extracted.
Parameters
Idempotency-Keyheader · stringrequiredStable key; replays return the original result and are metered once
Request body application/json
urlstringPublic http(s) URL
urlsstring[]extract_depthstringformatstringtimeoutnumberfollow_redirectsbooleanfalse: never follow a redirect; the answer carries the Location as data. A 301/302/303/307/308, or a page the browser fallback reached by a redirect, comes back as a result with empty
raw_content,final_url= the asked URL,metadata.locationandmetadata.redirect_not_followed: true. Absent or true: redirects are followed (up to 10 hops). defaulttrue
Responses
- 200Extraction results (results, failed_results)
Response fields
A JSON object.
- 400Invalid or non-public URL
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 502Extraction failed
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/extract" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{}'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('traces_extract', {
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_extract",
"arguments": {
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Extract structured data from URLs against a schema
POST/v1/traces/extract/structured
Needs traces:read at the gateway. Uses a deterministic parser (metadata.llm_backed is false).
Parameters
Idempotency-Keyheader · stringrequiredStable key; replays return the original result and are metered once
Request body application/json
urlstringPublic http(s) URL
urlsstring[]schemaobjectJSON schema describing the fields to extract
promptstringextract_depthstringformatstringtimeoutnumber
Responses
- 200Structured results (results, failed_results, schema, metadata)
Response fields
A JSON object.
- 400Invalid or non-public URL
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 502Extraction failed
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/extract/structured" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{}'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('traces_extractStructured', {
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_extractStructured",
"arguments": {
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}
}Flights
Flight search: airline offers for a trip, with times and prices (search only; an empty airport is searched again as its whole city; metered as traces.flights.searches)
POST/v1/traces/flights/search
Needs traces:read at the gateway. Dark: 404 until the gateway's TRACES_RELAY_FLIGHTS_ENABLED and Traces' TRACES_FLIGHTS are on. Offers for a one-way or return trip from airline content (Duffel): each with its total price, the departure and arrival times in the airports' local time, stops, duration, flight numbers, the operating airlines and the fare's change/refund terms. Search only: nothing is held, priced for purchase or booked. mode is live (real fares) or test (synthetic test content that must never be shown as real); every offer carries the same mode, and in test mode each offer's title starts TEST (synthetic): . Test mode answers only the deployment's named test organizations; any other organization gets 503 FLIGHT_SEARCH_NOT_CONFIGURED. Use 3-letter IATA airport or city codes (NYC, LON and PAR cover every airport of the city); max_connections 0 asks for nonstop flights only. A request carrying Google Workspace user data (x-foundry-data-class) is refused with 422. Times and prices change quickly and offers expire (expires_at), so search again before acting on one. When Duffel has no offer at all for the airports asked, each airport that belongs to a larger city (from Duffel's own places data, e.g. DAL in the city DFW) is searched once more as that city, and widened names each one; the second search takes a slot of the shared live daily ceiling (skipped when none is left) and is billed and counted as part of the one search. A live answer whose airline content returned nothing (considered 0) carries coverage: which airlines this search reaches (airlines that don't sell through Duffel, including many low-cost and domestic carriers, aren't searched), so an empty answer is not proof that a route has no flights.
Parameters
Idempotency-Keyheader · stringrequiredStable key; a repeat with the same key is refused (409) and never searches or meters twice
Request body application/json
slicesobject[]requiredOne slice for one-way, two for a return trip
slices[].[].originstringrequiredIATA airport or city code, e.g. JFK or NYC pattern
^[A-Za-z]{3}$slices[].[].destinationstringrequiredIATA airport or city code, e.g. LIS pattern
^[A-Za-z]{3}$slices[].[].departure_datestring (date)requiredYYYY-MM-DD, today or later, within 360 days
passengersobject[]Default one adult. Children and infants give an age (0-17) instead of a type
passengers[].[].type"adult"passengers[].[].ageintegermin 0 · max 17
cabin_class"economy" | "premium_economy" | "business" | "first"max_connectionsinteger0 = nonstop only. Default: the airline search's own default (1) min 0 · max 2
limitintegerOffers to return (default 5), one per itinerary min 1 · max 10
sort"price" | "departure"price (default, cheapest first) or departure (earliest first)
Responses
- 200Offers (possibly none)
Response fields
offersobject[]requiredoffers[].[].offer_idstringoffers[].[].total_minorintegeroffers[].[].currencystringoffers[].[].totalstringDisplay price, e.g. $650.00
offers[].[].expires_atstringoffers[].[].ownerobjectoffers[].[].titlestringRoute summary; in test mode it starts
TEST (synthetic):offers[].[].whenstringFirst slice, e.g. Thu 10 Dec · 7:05 PM to 7:10 AM +1 · nonstop
offers[].[].slicesobject[]offers[].[].conditionsobjectoffers[].[].mode"live" | "test"Same as the answer's mode, on every offer
totalintegerrequiredconsideredintegermode"live" | "test"requiredproviderstringrequiredsearch_onlybooleanrequirednoticestringwidenedobject[]Present only when the first search had no offers and an airport was searched again as its whole city; one entry per airport replaced
widened[].[].askedstringrequiredThe airport code asked for, e.g. DAL pattern
^[A-Z]{3}$widened[].[].searchedstringrequiredThe city code searched in its place, e.g. DFW pattern
^[A-Z]{3}$widened[].[].citystringThe city's name, e.g. Dallas
coveragestringPresent on a live answer whose airline content returned nothing (considered 0): which airlines this search reaches, so an empty answer is not read as 'no flights on this route'
- 400Invalid trip (FLIGHT_SEARCH_INVALID)
- 401Verified One account identity required
- 403Traces permission required
- 409Idempotency-Key already used
- 422Request carries Google Workspace user data (DATA_CLASS_NOT_STORABLE)
- 429Too many flight searches (FLIGHT_SEARCH_RATE_LIMITED, Retry-After)
- 503Flight search unavailable (FLIGHT_SEARCH_UNAVAILABLE, Retry-After), or not offered to this organization (FLIGHT_SEARCH_NOT_CONFIGURED: test mode serves named test organizations only)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/flights/search" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"slices": [
{
"origin": "string",
"destination": "string",
"departure_date": "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('traces_flightsSearch', {
body: {
slices: [
{
origin: 'string',
destination: 'string',
departure_date: 'string',
},
],
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_flightsSearch",
"arguments": {
"body": {
"slices": [
{
"origin": "string",
"destination": "string",
"departure_date": "string"
}
]
},
"idempotency_key": "<a stable key per change>"
}
}
}Health
Traces liveness
GET/v1/traces/health
Unauthenticated liveness. The gateway reads no caller credential for it and maps it to the receiver's /health. Takes no query string.
Responses
- 200Healthy (status, service)
Response fields
A JSON object.
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/health"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_getHealth'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_getHealth",
"arguments": {}
}
}
}Freshness and fetch health of a source
GET/v1/traces/sources/{id}/health
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Source health
Response fields
source_idstringrequiredstatusstringrequiredfetch_countintegerlast_fetched_atstring (date-time)last_checked_atstring (date-time)content_hashstringcontent_typestringetagstringlast_modifiedstringresponse_codeintegererror_messagestringstaleness_hoursnumber
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/sources/$ID/health" \
-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('traces_getSourceHealth', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getSourceHealth",
"arguments": {
"id": "<id>"
}
}
}Ingest
Publish an evidence pack for ingestion
POST/v1/traces/ingest
Needs traces:write at the gateway. Returns 503 when ingestion is not configured on the Traces deployment.
Request body application/json
evidence_pack_idstringrequiredrun_idstringrequiredcategory"code" | "news" | "wiki" | "research" | "auto"querystringrequiredcreated_atstring (date-time)sourcesobject[]sources[].[].idstringrequiredsources[].[].urlstringrequireddocumentsobject[]documents[].[].idstringrequireddocuments[].[].source_idstringrequireddocuments[].[].contentstringrequiredcitationsobject[]citations[].[].idstringrequiredcitations[].[].document_idstringrequiredcitations[].[].excerptstringrequiredcandidatesobject[]candidates[].[].idstringrequiredcandidates[].[].namestringrequiredcandidates[].[].definitionstringrequiredcandidates[].[].confidencenumbermin 0 · max 1
Responses
- 201Ingestion accepted
Response fields
A JSON object.
- 400Invalid payload
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/ingest" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"evidence_pack_id": "string",
"run_id": "string",
"query": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_ingestEvidence', {
body: {
evidence_pack_id: 'string',
run_id: 'string',
query: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_ingestEvidence",
"arguments": {
"body": {
"evidence_pack_id": "string",
"run_id": "string",
"query": "string"
}
}
}
}
}Decide whether existing knowledge needs a Traces fallback
POST/v1/traces/ingest/evaluate
Needs traces:write at the gateway.
Request body application/json
resultsobject[]results[].[].primitive_idstringresults[].[].scorenumberresults[].[].verification_confidencenumberresults[].[].evidence_ageintegerNanoseconds
results[].[].domainstringcategory"code" | "news" | "wiki" | "research" | "auto"thresholdsobjectOptional overrides (defaults: coverage 0.6, freshness 0.5, confidence 0.7)
Responses
- 200Fallback decision (needs_fallback, reason, coverage, freshness, confidence, ...)
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/ingest/evaluate" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_evaluateIngestFallback', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_evaluateIngestFallback",
"arguments": {
"body": {}
}
}
}
}Ingestion status of an evidence pack
GET/v1/traces/ingest/status/{id}
Needs traces:read at the gateway.
Parameters
idpath · stringrequiredEvidence pack id
Responses
- 200Ingestion status
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/ingest/status/$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('traces_getIngestStatus', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_getIngestStatus",
"arguments": {
"id": "<id>"
}
}
}
}Map
Discover URLs on a site
POST/v1/traces/map
Needs traces:read at the gateway. Metered per URL returned.
Parameters
Idempotency-Keyheader · stringrequiredStable key; replays return the original result and are metered once
Request body application/json
urlstringrequiredmax_depthintegermin 1 · max 5
max_breadthintegermin 0 · max 100
limitintegermin 1 · max 500
select_pathsstring[]timeoutnumber
Responses
- 200Discovered URLs
Response fields
A JSON object.
- 400Invalid or non-public URL
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 502Map failed
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/map" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "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('traces_map', {
body: {
url: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_map",
"arguments": {
"body": {
"url": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Monitors
List monitors
GET/v1/traces/monitors
Needs traces:read at the gateway.
Parameters
limitquery · integerPage size (backend default 20)
offsetquery · integerstatusquery · "active" | "paused" | "triggered" | "error"source_idquery · string
Responses
- 200Monitors
Response fields
itemsobject[]requireditems[].[].idstringrequireditems[].[].tenant_idstringitems[].[].namestringrequireditems[].[].descriptionstringitems[].[].source_idstringitems[].[].querystringitems[].[].conditionobjectitems[].[].check_interval_secondsintegeritems[].[].status"active" | "paused" | "triggered" | "error"requireditems[].[].last_checked_atstring (date-time)items[].[].last_triggered_atstring (date-time)items[].[].webhook_urlstringitems[].[].created_atstring (date-time)items[].[].updated_atstring (date-time)items[].[].platform_idstringitems[].[].org_idstringitems[].[].workspace_idstringitems[].[].project_idstringitems[].[].environment_idstringtotalintegerrequired
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/monitors" \
-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('traces_listMonitors'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_listMonitors",
"arguments": {}
}
}Create a monitor
POST/v1/traces/monitors
Needs traces:write at the gateway.
Request body application/json
namestringrequiredmax length 256
descriptionstringsource_idstringquerystringmax length 10000
conditionobjectrequiredAlert condition; the backend requires it to be non-empty
check_interval_secondsintegerDefaults to 3600
webhook_urlstringPublic https URL
Responses
- 201Monitor created
Response fields
idstringrequiredtenant_idstringnamestringrequireddescriptionstringsource_idstringquerystringconditionobjectcheck_interval_secondsintegerstatus"active" | "paused" | "triggered" | "error"requiredlast_checked_atstring (date-time)last_triggered_atstring (date-time)webhook_urlstringcreated_atstring (date-time)updated_atstring (date-time)platform_idstringorg_idstringworkspace_idstringproject_idstringenvironment_idstring
- 400Invalid body
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/monitors" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"condition": {}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_createMonitor', {
body: {
name: 'string',
condition: {},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_createMonitor",
"arguments": {
"body": {
"name": "string",
"condition": {}
}
}
}
}Read one monitor
GET/v1/traces/monitors/{id}
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Monitor
Response fields
idstringrequiredtenant_idstringnamestringrequireddescriptionstringsource_idstringquerystringconditionobjectcheck_interval_secondsintegerstatus"active" | "paused" | "triggered" | "error"requiredlast_checked_atstring (date-time)last_triggered_atstring (date-time)webhook_urlstringcreated_atstring (date-time)updated_atstring (date-time)platform_idstringorg_idstringworkspace_idstringproject_idstringenvironment_idstring
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/monitors/$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('traces_getMonitor', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getMonitor",
"arguments": {
"id": "<id>"
}
}
}Update a monitor
PUT/v1/traces/monitors/{id}
Needs traces:write at the gateway.
Parameters
idpath · stringrequired
Request body application/json
namestringdescriptionstringsource_idstringquerystringconditionobjectcheck_interval_secondsintegerstatus"active" | "paused" | "triggered" | "error"webhook_urlstring
Responses
- 200Updated monitor
Response fields
idstringrequiredtenant_idstringnamestringrequireddescriptionstringsource_idstringquerystringconditionobjectcheck_interval_secondsintegerstatus"active" | "paused" | "triggered" | "error"requiredlast_checked_atstring (date-time)last_triggered_atstring (date-time)webhook_urlstringcreated_atstring (date-time)updated_atstring (date-time)platform_idstringorg_idstringworkspace_idstringproject_idstringenvironment_idstring
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/traces/monitors/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_updateMonitor', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_updateMonitor",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}Delete a monitor
DELETE/v1/traces/monitors/{id}
Needs traces:delete at the gateway (traces:admin is accepted as a deprecated alias).
Parameters
idpath · stringrequired
Responses
- 200Deleted
Response fields
statusstringrequired
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/traces/monitors/$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('traces_deleteMonitor', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_deleteMonitor",
"arguments": {
"id": "<id>"
}
}
}Alerts
List alerts raised by a monitor
GET/v1/traces/monitors/{id}/alerts
Needs traces:read at the gateway.
Parameters
idpath · stringrequiredlimitquery · integerPage size (backend default 20)
offsetquery · integeracknowledgedquery · boolean
Responses
- 200Alerts
Response fields
itemsobject[]requireditems[].[].idstringrequireditems[].[].monitor_idstringrequireditems[].[].run_idstringitems[].[].alert_typestringitems[].[].detailsobjectitems[].[].acknowledgedbooleanitems[].[].acknowledged_atstring (date-time)items[].[].created_atstring (date-time)items[].[].platform_idstringitems[].[].org_idstringitems[].[].workspace_idstringitems[].[].project_idstringitems[].[].environment_idstringtotalintegerrequired
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/monitors/$ID/alerts" \
-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('traces_listMonitorAlerts', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_listMonitorAlerts",
"arguments": {
"id": "<id>"
}
}
}Acknowledge a monitor alert
POST/v1/traces/monitors/{id}/alerts/{alert_id}/acknowledge
Needs traces:write at the gateway.
Parameters
idpath · stringrequiredalert_idpath · stringrequired
Responses
- 200Acknowledged alert
Response fields
idstringrequiredmonitor_idstringrequiredrun_idstringalert_typestringdetailsobjectacknowledgedbooleanacknowledged_atstring (date-time)created_atstring (date-time)platform_idstringorg_idstringworkspace_idstringproject_idstringenvironment_idstring
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/monitors/$ID/alerts/$ALERT_ID/acknowledge" \
-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('traces_acknowledgeMonitorAlert', {
id: '<id>',
alert_id: '<alert_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_acknowledgeMonitorAlert",
"arguments": {
"id": "<id>",
"alert_id": "<alert_id>"
}
}
}Check
Evaluate a monitor now
POST/v1/traces/monitors/{id}/check
Needs traces:write at the gateway. A check that fetches a page is metered as a monitor page.
Parameters
idpath · stringrequired
Responses
- 200Check result
Response fields
status"checked" | "triggered" | "error"monitorobjectmonitor.idstringrequiredmonitor.tenant_idstringmonitor.namestringrequiredmonitor.descriptionstringmonitor.source_idstringmonitor.querystringmonitor.conditionobjectmonitor.check_interval_secondsintegermonitor.status"active" | "paused" | "triggered" | "error"requiredmonitor.last_checked_atstring (date-time)monitor.last_triggered_atstring (date-time)monitor.webhook_urlstringmonitor.created_atstring (date-time)monitor.updated_atstring (date-time)monitor.platform_idstringmonitor.org_idstringmonitor.workspace_idstringmonitor.project_idstringmonitor.environment_idstringlast_checked_atstring (date-time)triggeredbooleanalertobjectalert.idstringrequiredalert.monitor_idstringrequiredalert.run_idstringalert.alert_typestringalert.detailsobjectalert.acknowledgedbooleanalert.acknowledged_atstring (date-time)alert.created_atstring (date-time)alert.platform_idstringalert.org_idstringalert.workspace_idstringalert.project_idstringalert.environment_idstringerrorstring
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/monitors/$ID/check" \
-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('traces_checkMonitor', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_checkMonitor",
"arguments": {
"id": "<id>"
}
}
}Fetch the source now and record a freshness check
POST/v1/traces/sources/{id}/check
Needs traces:write at the gateway.
Parameters
idpath · stringrequired
Responses
- 201Freshness check recorded
Response fields
idstringsource_idstringchecked_atstring (date-time)content_changedbooleanprevious_hashstringcurrent_hashstringresponse_codeintegercheck_methodstringnext_check_atstring (date-time)
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/sources/$ID/check" \
-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('traces_checkSource', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_checkSource",
"arguments": {
"id": "<id>"
}
}
}Paper
Look up one paper by DOI, arXiv id or OpenAlex id, with references and citing papers
POST/v1/traces/paper
Needs traces:read at the gateway. id is a DOI (doi:10.… or 10.…), an arXiv id (arxiv:2005.11401) or an OpenAlex id (openalex:W…). The paper is merged from every index that knows it, with every open-access link Traces can find; references and cited_by (from OpenAlex's citation graph) are up to limit each, at most a hundred.
Parameters
Idempotency-Keyheader · stringOptional stable key; a replay returns the original result and is metered once
Request body application/json
idstringrequiredmin length 1 · max length 300
referencesbooleandefault
falsecited_bybooleandefault
falselimitintegermin 1 · max 100 · default
25
Responses
- 200paper, references[], cited_by[], indexes[]
Response fields
A JSON object.
- 400INVALID_REQUEST (the body is not the operation's shape) or INVALID_PAPER_ID (not a DOI, an arXiv id or an OpenAlex id)
- 401Verified One account identity required
- 403Traces permission required
- 404PAPER_NOT_FOUND: no index knows the paper
- 503SEARCH_UNAVAILABLE: no scholarly index answered; retry after the time it gives (not metered)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/paper" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "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('traces_paper', {
body: {
id: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_paper",
"arguments": {
"body": {
"id": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Papers
Search papers across the open scholarly indexes (metered as one traces.search.requests)
POST/v1/traces/papers
Needs traces:read at the gateway. One query goes to OpenAlex, Crossref and arXiv on every search, Europe PMC (PubMed's content, bioRxiv and medRxiv preprints) for biomedical questions, and OpenReview and dblp for computing and machine learning; Unpaywall adds open-access copies by DOI. Twelve seconds, then the list is made from what answered (partial says when an index did not). The same paper found by several indexes is one row (matched by DOI, then arXiv id without version, then title within a year), with the highest citation count any index reports. Ranked by relevance across the indexes, citations, title overlap and a small lift for open access and recent work. Every paper carries sources and attribution (each index, its licence and link). Each index is reached through its own API; nothing is scraped and no PDF is re-hosted.
Parameters
Idempotency-Keyheader · stringOptional stable key; a replay returns the original result and is metered once
Request body application/json
qstringrequiredThe question or topic min length 1 · max length 300
year_fromintegermin 1600 · max 2200
year_tointegermin 1600 · max 2200
venuestringKeep papers whose venue contains this max length 200
open_access_onlybooleandefault
falsesort"relevance" | "citations" | "recent"default
"relevance"limitintegermin 1 · max 50 · default
20fields"biomedical" | "computing"[]The question's field, when known; otherwise Traces decides from OpenAlex's topic labels
Responses
- 200papers[] (id, doi, arxiv_id, openalex_id, pmid, pmcid, openreview_id, dblp_key, title, abstract where its licence allows, authors, venue, year, published_date, citation_count, reference_count, is_oa, oa_status, oa_url, pdf_url, license, code_urls, data_urls, forum_url, sources, attribution), indexes[] (how each index answered), fields, partial
Response fields
A JSON object.
- 400INVALID_REQUEST (the body is not the operation's shape) or INVALID_PAPER_ID (not a DOI, an arXiv id or an OpenAlex id)
- 401Verified One account identity required
- 403Traces permission required
- 404PAPER_NOT_FOUND: no index knows the paper
- 503SEARCH_UNAVAILABLE: no scholarly index answered; retry after the time it gives (not metered)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/papers" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"q": "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('traces_papers', {
body: {
q: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_papers",
"arguments": {
"body": {
"q": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Picture
Fetch one picture, cleaned
POST/v1/traces/picture
Needs traces:read at the gateway. Fetches one https picture through Traces' own fetcher (every hop https and checked against private, loopback, link-local and metadata addresses at connect time; at most 3 redirects; nothing of the caller's sent) and returns its bytes checked by signature (PNG, JPEG, WebP or GIF; never SVG), at most 10 MB and 40 megapixels, with EXIF, XMP and comments removed. Pass a url from an images entry of a search or extract result. Metered as one page read when a picture is returned.
Request body application/json
urlstringrequiredThe picture's https address max length 2048
Responses
- 200The cleaned picture
Response fields
content_type"image/png" | "image/jpeg" | "image/webp" | "image/gif"requiredsizeintegerrequiredwidthintegerrequiredheightintegerrequiredfinal_urlstringrequiredbytes_b64stringrequiredThe cleaned picture, base64
strippedintegerMetadata segments removed
- 400BAD_REQUEST (no usable url) or NOT_HTTPS
- 401Verified One account identity required
- 403BLOCKED_HOST (not a public picture host), or the credential lacks Traces read
- 413TOO_BIG (over 10 MB or 40 megapixels)
- 415NOT_PICTURE (not PNG, JPEG, WebP or GIF)
- 502FETCH_FAILED (the picture could not be fetched)
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/picture" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_fetchPicture', {
body: {
url: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_fetchPicture",
"arguments": {
"body": {
"url": "string"
}
}
}
}Research
Research: a cited answer from verified quotes (quick), or a deep research run (mode deep: 202 + id, events, steers)
POST/v1/traces/research
Needs traces:read at the gateway. Dark: 404 until the gateway's TRACES_RELAY_RESEARCH_ENABLED and Traces' TRACES_RESEARCH_QUICK are on. Plans 3-8 searches, reads 5-15 pages (robots.txt honoured, no Reddit), keeps only claims whose quote is in the page read, and answers from those with citations, within the run's deadline: timeout_seconds, 30-50 s (default 50). Synthesis keeps its 20 s at every deadline; when the deadline would cut the answer, the run ends just before it with status partial (partial.stage synthesize, reason timeout) and, when a finished sentence of the draft cites a verified claim, the draft's finished sentences that cite a verified claim as the answer (usage.answer_at_deadline true; the answer check did not run on it). engines lists each search engine the run reached, how many searches it answered and why the rest failed, so a failover is never silent. x-oneos-deadline-ms is the longest this call takes (the 50 s cap plus transport): a caller sets its own call limit from it. Deep mode (mode: "deep") answers 202 with the run id and events_url; the run works in the background up to 30 minutes (300 sources, 6 iterations); read it with getResearch, stream it with researchEvents, steer and cancel it with steerResearch and cancelResearch (traces:write).
Parameters
Idempotency-Keyheader · stringrequiredStable key; a repeat with the same key is refused (409) and never re-runs or meters twice
Request body application/json
querystringrequiredmin length 1 · max length 2000
mode"quick" | "deep"quick (default): a cited answer in the reply. deep: a background run (202 with id and events_url): 4-10 sub-questions, up to 300 sources, 6 iterations, 30 minutes, steerable, streamed
contextstringThe person's earlier words, used to resolve references in planning and the answer only; never a source, never logged max length 4000
max_queriesintegerClamped to 3-8 (default 6) min 1 · max 50
max_pagesintegerquick: clamped to 5-15 (default 10). deep: 50-300 sources (default 300) min 1 · max 500
timeout_secondsintegerquick: the run's whole deadline, 30-50 s (default 50). deep: 300-1800 s (default 1800) min 1 · max 1800
topic"general" | "news" | "reference"time_range"day" | "week" | "month" | "year"countrystringmin length 2 · max length 2
caller_refstringOpaque tag echoed in the result and in every research meter event; never personal data pattern
^[A-Za-z0-9_-]{1,64}$max_roundsintegerdeep only: iterations (default 6) min 1 · max 6
Responses
- 200Complete or partial result (status complete|partial|failed; a partial says which stage did not finish)
Response fields
idstringrequiredcaller_refstringquerystringmodestringrequiredstatus"complete" | "partial" | "failed"requiredanswerstringrequired[n] markers resolve to citations[n-1]
citationsobject[]requiredcitations[].[].nintegercitations[].[].claim_idstringcitations[].[].source_idstringcitations[].[].urlstringcitations[].[].titlestringcitations[].[].quotestringclaimsobject[]requiredclaims[].[].idstringclaims[].[].textstringclaims[].[].quotestringclaims[].[].source_idstringclaims[].[].urlstringclaims[].[].verifiedbooleansourcesobject[]requiredsources[].[].idstringsources[].[].urlstringsources[].[].final_urlstringsources[].[].titlestringsources[].[].domainstringsources[].[].snippetstringsources[].[].published_atstringsources[].[].scorenumbersources[].[].readbooleansources[].[].queriesstring[]sources[].[].provider"brave" | "traces"dropped_claimsobject[]dropped_claims[].[].textstringdropped_claims[].[].quotestringdropped_claims[].[].urlstringdropped_claims[].[].reasonstringskipped_sourcesobject[]skipped_sources[].[].urlstringskipped_sources[].[].reasonstringskipped_sources[].[].detailstringqueriesstring[]partialobjectpartial.stagestringpartial.reasonstringusageobjecttimings_msobjectcreated_atstring (date-time)enginesobject[]Each search engine the run's searches reached (cache = Traces' own cache): searches asked, answered (an empty answer counts), results, and failed {reason: count} for the rest (for example timeout, rate_limited, tenant_daily_cap; for a developer tenant an engine's account state and shared engine state, such as its whole daily budget or cooldown, read unavailable); searches no engine answered count too
engines[].[].enginestringengines[].[].searchesintegerengines[].[].answeredintegerengines[].[].resultsintegerengines[].[].failedobject
- 202mode deep: the run is accepted and works in the background
Response fields
idstringrequiredstatusstringrequiredmodestringrequiredevents_urlstringlinksobject
- 400Invalid body (query, context over 4000 characters, mode, caller_ref)
- 401Verified One account identity required
- 403Traces permission required
- 404Research is not enabled
- 409Idempotency-Key already admitted
- 429RESEARCH_DEEP_BUSY or RESEARCH_DEEP_DAILY_LIMIT (deep run caps per organization)
- 503RESEARCH_MODEL_UNAVAILABLE, SEARCH_UNAVAILABLE (with Retry-After, reason and engines: the same public engines list as a 200) or Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/research" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "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('traces_research', {
body: {
query: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_research",
"arguments": {
"body": {
"query": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}A deep research run: plan, steers, drafted sections, and the report when written
GET/v1/traces/research/{id}
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200The run as it stands
Response fields
idstringstatusstringrun_status"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"planobjectsteersobject[]drafted_sectionsobject[]reportobjecttitle, summary (every sentence cites), sections[{heading, markdown}], sources[{n, url, title, domain}], citations[{n, claim_id, source_id, url, quote}]
claimsobject[]sourcesobject[]events_urlstring
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization (RESEARCH_NOT_FOUND)
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/research/$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('traces_getResearch', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_getResearch",
"arguments": {
"id": "<id>"
}
}
}
}Events
Stream a deep research run (Server-Sent Events): plan, progress, sources, steers, drafted sections, report; resumes from Last-Event-ID
GET/v1/traces/research/{id}/events
Needs traces:read at the gateway. Each event has an id; Last-Event-ID (header) or last_event_id (query) resumes after it. A finished run's stream replays its events and closes with an end event. The generic SDK client buffers the response as text; read it from a streaming HTTP client to consume events live.
Parameters
idpath · stringrequiredtimeoutquery · integerStream timeout in seconds (default and max 300)
last_event_idquery · stringResume after this event id
Last-Event-IDheader · stringResume after this event id
Responses
- 200text/event-stream
Response fields
Type:
string - 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization (RESEARCH_NOT_FOUND)
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/research/$ID/events" \
-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('traces_researchEvents', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_researchEvents",
"arguments": {
"id": "<id>"
}
}
}
}Steer
Steer a deep research run in plain words: it joins the plan at the next reflection with a new plan version (during writing: one more pass)
POST/v1/traces/research/{id}/steer
Needs traces:write at the gateway.
Parameters
idpath · stringrequired
Request body application/json
instructionstringrequiredmin length 1 · max length 500
Responses
- 202The steer is recorded
Response fields
steer_idstringapplies_at"next_reflection" | "another_pass"steers_usedintegersteers_leftinteger
- 400INVALID_REQUEST: missing or longer than 500 characters
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization (RESEARCH_NOT_FOUND)
- 409RESEARCH_DEEP_FINISHED: the run has ended
- 429RESEARCH_STEER_LIMIT: more than ten steers on one deep run
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/research/$ID/steer" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"instruction": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_steerResearch', {
id: '<id>',
body: {
instruction: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_steerResearch",
"arguments": {
"id": "<id>",
"body": {
"instruction": "string"
}
}
}
}
}Runs
List runs in the verified organization
GET/v1/traces/runs
Needs traces:read at the gateway.
Parameters
limitquery · integerPage size (backend default 20)
offsetquery · integerstatusquery · "queued" | "running" | "paused" | "completed" | "failed" | "cancelled"typequery · stringRun type, for example deep_research
Responses
- 200Runs
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/runs" \
-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('traces_listRuns'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_listRuns",
"arguments": {}
}
}Create a research run
POST/v1/traces/runs
Needs traces:write at the gateway.
Parameters
Idempotency-Keyheader · stringrequiredStable key; replays return the original result and are metered once
Request body application/json
typestringrequiredRun type, for example deep_research
querystringmax length 4000
categorystringconfigobject
Responses
- 200Run accepted
Response fields
A JSON object.
- 201Run created
Response fields
A JSON object.
- 202Run accepted
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/runs" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "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('traces_createRun', {
body: {
type: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_createRun",
"arguments": {
"body": {
"type": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Read one run
GET/v1/traces/runs/{id}
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Run
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/runs/$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('traces_getRun', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getRun",
"arguments": {
"id": "<id>"
}
}
}Pause
Pause a run
POST/v1/traces/runs/{id}/pause
Needs traces:write at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Run is now paused
Response fields
status"paused"
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 500The run could not be paused
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/runs/$ID/pause" \
-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('traces_pauseRun', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_pauseRun",
"arguments": {
"id": "<id>"
}
}
}Resume
Resume a paused run
POST/v1/traces/runs/{id}/resume
Needs traces:write at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Run is now running
Response fields
status"running"
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 500The run could not be running
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/runs/$ID/resume" \
-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('traces_resumeRun', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_resumeRun",
"arguments": {
"id": "<id>"
}
}
}Retry
Retry a failed run from its last failed step
POST/v1/traces/runs/{id}/retry
Needs traces:write at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Retry started
Response fields
statusstringretry_countinteger
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 409Only failed runs can be retried, or max retries exceeded
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/runs/$ID/retry" \
-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('traces_retryRun', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_retryRun",
"arguments": {
"id": "<id>"
}
}
}Steps
Steps of a run, ordered by step_index
GET/v1/traces/runs/{id}/steps
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Steps
Response fields
stepsobject[]totalinteger
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/runs/$ID/steps" \
-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('traces_getRunSteps', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getRunSteps",
"arguments": {
"id": "<id>"
}
}
}Stream
Stream run events (Server-Sent Events)
GET/v1/traces/runs/{id}/stream
Needs traces:read at the gateway. The generic SDK client buffers the response as text; read it from a streaming HTTP client to consume events live.
Parameters
idpath · stringrequiredtimeoutquery · integerStream timeout in seconds (default 30, max 300)
Last-Event-IDheader · stringResume after this event id
Responses
- 200Server-Sent Events: run events as
text/event-stream; the stream ends attimeoutor when authorization expires.Response fields
Type:
string - 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/runs/$ID/stream" \
-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('traces_streamRun', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_streamRun",
"arguments": {
"id": "<id>"
}
}
}
}Scrape
Scrape one page
POST/v1/traces/scrape
Needs traces:read at the gateway. Metered per page; browser rendering and screenshots are metered separately.
Parameters
Idempotency-Keyheader · stringrequiredStable key; replays return the original result and are metered once
Request body application/json
urlstringrequiredformatstringformatsstring[]json_schemaobjectextract_depthstringrender_mode"static" | "browser"wait_forintegermin 0
actionsobject[]device"desktop" | "mobile"locationobjectproxystringinclude_raw_htmlbooleaninclude_linksbooleaninclude_imagesbooleaninclude_screenshotbooleanonly_main_contentbooleantimeoutnumber
Responses
- 200Scraped page (url, final_url, title, markdown, links, metadata, provider, ...)
Response fields
A JSON object.
- 400Invalid request or non-public URL
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 502Scrape failed
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/scrape" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "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('traces_scrape', {
body: {
url: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_scrape",
"arguments": {
"body": {
"url": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Search
Web search with evidence (metered as traces.search.results)
POST/v1/traces/search
Needs traces:read at the gateway.
Parameters
Idempotency-Keyheader · stringrequiredStable key; replays return the original result and are metered once
Request body application/json
querystringrequiredmin length 1 · max length 2000
max_resultsintegerUp to 20 for a web search (21 or more is refused 400 INVALID_REQUEST); up to 50 with class scholar min 1 · max 50
depth"basic" | "deep"basic (default) runs one search. deep plans up to 3 more searches from the question, runs them in parallel and fuses the results; it falls back to basic when the deep path is off or over its limits (the response says so in deep_note). default
"basic"streambooleantrue with Accept: application/x-ndjson answers 200 application/x-ndjson, one JSON object per line: a results line (the ranked rows, before any page read) as soon as the engines answer, then one read line per page as its read finishes, then a done line (read_status, pages_read, response_time; or error after a failure). Errors before the first line keep their usual statuses. Without both, the answer is the usual JSON object. The SDK's traces.searchStream() and the CLI's traces search --stream read it line by line. default
falseclass"web" | "scholar"scholar searches the scholarly indexes (as POST /v1/traces/papers) and each result carries its paper; year_from, year_to, venue, open_access_only and sort apply default
"web"topicstringgeneral (default) searches the web; news, recent news; wiki, encyclopedias; x, recent public posts on X (the last 7 days): each result is one post with its author's handle, its link on x.com, its date and its like, repost, reply and quote counts, reposts left out, and x results are never kept in a stored run output. finance, code and research are also read. max length 32 · default
"general"time_range"day" | "week" | "month" | "year"Only results from the last day, week, month or year. With topic x the window is at most the last 7 days.
Responses
- 200Search results; each result carries evidence (id, sha256 content_hash of what was returned) and the answer a receipt (id, hash over every result)
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/search" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "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('traces_search', {
body: {
query: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_search",
"arguments": {
"body": {
"query": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Forget every search answer the hot cache keeps for the calling person
DELETE/v1/traces/search/cache
Needs traces:read at the gateway. Deletes only the calling person's own cached search answers (rule: people control their data); shared answers that hold no caller data stay.
Responses
- 204Deleted (also when nothing was kept); the person's private cached answers are gone on every instance
- 401Verified One account identity required
- 403Only a signed-in person can delete their own cached searches (an API key or service principal deletes nothing)
- 503Could not delete cached searches; try again
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/traces/search/cache" \
-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('traces_deleteSearchCache'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_deleteSearchCache",
"arguments": {}
}
}
}Sources
List sources
GET/v1/traces/sources
Needs traces:read at the gateway.
Parameters
limitquery · integerPage size (backend default 20)
offsetquery · integerstatusquery · "discovered" | "fetched" | "processing" | "processed" | "error" | "unavailable"source_typequery · "documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"domainquery · string
Responses
- 200Sources
Response fields
itemsobject[]requireditems[].[].idstringrequireditems[].[].urlstringrequireditems[].[].source_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"requireditems[].[].titlestringitems[].[].domainstringitems[].[].discovered_atstring (date-time)items[].[].last_fetched_atstring (date-time)items[].[].last_checked_atstring (date-time)items[].[].content_hashstringitems[].[].status"discovered" | "fetched" | "processing" | "processed" | "error" | "unavailable"requireditems[].[].fetch_countintegeritems[].[].error_messagestringitems[].[].metadataobjectitems[].[].created_atstring (date-time)items[].[].updated_atstring (date-time)items[].[].platform_idstringitems[].[].org_idstringitems[].[].workspace_idstringitems[].[].project_idstringitems[].[].environment_idstringtotalintegerrequired
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/sources" \
-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('traces_listSources'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_listSources",
"arguments": {}
}
}Register a content source
POST/v1/traces/sources
Needs traces:write at the gateway.
Request body application/json
urlstringrequiredPublic http(s) URL max length 2048
source_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"requiredtitlestringmax length 512
metadataobject
Responses
- 201Source created
Response fields
idstringrequiredurlstringrequiredsource_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"requiredtitlestringdomainstringdiscovered_atstring (date-time)last_fetched_atstring (date-time)last_checked_atstring (date-time)content_hashstringstatus"discovered" | "fetched" | "processing" | "processed" | "error" | "unavailable"requiredfetch_countintegererror_messagestringmetadataobjectcreated_atstring (date-time)updated_atstring (date-time)platform_idstringorg_idstringworkspace_idstringproject_idstringenvironment_idstring
- 400Invalid body
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 409A source with this URL already exists
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/sources" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "string",
"source_type": "documentation"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_createSource', {
body: {
url: 'string',
source_type: 'documentation',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_createSource",
"arguments": {
"body": {
"url": "string",
"source_type": "documentation"
}
}
}
}Read one source
GET/v1/traces/sources/{id}
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Source
Response fields
idstringrequiredurlstringrequiredsource_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"requiredtitlestringdomainstringdiscovered_atstring (date-time)last_fetched_atstring (date-time)last_checked_atstring (date-time)content_hashstringstatus"discovered" | "fetched" | "processing" | "processed" | "error" | "unavailable"requiredfetch_countintegererror_messagestringmetadataobjectcreated_atstring (date-time)updated_atstring (date-time)platform_idstringorg_idstringworkspace_idstringproject_idstringenvironment_idstring
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/sources/$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('traces_getSource', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getSource",
"arguments": {
"id": "<id>"
}
}
}Update a source
PUT/v1/traces/sources/{id}
Needs traces:write at the gateway.
Parameters
idpath · stringrequired
Request body application/json
titlestringsource_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"status"discovered" | "fetched" | "processing" | "processed" | "error" | "unavailable"content_hashstringerror_messagestringmetadataobject
Responses
- 200Updated source
Response fields
idstringrequiredurlstringrequiredsource_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"requiredtitlestringdomainstringdiscovered_atstring (date-time)last_fetched_atstring (date-time)last_checked_atstring (date-time)content_hashstringstatus"discovered" | "fetched" | "processing" | "processed" | "error" | "unavailable"requiredfetch_countintegererror_messagestringmetadataobjectcreated_atstring (date-time)updated_atstring (date-time)platform_idstringorg_idstringworkspace_idstringproject_idstringenvironment_idstring
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/traces/sources/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_updateSource', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_updateSource",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}Delete a source
DELETE/v1/traces/sources/{id}
Needs traces:delete at the gateway (traces:admin is accepted as a deprecated alias).
Parameters
idpath · stringrequired
Responses
- 200Deleted
Response fields
statusstringrequired
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/traces/sources/$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('traces_deleteSource', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_deleteSource",
"arguments": {
"id": "<id>"
}
}
}Spans
List agent traces, or read every span of one trace
GET/v1/traces/spans
Needs traces:read at the gateway. Spans are agent run, turn and tool spans exported by platform services such as Henry, scoped to the verified organization. With trace_id, returns that trace's spans ordered by start time (404 when the organization has none); trace_id cannot be combined with source, limit or page_token. Without it, returns recent traces, newest first.
Parameters
trace_idquery · string32 lowercase hex characters; returns the spans of this one trace
sourcequery · stringOnly traces exported by this source, e.g. henry
limitquery · integerTraces per page (default 50)
page_tokenquery · stringnext_page_token from the previous page
Responses
- 200A trace's spans (with trace_id) or a page of recent traces
Response fields
Type:
object | object - 400Invalid trace_id, source, limit, page_token or parameter combination
- 401Verified One account identity required
- 403Traces permission required
- 404No such trace in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/spans" \
-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('traces_listSpans'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_listSpans",
"arguments": {}
}
}Usage
Persisted Traces usage events for the verified organization
GET/v1/traces/usage/events
Needs traces:read at the gateway.
Parameters
limitquery · integerPage size (backend default 20)
offsetquery · integermeter_idquery · stringfromquery · stringRFC 3339 timestamp or YYYY-MM-DD
toquery · stringRFC 3339 timestamp or YYYY-MM-DD
Responses
- 200Usage events
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/usage/events" \
-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('traces_listUsageEvents'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_listUsageEvents",
"arguments": {}
}
}Counts and metered usage for the organization
GET/v1/traces/usage/summary
Needs traces:read at the gateway.
Parameters
fromquery · stringRFC 3339 timestamp or YYYY-MM-DD
toquery · stringRFC 3339 timestamp or YYYY-MM-DD
Responses
- 200Summary (scope, totals, runs.by_status, usage, unavailable, metered)
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/usage/summary" \
-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('traces_getUsageSummary'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getUsageSummary",
"arguments": {}
}
}Verdicts
List verdicts
GET/v1/traces/verdicts
Needs traces:read at the gateway.
Parameters
limitquery · integerPage size (backend default 20)
offsetquery · integercandidate_primitive_idquery · stringverdictquery · string
Responses
- 200Verdicts
Response fields
itemsobject[]requiredtotalintegerrequired
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/verdicts" \
-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('traces_listVerdicts'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_listVerdicts",
"arguments": {}
}
}Read one verdict
GET/v1/traces/verdicts/{id}
Needs traces:read at the gateway.
Parameters
idpath · stringrequired
Responses
- 200Verdict
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/verdicts/$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('traces_getVerdict', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_getVerdict",
"arguments": {
"id": "<id>"
}
}
}Verify
Verify a claim against evidence: Traces searches and reads, then scores the passages
POST/v1/traces/verify
Needs traces:write at the gateway.
Request body application/json
claimstringrequiredmin length 1
domainstringcategorystring
Responses
- 200Verdict (true, false, mixed, insufficient_evidence or needs_review), confidence scored from the passages, coverage, freshness_score, sources_agreeing, basis[] with content hashes, evidence_id (GET /v1/traces/evidence/{id})
Response fields
A JSON object.
- 400claim is required
- 401Verified One account identity required
- 403Traces permission required
- 404Not found in the verified organization
- 503Traces unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/traces/verify" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"claim": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('traces_verifyClaim', {
body: {
claim: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "traces_verifyClaim",
"arguments": {
"body": {
"claim": "string"
}
}
}
}Webhooks
The public Ed25519 key that verifies every webhook Traces sends
GET/v1/traces/webhooks/signing-key
Needs traces:read at the gateway. Run-completion and monitor-alert webhooks carry Traces-Signature: t=<unix>,ed25519=<base64> over <t>.<body>, Traces-Signature-Key (the key id) and Traces-Delivery-Id (the same on every retry: drop repeats). A run webhook is retried on a backoff until a 2xx answers; every try is a webhook event on the run and webhook_sent turns true on delivery.
Responses
- 200key_id, algorithm (ed25519), public_key (base64)
Response fields
A JSON object.
- 401Verified One account identity required
- 403Traces permission required
- 503WEBHOOK_SIGNING_UNAVAILABLE
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/traces/webhooks/signing-key" \
-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('traces_getWebhookSigningKey'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "traces_getWebhookSigningKey",
"arguments": {}
}
}
}L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support