OneOS Docs
Genesis 0.3.3 Console

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:delete traces:read traces: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 under genesis.traces
CLI
genesis traces
MCP
45 tools; the other 22 through genesis_call

Operations

OperationEndpointAPI key
List Traces API keysGET/api-keysTested with an API key
Create a Traces API keyPOST/api-keysAPI keys refused
Read one Traces API keyGET/api-keys/{id}Failed with an API key
Revoke a Traces API keyDELETE/api-keys/{id}API keys refused
Rotate a Traces API keyPOST/api-keys/{id}/rotateAPI keys refused
Download a stored artifact (for example a screenshot)GET/artifacts/{id}Failed with an API key
Start a batch scrape jobPOST/batch/scrapeTested with an API key
Read a batch scrape jobGET/batch/scrape/{id}Tested with an API key
Cancel a batch scrape jobPOST/batch/scrape/{id}/cancelTested with an API key
Fetch documentation chunks for a libraryPOST/coding/docsTested with an API key
Resolve a library name to its identityPOST/coding/resolveFailed with an API key
Start a site crawl jobPOST/crawlTested with an API key
Read a crawl jobGET/crawl/{id}Tested with an API key
Cancel a crawl jobPOST/crawl/{id}/cancelTested with an API key
List evidence packsGET/evidenceTested with an API key
Read one evidence packGET/evidence/{id}Tested with an API key
Extract page content from URLsPOST/extractTested with an API key
Extract structured data from URLs against a schemaPOST/extract/structuredTested with an API key
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/flights/search—
Traces livenessGET/healthTested with an API key
Publish an evidence pack for ingestionPOST/ingestSigned-in session
Decide whether existing knowledge needs a Traces fallbackPOST/ingest/evaluateTested with an API key
Ingestion status of an evidence packGET/ingest/status/{id}Signed-in session
Discover URLs on a sitePOST/mapTested with an API key
List monitorsGET/monitorsTested with an API key
Create a monitorPOST/monitorsTested with an API key
Read one monitorGET/monitors/{id}Tested with an API key
Update a monitorPUT/monitors/{id}Tested with an API key
Delete a monitorDELETE/monitors/{id}Tested with an API key
List alerts raised by a monitorGET/monitors/{id}/alertsTested with an API key
Acknowledge a monitor alertPOST/monitors/{id}/alerts/{alert_id}/acknowledgeTested with an API key
Evaluate a monitor nowPOST/monitors/{id}/checkTested with an API key
Look up one paper by DOI, arXiv id or OpenAlex id, with references and citing papersPOST/paper—
Search papers across the open scholarly indexes (metered as one traces.search.requests)POST/papers—
Fetch one picture, cleanedPOST/picture—
Research: a cited answer from verified quotes (quick), or a deep research run (mode deep: 202 + id, events, steers)POST/research—
A deep research run: plan, steers, drafted sections, and the report when writtenGET/research/{id}—
Cancel a deep research run (no key; twice changes nothing): returns every verified claim, the sources read and the drafted sectionsPOST/research/{id}/cancel—
Stream a deep research run (Server-Sent Events): plan, progress, sources, steers, drafted sections, report; resumes from Last-Event-IDGET/research/{id}/events—
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/research/{id}/steer—
List runs in the verified organizationGET/runsTested with an API key
Create a research runPOST/runsTested with an API key
Read one runGET/runs/{id}Tested with an API key
Cancel a runPOST/runs/{id}/cancelTested with an API key
Evidence collected by a runGET/runs/{id}/evidenceTested with an API key
Pause a runPOST/runs/{id}/pauseTested with an API key
Resume a paused runPOST/runs/{id}/resumeTested with an API key
Retry a failed run from its last failed stepPOST/runs/{id}/retryTested with an API key
Steps of a run, ordered by step_indexGET/runs/{id}/stepsTested with an API key
Stream run events (Server-Sent Events)GET/runs/{id}/streamTested with an API key
Scrape one pagePOST/scrapeTested with an API key
Web search with evidence (metered as traces.search.results)POST/searchTested with an API key
Forget every search answer the hot cache keeps for the calling personDELETE/search/cache—
List sourcesGET/sourcesTested with an API key
Register a content sourcePOST/sourcesTested with an API key
Read one sourceGET/sources/{id}Tested with an API key
Update a sourcePUT/sources/{id}Tested with an API key
Delete a sourceDELETE/sources/{id}Tested with an API key
Fetch the source now and record a freshness checkPOST/sources/{id}/checkTested with an API key
Freshness and fetch health of a sourceGET/sources/{id}/healthTested with an API key
List agent traces, or read every span of one traceGET/spansTested with an API key
Persisted Traces usage events for the verified organizationGET/usage/eventsTested with an API key
Counts and metered usage for the organizationGET/usage/summaryTested with an API key
List verdictsGET/verdictsTested with an API key
Read one verdictGET/verdicts/{id}Tested with an API key
Verify a claim against evidence: Traces searches and reads, then scores the passagesPOST/verifyTested with an API key
The public Ed25519 key that verifies every webhook Traces sendsGET/webhooks/signing-key—

Api keys

List Traces API keys

GET/v1/traces/api-keys

traces:readTested with an API keytraces_listApiKeys

Needs traces:read at the gateway.

Parameters

  • limitquery · integer

    Page size (backend default 20)

  • offsetquery · integer

Responses

  • 200Keys
    Response fields
    • itemsobject[]required
    • items[].[].platform_idstring
    • items[].[].org_idstring
    • items[].[].workspace_idstring
    • items[].[].project_idstring
    • items[].[].environment_idstring
    • items[].[].idstringrequired
    • items[].[].namestringrequired
    • items[].[].key_prefixstring
    • items[].[].principal_idstring
    • items[].[].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[].[].secretstring

      The key secret. Returned once, on create and rotate only; store it now.

    • items[].[].statusstring

      Set 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"

Create a Traces API key

POST/v1/traces/api-keys

traces:deleteAPI keys refusedtraces_createApiKey

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

  • namestringrequired

    max length 160

  • principal_idstring

    Defaults to the caller

  • principal_kind"human" | "agent" | "service"
  • entitlements"traces:read" | "traces:write" | "traces:delete" | "traces:admin" | "traces:export"[]
  • expires_atstring (date-time)
  • ttl_secondsinteger

    Takes precedence over expires_at min 1

Responses

  • 201Key created; secret is shown once
    Response fields
    • platform_idstring
    • org_idstring
    • workspace_idstring
    • project_idstring
    • environment_idstring
    • idstringrequired
    • namestringrequired
    • key_prefixstring
    • principal_idstring
    • principal_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)
    • secretstring

      The key secret. Returned once, on create and rotate only; store it now.

    • statusstring

      Set 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"
  }'

Read one Traces API key

GET/v1/traces/api-keys/{id}

traces:readFailed with an API keytraces_getApiKey

Needs traces:read at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 200Key
    Response fields
    • platform_idstring
    • org_idstring
    • workspace_idstring
    • project_idstring
    • environment_idstring
    • idstringrequired
    • namestringrequired
    • key_prefixstring
    • principal_idstring
    • principal_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)
    • secretstring

      The key secret. Returned once, on create and rotate only; store it now.

    • statusstring

      Set 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"

Revoke a Traces API key

DELETE/v1/traces/api-keys/{id}

traces:deleteAPI keys refusedtraces_revokeApiKey

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_idstring
    • org_idstring
    • workspace_idstring
    • project_idstring
    • environment_idstring
    • idstringrequired
    • namestringrequired
    • key_prefixstring
    • principal_idstring
    • principal_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)
    • secretstring

      The key secret. Returned once, on create and rotate only; store it now.

    • statusstring

      Set 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"

Rotate

Rotate a Traces API key

POST/v1/traces/api-keys/{id}/rotate

traces:deleteAPI keys refusedtraces_rotateApiKey

Needs traces:delete at the gateway (traces:admin is accepted as a deprecated alias).

Parameters

  • idpath · stringrequired

Responses

  • 200Rotated key; the new secret is shown once
    Response fields
    • platform_idstring
    • org_idstring
    • workspace_idstring
    • project_idstring
    • environment_idstring
    • idstringrequired
    • namestringrequired
    • key_prefixstring
    • principal_idstring
    • principal_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)
    • secretstring

      The key secret. Returned once, on create and rotate only; store it now.

    • statusstring

      Set 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"

Artifacts

Download a stored artifact (for example a screenshot)

GET/v1/traces/artifacts/{id}

traces:readFailed with an API keytraces_getArtifact

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"

Batch

Start a batch scrape job

POST/v1/traces/batch/scrape

traces:writeTested with an API keyIdempotency-Key requiredtraces_createBatchScrape

Needs traces:write at the gateway. Metered per URL.

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; replays return the original result and are metered once

Request body application/json

  • urlstring
  • urlsstring[]

    At least one URL across url and urls is required

  • formatsstring[]
  • formatstring
  • extract_depthstring
  • timeoutnumber
  • webhook_urlstring
  • limitinteger

Responses

  • 200Existing job returned for a replayed Idempotency-Key
    Response fields

    A JSON object.

  • 201Job
    Response fields
    • idstringrequired
    • status"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"required
    • typestring
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • runobject
    • linksobject
    • totalinteger
    • urlsstring[]
  • 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 '{}'

Read a batch scrape job

GET/v1/traces/batch/scrape/{id}

traces:readTested with an API keytraces_getBatchScrape

Needs traces:read at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 200Job
    Response fields
    • idstringrequired
    • status"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"required
    • typestring
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • runobject
    • linksobject
    • totalinteger
    • urlsstring[]
  • 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"

Cancel a batch scrape job

POST/v1/traces/batch/scrape/{id}/cancel

traces:writeTested with an API keytraces_cancelBatchScrape

Needs traces:write at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 200Job
    Response fields
    • idstringrequired
    • status"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"required
    • typestring
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • runobject
    • linksobject
    • totalinteger
    • urlsstring[]
  • 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"

Coding

Fetch documentation chunks for a library

POST/v1/traces/coding/docs

traces:readTested with an API keytraces_getLibraryDocs

Needs traces:read at the gateway.

Request body application/json

  • library_idstring
  • querystring
  • topicstring
  • versionstring
  • tokensinteger

    Maximum 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 '{}'

Resolve a library name to its identity

POST/v1/traces/coding/resolve

traces:readFailed with an API keytraces_resolveLibrary

Needs traces:read at the gateway.

Request body application/json

  • querystring
  • library_namestring
  • platformstring

    npm, 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 '{}'

Crawl

Start a site crawl job

POST/v1/traces/crawl

traces:writeTested with an API keyIdempotency-Key requiredtraces_createCrawl

Needs traces:write at the gateway. Metered as crawl pages requested (up to limit).

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; replays return the original result and are metered once

Request body application/json

  • urlstringrequired

    Public http(s) URL

  • max_depthinteger

    min 1 · max 5

  • max_breadthinteger

    min 0 · max 100

  • limitinteger

    min 1 · max 200

  • instructionsstring
  • select_pathsstring[]
  • extract_depthstring
  • formatstring
  • timeoutnumber
  • webhook_urlstring

Responses

  • 200Existing job returned for a replayed Idempotency-Key
    Response fields

    A JSON object.

  • 201Job
    Response fields
    • idstringrequired
    • status"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"required
    • typestring
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • runobject
    • linksobject
    • urlstring
  • 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"
  }'

Read a crawl job

GET/v1/traces/crawl/{id}

traces:readTested with an API keytraces_getCrawl

Needs traces:read at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 200Job
    Response fields
    • idstringrequired
    • status"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"required
    • typestring
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • runobject
    • linksobject
    • urlstring
  • 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"

Cancel

Cancel a crawl job

POST/v1/traces/crawl/{id}/cancel

traces:writeTested with an API keytraces_cancelCrawl

Needs traces:write at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 200Job
    Response fields
    • idstringrequired
    • status"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"required
    • typestring
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • runobject
    • linksobject
    • urlstring
  • 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"

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

traces:writetraces_cancelResearch

Needs traces:write at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 200The cancelled run with what it found
    Response fields
    • idstring
    • statusstring
    • run_status"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"
    • planobject
    • steersobject[]
    • drafted_sectionsobject[]
    • reportobject

      title, 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"

Cancel a run

POST/v1/traces/runs/{id}/cancel

traces:writeTested with an API keytraces_cancelRun

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"

Evidence

List evidence packs

GET/v1/traces/evidence

traces:readTested with an API keytraces_listEvidence

Needs traces:read at the gateway.

Parameters

  • limitquery · integer

    Page size (backend default 20)

  • offsetquery · integer
  • source_idquery · string
  • run_idquery · string
  • categoryquery · string
  • typequery · string

Responses

  • 200Evidence
    Response fields
    • itemsobject[]required
    • 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/evidence" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Read one evidence pack

GET/v1/traces/evidence/{id}

traces:readTested with an API keytraces_getEvidence

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"

Evidence collected by a run

GET/v1/traces/runs/{id}/evidence

traces:readTested with an API keytraces_getRunEvidence

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"

Extract

Extract page content from URLs

POST/v1/traces/extract

traces:readTested with an API keyIdempotency-Key requiredtraces_extract

Needs traces:read at the gateway. Metered per URL extracted.

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; replays return the original result and are metered once

Request body application/json

  • urlstring

    Public http(s) URL

  • urlsstring[]
  • extract_depthstring
  • formatstring
  • timeoutnumber
  • follow_redirectsboolean

    false: 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.location and metadata.redirect_not_followed: true. Absent or true: redirects are followed (up to 10 hops). default true

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 '{}'

Extract structured data from URLs against a schema

POST/v1/traces/extract/structured

traces:readTested with an API keyIdempotency-Key requiredtraces_extractStructured

Needs traces:read at the gateway. Uses a deterministic parser (metadata.llm_backed is false).

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; replays return the original result and are metered once

Request body application/json

  • urlstring

    Public http(s) URL

  • urlsstring[]
  • schemaobject

    JSON schema describing the fields to extract

  • promptstring
  • extract_depthstring
  • formatstring
  • timeoutnumber

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 '{}'

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

traces:readIdempotency-Key requiredtraces_flightsSearch

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 · stringrequired

    Stable key; a repeat with the same key is refused (409) and never searches or meters twice

Request body application/json

  • slicesobject[]required

    One slice for one-way, two for a return trip

  • slices[].[].originstringrequired

    IATA airport or city code, e.g. JFK or NYC pattern ^[A-Za-z]{3}$

  • slices[].[].destinationstringrequired

    IATA airport or city code, e.g. LIS pattern ^[A-Za-z]{3}$

  • slices[].[].departure_datestring (date)required

    YYYY-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[].[].ageinteger

    min 0 · max 17

  • cabin_class"economy" | "premium_economy" | "business" | "first"
  • max_connectionsinteger

    0 = nonstop only. Default: the airline search's own default (1) min 0 · max 2

  • limitinteger

    Offers 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[]required
    • offers[].[].offer_idstring
    • offers[].[].total_minorinteger
    • offers[].[].currencystring
    • offers[].[].totalstring

      Display price, e.g. $650.00

    • offers[].[].expires_atstring
    • offers[].[].ownerobject
    • offers[].[].titlestring

      Route summary; in test mode it starts TEST (synthetic):

    • offers[].[].whenstring

      First slice, e.g. Thu 10 Dec · 7:05 PM to 7:10 AM +1 · nonstop

    • offers[].[].slicesobject[]
    • offers[].[].conditionsobject
    • offers[].[].mode"live" | "test"

      Same as the answer's mode, on every offer

    • totalintegerrequired
    • consideredinteger
    • mode"live" | "test"required
    • providerstringrequired
    • search_onlybooleanrequired
    • noticestring
    • widenedobject[]

      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[].[].askedstringrequired

      The airport code asked for, e.g. DAL pattern ^[A-Z]{3}$

    • widened[].[].searchedstringrequired

      The city code searched in its place, e.g. DFW pattern ^[A-Z]{3}$

    • widened[].[].citystring

      The city's name, e.g. Dallas

    • coveragestring

      Present 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"
      }
    ]
  }'

Health

Traces liveness

GET/v1/traces/health

Tested with an API keyNo key neededtraces_getHealth

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"

Freshness and fetch health of a source

GET/v1/traces/sources/{id}/health

traces:readTested with an API keytraces_getSourceHealth

Needs traces:read at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 200Source health
    Response fields
    • source_idstringrequired
    • statusstringrequired
    • fetch_countinteger
    • last_fetched_atstring (date-time)
    • last_checked_atstring (date-time)
    • content_hashstring
    • content_typestring
    • etagstring
    • last_modifiedstring
    • response_codeinteger
    • error_messagestring
    • staleness_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"

Ingest

Publish an evidence pack for ingestion

POST/v1/traces/ingest

traces:writeSigned-in sessiontraces_ingestEvidence

Needs traces:write at the gateway. Returns 503 when ingestion is not configured on the Traces deployment.

Request body application/json

  • evidence_pack_idstringrequired
  • run_idstringrequired
  • category"code" | "news" | "wiki" | "research" | "auto"
  • querystringrequired
  • created_atstring (date-time)
  • sourcesobject[]
  • sources[].[].idstringrequired
  • sources[].[].urlstringrequired
  • documentsobject[]
  • documents[].[].idstringrequired
  • documents[].[].source_idstringrequired
  • documents[].[].contentstringrequired
  • citationsobject[]
  • citations[].[].idstringrequired
  • citations[].[].document_idstringrequired
  • citations[].[].excerptstringrequired
  • candidatesobject[]
  • candidates[].[].idstringrequired
  • candidates[].[].namestringrequired
  • candidates[].[].definitionstringrequired
  • candidates[].[].confidencenumber

    min 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"
  }'

Decide whether existing knowledge needs a Traces fallback

POST/v1/traces/ingest/evaluate

traces:writeTested with an API keytraces_evaluateIngestFallback

Needs traces:write at the gateway.

Request body application/json

  • resultsobject[]
  • results[].[].primitive_idstring
  • results[].[].scorenumber
  • results[].[].verification_confidencenumber
  • results[].[].evidence_ageinteger

    Nanoseconds

  • results[].[].domainstring
  • category"code" | "news" | "wiki" | "research" | "auto"
  • thresholdsobject

    Optional 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 '{}'

Ingestion status of an evidence pack

GET/v1/traces/ingest/status/{id}

traces:readSigned-in sessiontraces_getIngestStatus

Needs traces:read at the gateway.

Parameters

  • idpath · stringrequired

    Evidence 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"

Map

Discover URLs on a site

POST/v1/traces/map

traces:readTested with an API keyIdempotency-Key requiredtraces_map

Needs traces:read at the gateway. Metered per URL returned.

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; replays return the original result and are metered once

Request body application/json

  • urlstringrequired
  • max_depthinteger

    min 1 · max 5

  • max_breadthinteger

    min 0 · max 100

  • limitinteger

    min 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"
  }'

Monitors

List monitors

GET/v1/traces/monitors

traces:readTested with an API keytraces_listMonitors

Needs traces:read at the gateway.

Parameters

  • limitquery · integer

    Page size (backend default 20)

  • offsetquery · integer
  • statusquery · "active" | "paused" | "triggered" | "error"
  • source_idquery · string

Responses

  • 200Monitors
    Response fields
    • itemsobject[]required
    • items[].[].idstringrequired
    • items[].[].tenant_idstring
    • items[].[].namestringrequired
    • items[].[].descriptionstring
    • items[].[].source_idstring
    • items[].[].querystring
    • items[].[].conditionobject
    • items[].[].check_interval_secondsinteger
    • items[].[].status"active" | "paused" | "triggered" | "error"required
    • items[].[].last_checked_atstring (date-time)
    • items[].[].last_triggered_atstring (date-time)
    • items[].[].webhook_urlstring
    • items[].[].created_atstring (date-time)
    • items[].[].updated_atstring (date-time)
    • items[].[].platform_idstring
    • items[].[].org_idstring
    • items[].[].workspace_idstring
    • items[].[].project_idstring
    • items[].[].environment_idstring
    • 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/monitors" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a monitor

POST/v1/traces/monitors

traces:writeTested with an API keytraces_createMonitor

Needs traces:write at the gateway.

Request body application/json

  • namestringrequired

    max length 256

  • descriptionstring
  • source_idstring
  • querystring

    max length 10000

  • conditionobjectrequired

    Alert condition; the backend requires it to be non-empty

  • check_interval_secondsinteger

    Defaults to 3600

  • webhook_urlstring

    Public https URL

Responses

  • 201Monitor created
    Response fields
    • idstringrequired
    • tenant_idstring
    • namestringrequired
    • descriptionstring
    • source_idstring
    • querystring
    • conditionobject
    • check_interval_secondsinteger
    • status"active" | "paused" | "triggered" | "error"required
    • last_checked_atstring (date-time)
    • last_triggered_atstring (date-time)
    • webhook_urlstring
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • platform_idstring
    • org_idstring
    • workspace_idstring
    • project_idstring
    • environment_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": {}
  }'

Read one monitor

GET/v1/traces/monitors/{id}

traces:readTested with an API keytraces_getMonitor

Needs traces:read at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 200Monitor
    Response fields
    • idstringrequired
    • tenant_idstring
    • namestringrequired
    • descriptionstring
    • source_idstring
    • querystring
    • conditionobject
    • check_interval_secondsinteger
    • status"active" | "paused" | "triggered" | "error"required
    • last_checked_atstring (date-time)
    • last_triggered_atstring (date-time)
    • webhook_urlstring
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • platform_idstring
    • org_idstring
    • workspace_idstring
    • project_idstring
    • environment_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"

Update a monitor

PUT/v1/traces/monitors/{id}

traces:writeTested with an API keytraces_updateMonitor

Needs traces:write at the gateway.

Parameters

  • idpath · stringrequired

Request body application/json

  • namestring
  • descriptionstring
  • source_idstring
  • querystring
  • conditionobject
  • check_interval_secondsinteger
  • status"active" | "paused" | "triggered" | "error"
  • webhook_urlstring

Responses

  • 200Updated monitor
    Response fields
    • idstringrequired
    • tenant_idstring
    • namestringrequired
    • descriptionstring
    • source_idstring
    • querystring
    • conditionobject
    • check_interval_secondsinteger
    • status"active" | "paused" | "triggered" | "error"required
    • last_checked_atstring (date-time)
    • last_triggered_atstring (date-time)
    • webhook_urlstring
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • platform_idstring
    • org_idstring
    • workspace_idstring
    • project_idstring
    • environment_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 '{}'

Delete a monitor

DELETE/v1/traces/monitors/{id}

traces:deleteTested with an API keytraces_deleteMonitor

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"

Alerts

List alerts raised by a monitor

GET/v1/traces/monitors/{id}/alerts

traces:readTested with an API keytraces_listMonitorAlerts

Needs traces:read at the gateway.

Parameters

  • idpath · stringrequired
  • limitquery · integer

    Page size (backend default 20)

  • offsetquery · integer
  • acknowledgedquery · boolean

Responses

  • 200Alerts
    Response fields
    • itemsobject[]required
    • items[].[].idstringrequired
    • items[].[].monitor_idstringrequired
    • items[].[].run_idstring
    • items[].[].alert_typestring
    • items[].[].detailsobject
    • items[].[].acknowledgedboolean
    • items[].[].acknowledged_atstring (date-time)
    • items[].[].created_atstring (date-time)
    • items[].[].platform_idstring
    • items[].[].org_idstring
    • items[].[].workspace_idstring
    • items[].[].project_idstring
    • items[].[].environment_idstring
    • 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/monitors/$ID/alerts" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Acknowledge a monitor alert

POST/v1/traces/monitors/{id}/alerts/{alert_id}/acknowledge

traces:writeTested with an API keytraces_acknowledgeMonitorAlert

Needs traces:write at the gateway.

Parameters

  • idpath · stringrequired
  • alert_idpath · stringrequired

Responses

  • 200Acknowledged alert
    Response fields
    • idstringrequired
    • monitor_idstringrequired
    • run_idstring
    • alert_typestring
    • detailsobject
    • acknowledgedboolean
    • acknowledged_atstring (date-time)
    • created_atstring (date-time)
    • platform_idstring
    • org_idstring
    • workspace_idstring
    • project_idstring
    • environment_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"

Check

Evaluate a monitor now

POST/v1/traces/monitors/{id}/check

traces:writeTested with an API keytraces_checkMonitor

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"
    • monitorobject
    • monitor.idstringrequired
    • monitor.tenant_idstring
    • monitor.namestringrequired
    • monitor.descriptionstring
    • monitor.source_idstring
    • monitor.querystring
    • monitor.conditionobject
    • monitor.check_interval_secondsinteger
    • monitor.status"active" | "paused" | "triggered" | "error"required
    • monitor.last_checked_atstring (date-time)
    • monitor.last_triggered_atstring (date-time)
    • monitor.webhook_urlstring
    • monitor.created_atstring (date-time)
    • monitor.updated_atstring (date-time)
    • monitor.platform_idstring
    • monitor.org_idstring
    • monitor.workspace_idstring
    • monitor.project_idstring
    • monitor.environment_idstring
    • last_checked_atstring (date-time)
    • triggeredboolean
    • alertobject
    • alert.idstringrequired
    • alert.monitor_idstringrequired
    • alert.run_idstring
    • alert.alert_typestring
    • alert.detailsobject
    • alert.acknowledgedboolean
    • alert.acknowledged_atstring (date-time)
    • alert.created_atstring (date-time)
    • alert.platform_idstring
    • alert.org_idstring
    • alert.workspace_idstring
    • alert.project_idstring
    • alert.environment_idstring
    • errorstring
  • 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"

Fetch the source now and record a freshness check

POST/v1/traces/sources/{id}/check

traces:writeTested with an API keytraces_checkSource

Needs traces:write at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 201Freshness check recorded
    Response fields
    • idstring
    • source_idstring
    • checked_atstring (date-time)
    • content_changedboolean
    • previous_hashstring
    • current_hashstring
    • response_codeinteger
    • check_methodstring
    • next_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"

Paper

Look up one paper by DOI, arXiv id or OpenAlex id, with references and citing papers

POST/v1/traces/paper

traces:readIdempotency-Key optionaltraces_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 · string

    Optional stable key; a replay returns the original result and is metered once

Request body application/json

  • idstringrequired

    min length 1 · max length 300

  • referencesboolean

    default false

  • cited_byboolean

    default false

  • limitinteger

    min 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"
  }'

Papers

Search papers across the open scholarly indexes (metered as one traces.search.requests)

POST/v1/traces/papers

traces:readIdempotency-Key optionaltraces_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 · string

    Optional stable key; a replay returns the original result and is metered once

Request body application/json

  • qstringrequired

    The question or topic min length 1 · max length 300

  • year_frominteger

    min 1600 · max 2200

  • year_tointeger

    min 1600 · max 2200

  • venuestring

    Keep papers whose venue contains this max length 200

  • open_access_onlyboolean

    default false

  • sort"relevance" | "citations" | "recent"

    default "relevance"

  • limitinteger

    min 1 · max 50 · default 20

  • fields"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"
  }'

Picture

Fetch one picture, cleaned

POST/v1/traces/picture

traces:readtraces_fetchPicture

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

  • urlstringrequired

    The picture's https address max length 2048

Responses

  • 200The cleaned picture
    Response fields
    • content_type"image/png" | "image/jpeg" | "image/webp" | "image/gif"required
    • sizeintegerrequired
    • widthintegerrequired
    • heightintegerrequired
    • final_urlstringrequired
    • bytes_b64stringrequired

      The cleaned picture, base64

    • strippedinteger

      Metadata 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"
  }'

Research

Research: a cited answer from verified quotes (quick), or a deep research run (mode deep: 202 + id, events, steers)

POST/v1/traces/research

traces:readIdempotency-Key requiredtraces_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 · stringrequired

    Stable key; a repeat with the same key is refused (409) and never re-runs or meters twice

Request body application/json

  • querystringrequired

    min 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

  • contextstring

    The person's earlier words, used to resolve references in planning and the answer only; never a source, never logged max length 4000

  • max_queriesinteger

    Clamped to 3-8 (default 6) min 1 · max 50

  • max_pagesinteger

    quick: clamped to 5-15 (default 10). deep: 50-300 sources (default 300) min 1 · max 500

  • timeout_secondsinteger

    quick: 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"
  • countrystring

    min length 2 · max length 2

  • caller_refstring

    Opaque tag echoed in the result and in every research meter event; never personal data pattern ^[A-Za-z0-9_-]{1,64}$

  • max_roundsinteger

    deep 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
    • idstringrequired
    • caller_refstring
    • querystring
    • modestringrequired
    • status"complete" | "partial" | "failed"required
    • answerstringrequired

      [n] markers resolve to citations[n-1]

    • citationsobject[]required
    • citations[].[].ninteger
    • citations[].[].claim_idstring
    • citations[].[].source_idstring
    • citations[].[].urlstring
    • citations[].[].titlestring
    • citations[].[].quotestring
    • claimsobject[]required
    • claims[].[].idstring
    • claims[].[].textstring
    • claims[].[].quotestring
    • claims[].[].source_idstring
    • claims[].[].urlstring
    • claims[].[].verifiedboolean
    • sourcesobject[]required
    • sources[].[].idstring
    • sources[].[].urlstring
    • sources[].[].final_urlstring
    • sources[].[].titlestring
    • sources[].[].domainstring
    • sources[].[].snippetstring
    • sources[].[].published_atstring
    • sources[].[].scorenumber
    • sources[].[].readboolean
    • sources[].[].queriesstring[]
    • sources[].[].provider"brave" | "traces"
    • dropped_claimsobject[]
    • dropped_claims[].[].textstring
    • dropped_claims[].[].quotestring
    • dropped_claims[].[].urlstring
    • dropped_claims[].[].reasonstring
    • skipped_sourcesobject[]
    • skipped_sources[].[].urlstring
    • skipped_sources[].[].reasonstring
    • skipped_sources[].[].detailstring
    • queriesstring[]
    • partialobject
    • partial.stagestring
    • partial.reasonstring
    • usageobject
    • timings_msobject
    • created_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[].[].enginestring
    • engines[].[].searchesinteger
    • engines[].[].answeredinteger
    • engines[].[].resultsinteger
    • engines[].[].failedobject
  • 202mode deep: the run is accepted and works in the background
    Response fields
    • idstringrequired
    • statusstringrequired
    • modestringrequired
    • events_urlstring
    • linksobject
  • 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"
  }'

A deep research run: plan, steers, drafted sections, and the report when written

GET/v1/traces/research/{id}

traces:readtraces_getResearch

Needs traces:read at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 200The run as it stands
    Response fields
    • idstring
    • statusstring
    • run_status"queued" | "running" | "paused" | "completed" | "failed" | "cancelled"
    • planobject
    • steersobject[]
    • drafted_sectionsobject[]
    • reportobject

      title, 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"

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

traces:readtraces_researchEvents

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 · stringrequired
  • timeoutquery · integer

    Stream timeout in seconds (default and max 300)

  • last_event_idquery · string

    Resume after this event id

  • Last-Event-IDheader · string

    Resume 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"

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

traces:writetraces_steerResearch

Needs traces:write at the gateway.

Parameters

  • idpath · stringrequired

Request body application/json

  • instructionstringrequired

    min length 1 · max length 500

Responses

  • 202The steer is recorded
    Response fields
    • steer_idstring
    • applies_at"next_reflection" | "another_pass"
    • steers_usedinteger
    • steers_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"
  }'

Runs

List runs in the verified organization

GET/v1/traces/runs

traces:readTested with an API keytraces_listRuns

Needs traces:read at the gateway.

Parameters

  • limitquery · integer

    Page size (backend default 20)

  • offsetquery · integer
  • statusquery · "queued" | "running" | "paused" | "completed" | "failed" | "cancelled"
  • typequery · string

    Run 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"

Create a research run

POST/v1/traces/runs

traces:writeTested with an API keyIdempotency-Key requiredtraces_createRun

Needs traces:write at the gateway.

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; replays return the original result and are metered once

Request body application/json

  • typestringrequired

    Run type, for example deep_research

  • querystring

    max length 4000

  • categorystring
  • configobject

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"
  }'

Read one run

GET/v1/traces/runs/{id}

traces:readTested with an API keytraces_getRun

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"

Pause

Pause a run

POST/v1/traces/runs/{id}/pause

traces:writeTested with an API keytraces_pauseRun

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"

Resume

Resume a paused run

POST/v1/traces/runs/{id}/resume

traces:writeTested with an API keytraces_resumeRun

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"

Retry

Retry a failed run from its last failed step

POST/v1/traces/runs/{id}/retry

traces:writeTested with an API keytraces_retryRun

Needs traces:write at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 200Retry started
    Response fields
    • statusstring
    • retry_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"

Steps

Steps of a run, ordered by step_index

GET/v1/traces/runs/{id}/steps

traces:readTested with an API keytraces_getRunSteps

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"

Stream

Stream run events (Server-Sent Events)

GET/v1/traces/runs/{id}/stream

traces:readTested with an API keytraces_streamRun

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 · stringrequired
  • timeoutquery · integer

    Stream timeout in seconds (default 30, max 300)

  • Last-Event-IDheader · string

    Resume after this event id

Responses

  • 200Server-Sent Events: run events as text/event-stream; the stream ends at timeout or 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"

Scrape

Scrape one page

POST/v1/traces/scrape

traces:readTested with an API keyIdempotency-Key requiredtraces_scrape

Needs traces:read at the gateway. Metered per page; browser rendering and screenshots are metered separately.

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; replays return the original result and are metered once

Request body application/json

  • urlstringrequired
  • formatstring
  • formatsstring[]
  • json_schemaobject
  • extract_depthstring
  • render_mode"static" | "browser"
  • wait_forinteger

    min 0

  • actionsobject[]
  • device"desktop" | "mobile"
  • locationobject
  • proxystring
  • include_raw_htmlboolean
  • include_linksboolean
  • include_imagesboolean
  • include_screenshotboolean
  • only_main_contentboolean
  • timeoutnumber

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"
  }'

Forget every search answer the hot cache keeps for the calling person

DELETE/v1/traces/search/cache

traces:readtraces_deleteSearchCache

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"

Sources

List sources

GET/v1/traces/sources

traces:readTested with an API keytraces_listSources

Needs traces:read at the gateway.

Parameters

  • limitquery · integer

    Page size (backend default 20)

  • offsetquery · integer
  • statusquery · "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[]required
    • items[].[].idstringrequired
    • items[].[].urlstringrequired
    • items[].[].source_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"required
    • items[].[].titlestring
    • items[].[].domainstring
    • items[].[].discovered_atstring (date-time)
    • items[].[].last_fetched_atstring (date-time)
    • items[].[].last_checked_atstring (date-time)
    • items[].[].content_hashstring
    • items[].[].status"discovered" | "fetched" | "processing" | "processed" | "error" | "unavailable"required
    • items[].[].fetch_countinteger
    • items[].[].error_messagestring
    • items[].[].metadataobject
    • items[].[].created_atstring (date-time)
    • items[].[].updated_atstring (date-time)
    • items[].[].platform_idstring
    • items[].[].org_idstring
    • items[].[].workspace_idstring
    • items[].[].project_idstring
    • items[].[].environment_idstring
    • 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/sources" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Register a content source

POST/v1/traces/sources

traces:writeTested with an API keytraces_createSource

Needs traces:write at the gateway.

Request body application/json

  • urlstringrequired

    Public http(s) URL max length 2048

  • source_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"required
  • titlestring

    max length 512

  • metadataobject

Responses

  • 201Source created
    Response fields
    • idstringrequired
    • urlstringrequired
    • source_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"required
    • titlestring
    • domainstring
    • discovered_atstring (date-time)
    • last_fetched_atstring (date-time)
    • last_checked_atstring (date-time)
    • content_hashstring
    • status"discovered" | "fetched" | "processing" | "processed" | "error" | "unavailable"required
    • fetch_countinteger
    • error_messagestring
    • metadataobject
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • platform_idstring
    • org_idstring
    • workspace_idstring
    • project_idstring
    • environment_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"
  }'

Read one source

GET/v1/traces/sources/{id}

traces:readTested with an API keytraces_getSource

Needs traces:read at the gateway.

Parameters

  • idpath · stringrequired

Responses

  • 200Source
    Response fields
    • idstringrequired
    • urlstringrequired
    • source_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"required
    • titlestring
    • domainstring
    • discovered_atstring (date-time)
    • last_fetched_atstring (date-time)
    • last_checked_atstring (date-time)
    • content_hashstring
    • status"discovered" | "fetched" | "processing" | "processed" | "error" | "unavailable"required
    • fetch_countinteger
    • error_messagestring
    • metadataobject
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • platform_idstring
    • org_idstring
    • workspace_idstring
    • project_idstring
    • environment_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"

Update a source

PUT/v1/traces/sources/{id}

traces:writeTested with an API keytraces_updateSource

Needs traces:write at the gateway.

Parameters

  • idpath · stringrequired

Request body application/json

  • titlestring
  • source_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"
  • status"discovered" | "fetched" | "processing" | "processed" | "error" | "unavailable"
  • content_hashstring
  • error_messagestring
  • metadataobject

Responses

  • 200Updated source
    Response fields
    • idstringrequired
    • urlstringrequired
    • source_type"documentation" | "academic_paper" | "code_repository" | "encyclopedia" | "standard" | "web" | "dataset" | "news_feed" | "api_reference"required
    • titlestring
    • domainstring
    • discovered_atstring (date-time)
    • last_fetched_atstring (date-time)
    • last_checked_atstring (date-time)
    • content_hashstring
    • status"discovered" | "fetched" | "processing" | "processed" | "error" | "unavailable"required
    • fetch_countinteger
    • error_messagestring
    • metadataobject
    • created_atstring (date-time)
    • updated_atstring (date-time)
    • platform_idstring
    • org_idstring
    • workspace_idstring
    • project_idstring
    • environment_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 '{}'

Delete a source

DELETE/v1/traces/sources/{id}

traces:deleteTested with an API keytraces_deleteSource

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"

Spans

List agent traces, or read every span of one trace

GET/v1/traces/spans

traces:readTested with an API keytraces_listSpans

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 · string

    32 lowercase hex characters; returns the spans of this one trace

  • sourcequery · string

    Only traces exported by this source, e.g. henry

  • limitquery · integer

    Traces per page (default 50)

  • page_tokenquery · string

    next_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"

Usage

Persisted Traces usage events for the verified organization

GET/v1/traces/usage/events

traces:readTested with an API keytraces_listUsageEvents

Needs traces:read at the gateway.

Parameters

  • limitquery · integer

    Page size (backend default 20)

  • offsetquery · integer
  • meter_idquery · string
  • fromquery · string

    RFC 3339 timestamp or YYYY-MM-DD

  • toquery · string

    RFC 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"

Counts and metered usage for the organization

GET/v1/traces/usage/summary

traces:readTested with an API keytraces_getUsageSummary

Needs traces:read at the gateway.

Parameters

  • fromquery · string

    RFC 3339 timestamp or YYYY-MM-DD

  • toquery · string

    RFC 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"

Verdicts

List verdicts

GET/v1/traces/verdicts

traces:readTested with an API keytraces_listVerdicts

Needs traces:read at the gateway.

Parameters

  • limitquery · integer

    Page size (backend default 20)

  • offsetquery · integer
  • candidate_primitive_idquery · string
  • verdictquery · string

Responses

  • 200Verdicts
    Response fields
    • itemsobject[]required
    • 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/verdicts" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Read one verdict

GET/v1/traces/verdicts/{id}

traces:readTested with an API keytraces_getVerdict

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"

Verify

Verify a claim against evidence: Traces searches and reads, then scores the passages

POST/v1/traces/verify

traces:writeTested with an API keytraces_verifyClaim

Needs traces:write at the gateway.

Request body application/json

  • claimstringrequired

    min length 1

  • domainstring
  • categorystring

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"
  }'

Webhooks

The public Ed25519 key that verifies every webhook Traces sends

GET/v1/traces/webhooks/signing-key

traces:readtraces_getWebhookSigningKey

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"

L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support