Sources

documents, cited sources, new material, web research, earlier conversation

documentv1.0.0

a document ingested, or its claims verified

Content you can point at rather than upload: a URL the service pulls into the project's memory on a detached task.

POST/v1/api/actionsAPI keyPay-as-you-go

Ingest a document by reference

Point the service at a URL or file reference; it pulls the document into the project's corpus.

Dispatch only starts the ingestion: the source ingests on a detached task the response names, so poll that task — or watch the file stream — rather than treating the dispatch as a completed ingest.

Dispatched as `{"action": "document_ingest", "input": {"source": "..."}}`.

Body

FieldTypeRequiredDescription
actionstringrequiredMust be `"document_ingest"`.
input.sourcestringrequiredDocument url or file reference to ingest.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/api/actions" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "document_ingest",
  "input": {
    "source": "https://example.com/spec/envelope.pdf"
  }
}'
Response · 200
{
  "action": "document_ingest",
  "result": {
    "status": "running",
    "taskId": "tk_2Xm9Qd"
  }
}

Errors

StatuserrorWhen
400source is requiredThe input named nothing to ingest.
403action not available to an API keyThe key's tier does not reach this action.
400invalid request bodyThe body is not JSON, or exceeds the 1 MB request-body cap.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
project-write

Ingest a document

document_ingest: Pull a document into the project's corpus so its factions, cells, and entities feed the memory graph.Pay-as-you-goanswers inline

FieldTypeRequiredDescription
sourcestringrequireddocument url or file reference to ingest

Contract Dispatch only starts the ingestion: the source ingests on a detached task the response names, so poll that task rather than treating the dispatch as a completed ingest.

Contract One source, one page. Following links to the rest of a site is the research pass's job, so a whole site asked for here lands only what the named URL itself says.

read

Verify claims

document_verification: Extract the checkable claims from an ingested document and return a verdict ledger: per claim, whether the project's authority corpus SUPPORTS it (with the exact span), CONTRADICTS it (with the span), leaves it UNSUPPORTED (the corpus does not cover it — not a finding that it is false), or ABSTAINS when the evidence is too weak to call. Each row carries the exact locus it turned on. Scoped to the project the connection is bound to.Teamanswers inline

FieldTypeRequiredDescription
documentIdstringrequiredthe subject document to verify — the fileId ingestion handed back

Contract The ledger is three-valued, never two: UNSUPPORTED means the corpus does not cover the claim — a statement about coverage, not a finding that the claim is false — and is distinct from CONTRADICTED, which means the corpus asserts the opposite and carries the contradicting span.

Contract A verdict the evidence cannot support at the confidence threshold is ABSTAIN, never a forced call: a low-confidence resolve returns abstain rather than manufacturing a contradiction.

Contract Every SUPPORTED or CONTRADICTED row carries the exact locus it turned on — the faction and its SourceLocation anchor — so the cited span opens the precise place in the corpus. An UNSUPPORTED or ABSTAIN row cites nothing by design.

Contract The authority corpus is the project the connection is bound to, read as ground truth only — generated content is never cited as authority.

sourcev1.0.0

read a cited source past its findings

read

Read a cited source past its findings

source_read: Read one asked value out of the sources behind named sections when their findings do not hold it: the sections' findings and the run's spine first, then their stored text, then the one page, window or row range each cites, then the whole source. Each step runs only when the cheaper one found nothing, and a page or source read is handed to ingestion so the next question reads it from findings.Teamruns on a thread, stream it

FieldTypeRequiredDescription
factionIdsstring[]requiredthe sections the value is in, at most three
fieldstringrequiredthe value asked for, in the words a finding would name it
questionstringrequiredthe question the value answers
notInferablestringoptionalwhy no finding, dataset query or research supplies it; without it nothing past the stored text is read

Contract Refused unless every named section's text scores at the bar for the question and names the field in its overview, heading or asset name.

Contract Findings that already hold the field answer the call and nothing is read; a page or source read also needs the attestation and the run's budget for them.

Contract Every call is recorded on the run, refused or not, with the level it reached and whether it found the value.

ingestv1.0.0

read new material into the project

Getting bytes in, and watching them land. One call takes any number of files and answers the project's ingestion lease; a second says where that lease stands. For bytes you hold elsewhere, hand over signed URLs and the service fetches them, or content-address locally and upload only the chunks the server is missing, so a 2 GB file and a one-line edit to it cost about the same on the wire.

POST/v1/projects/{projectId}/ingestAPI keyPay-as-you-go

Ingest files

Read one file or a whole corpus into a project, in a single call, and get back the lease reading it.

One call, any number of files. The bytes ride the request, so there is no chunk handshake to run and no upload URL to sign — a whole corpus lands in as many calls as its size needs, not as many calls as it has files.

Every call for one project answers the SAME `leaseId`, because a project has exactly one ingestion lease: a second batch JOINS the reading already running rather than starting a rival one. Three uploads, one lease, one thing to watch.

The reading itself happens inside the platform, not on your key. The rate limit prices your CALLS, and this is one call — the model work behind it draws no request from your bucket.

A refusal is per file and never stops the rest of the call. Every refusal names its path and says why. A credential-shaped file is left on disk unless you name that exact path with `includeSecret`.

A path the project already holds REPLACES its own record — same file id, previous reading retired — so re-sending a changed file never leaves two copies of it in the project.

Body

FieldTypeRequiredDescription
filesobject[]requiredThe files to read in.
files[].pathstringrequiredPath relative to the project root.
files[].contentstringrequiredThe file's bytes, base64.
files[].contentTypestringoptionalDefaults from the path's extension.
files[].includeSecretbooleanoptionalRead this one path despite its shape.
intentstringoptionalWhat this batch is for, applied once it has landed.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/projects/p7Kd2mQx/ingest" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "files": [
    {
      "content": "IyBDaGVja291dAo=",
      "contentType": "text/markdown",
      "path": "specs/checkout.md"
    }
  ],
  "version": 1
}'
Response · 202
{
  "accepted": [
    {
      "fileId": "4mHqZ1nR8vTbC0sWyLpAeGkJ3dXfU6iO2rN",
      "path": "specs/checkout.md",
      "status": "queued"
    }
  ],
  "leaseId": "p7Kd2mQx",
  "projectId": "p7Kd2mQx",
  "refused": [
    {
      "path": ".env",
      "reason": "this one looks like it holds a secret, so it is left alone"
    }
  ],
  "version": 1
}

Errors

StatuserrorWhen
400this call carries no filesThe body named no files.
403editor access requiredYou can read the project but not write to it.
404project not foundThe project does not exist, or you have no access to it. Projects are non-enumerable, so a denied read is indistinguishable from a missing one.
413this request was too large to read; send fewer files at a timeOne call carried more than 24 MB. Split the corpus; the lease is the same either way.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
GET/v1/projects/{projectId}/ingestAPI keyPay-as-you-go

Watch an ingestion

Ask where the project's ingestion lease stands: what it took, what is left, and what failed.

Keyed on the lease, not on a file. However many files you sent and in however many calls, this is the one thing to poll — which is what keeps watching an ingestion from costing a request per file.

`enqueued` is everything this lease has taken since it opened, `remaining` what it has not driven yet. A project with nothing in flight holds no lease and answers `active: false` with every count at zero, which is how a finished ingestion reads.

`failed` names the project's files whose reading errored, each carrying why in the words you can act on.

Request · curl
curl -X GET "https://runlogai.com/runlogapi/projects/p7Kd2mQx/ingest" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx"
Response · 200
{
  "active": true,
  "completed": 375,
  "enqueued": 412,
  "failed": [],
  "leaseId": "p7Kd2mQx",
  "pending": [
    {
      "fileId": "4mHqZ1nR8vTbC0sWyLpAeGkJ3dXfU6iO2rN",
      "path": "specs/checkout.md",
      "percent": 62,
      "phase": "Understanding entities (3/8)",
      "status": "processing"
    }
  ],
  "projectId": "p7Kd2mQx",
  "remaining": 37,
  "version": 1
}

Errors

StatuserrorWhen
404project not foundThe project does not exist, or you have no access to it. Projects are non-enumerable, so a denied read is indistinguishable from a missing one.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
POST/v1/projects/{projectId}/files/importAPI keyPay-as-you-go

Import from signed URLs

Hand the service a list of signed URLs; it fetches each one and ingests it into the named project.

For files already in your own bucket. You never move the bytes: sign a read URL per object with whatever expiry you are comfortable with, post the list, and the service pulls each one directly from your storage.

The call returns as soon as the batch is accepted, one file record per source, each starting at `queued`. Ingestion is asynchronous — watch it settle on the file stream rather than blocking on this response.

A URL that has expired, 404s, or exceeds the per-file ceiling fails that source alone and is reported by name in `failed`. The rest of the batch still lands, so a bad URL in a list of two hundred does not cost you the batch.

Content is addressed after the fetch, so importing an object you have already ingested stores no new bytes and re-registering the same content is idempotent.

Path parameters

FieldTypeRequiredDescription
projectIdstringrequiredThe project the files land in.

Body

FieldTypeRequiredDescription
sourcesobject[]requiredThe objects to fetch, up to 500 per call.
sources[].urlstringrequiredA signed, time-limited read URL. GCS, S3, and any HTTPS URL that serves the bytes without further auth.
sources[].namestringoptionalFile name to store it under. Defaults to the URL's last path segment with its query stripped.
sources[].filepathstringoptionalFolder to place it in, as a `/`-joined relative path. Absent means the project root.
sources[].titlestringoptionalDisplay title, if it should differ from the file name.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/projects/p7Kd2mQx/files/import" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "sources": [
    {
      "filepath": "drawings",
      "url": "https://storage.googleapis.com/acme-drawings/site-plan.pdf?X-Goog-Signature=…"
    },
    {
      "filepath": "drawings",
      "name": "north-elevation.png",
      "url": "https://storage.googleapis.com/acme-drawings/elevation.png?X-Goog-Signature=…"
    }
  ]
}'
Response · 202
{
  "accepted": 2,
  "failed": [],
  "files": [
    {
      "fileId": "4mHqZ1nR8vTbC0sWyLpAeGkJ3dXfU6iO2rN",
      "filepath": "drawings",
      "name": "site-plan.pdf",
      "status": "queued"
    },
    {
      "fileId": "Yt4RcVbNm2QaZsXdCfVgBhNjMkLoPiUyTrE",
      "filepath": "drawings",
      "name": "north-elevation.png",
      "status": "queued"
    }
  ]
}

Errors

StatuserrorWhen
400sources is requiredThe body named no sources, or more than 500.
403editor access requiredYou can read the project but not write to it.
404project not foundThe project does not exist, or you have no access to it. Projects are non-enumerable, so a denied read is indistinguishable from a missing one.
413file too largeA fetched object exceeds the per-file ceiling. Reported per source; the batch still lands.
400invalid request bodyThe body is not JSON, or exceeds the 1 MB request-body cap.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
POST/v1/projects/{projectId}/filesAPI keyPay-as-you-go

Register an uploaded file

Record the file against its ordered chunk ids and queue its first ingestion pass.

This is step 4 of the large-file diff flow, and the only step that writes a record. Call it after every missing chunk body has landed in storage; registering against a chunk that is not stored leaves a file whose ingestion cannot drain.

`filepath` is the folder, not the file name — the two are separate fields. Directories are never records: the project tree is read back off these strings, so a folder exists exactly as long as a file claims it.

The response returns immediately with `status: "queued"`. Ingestion is asynchronous; poll the file record or subscribe to the file stream to watch it settle.

Keep the `fileId` this returns. It is what you tether a later retrieval to, and once the file reaches `ready` it is also how you read back the entity names its ingestion derived.

Path parameters

FieldTypeRequiredDescription
projectIdstringrequiredThe project the file lands in.

Body

FieldTypeRequiredDescription
fileIdstringrequiredThe derived file id. For a single-chunk file this IS the chunk id; for a multi-chunk file it is the base62 SHA-256 of the ordered chunk ids joined by newlines.
namestringrequiredFile name including its extension, e.g. `Router.swift`.
chunkIdsstring[]requiredThe ordered chunk ids whose bodies reassemble the file.
extstringoptionalLowercase extension without the dot. Must match the `ext` sent to `chunks/missing`.
fileTypestringoptionalCoarse class, e.g. `code`, `document`, `table`.
fileSizeintegeroptionalTotal bytes, for display and for the per-file size ceiling.
filepathstringoptionalThe file's folder relative to the project root. `""` is the root. A folder upload sends each file's own directory here.
chunkingstringoptional`""` for a single-chunk file, `"sections"` when each chunk is independently a valid file of the same extension, `"bytes"` for a raw byte split that only reassembles in order.
intentstringoptionalDeclared purpose, e.g. `"public API surface"`, applied after the first pass.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/projects/p7Kd2mQx/files" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "chunkIds": [
    "4mHqZ1nR8vTbC0sWyLpAeGkJ3dXfU6iO2rN"
  ],
  "chunking": "",
  "ext": "swift",
  "fileId": "4mHqZ1nR8vTbC0sWyLpAeGkJ3dXfU6iO2rN",
  "fileSize": 41822,
  "fileType": "code",
  "filepath": "Sources/Net",
  "name": "Router.swift"
}'
Response · 200
{
  "chunkIds": [
    "4mHqZ1nR8vTbC0sWyLpAeGkJ3dXfU6iO2rN"
  ],
  "chunking": "",
  "createdAt": "2026-08-07T18:22:10Z",
  "ext": "swift",
  "fileId": "4mHqZ1nR8vTbC0sWyLpAeGkJ3dXfU6iO2rN",
  "fileSize": 41822,
  "fileType": "code",
  "filepath": "Sources/Net",
  "name": "Router.swift",
  "projectId": "p7Kd2mQx",
  "status": "queued",
  "updatedAt": "2026-08-07T18:22:10Z"
}

Errors

StatuserrorWhen
400fileId, name and chunkIds are requiredOne of the three required fields was absent or empty.
403editor access requiredYou can read the project but not write to it.
404project not foundThe project does not exist, or you have no access to it. Projects are non-enumerable, so a denied read is indistinguishable from a missing one.
500failed to enqueue ingestionThe record was written but the ingestion queue rejected it. Re-register the same body; registration is idempotent on `fileId`.
400invalid request bodyThe body is not JSON, or exceeds the 1 MB request-body cap.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
POST/v1/projects/{projectId}/files/chunks/missingAPI keyPay-as-you-go

Ask which chunks are missing

Send the chunk manifest; get back only the chunk ids the server does not already hold, each with a signed upload URL.

This is step 2 of the large-file diff flow. Send the ids of EVERY chunk in the file, not just the ones you believe changed — the server owns the answer about what it already has, and sending the whole manifest is what lets an unchanged chunk cost zero bytes.

Chunk blobs are global and content-addressed. A chunk already stored by a different file, a different project, or a different account still counts as present, so a vendored dependency shared across repositories uploads exactly once across the whole corpus.

Each returned URL is a net-new signed PUT valid for 30 minutes. Upload the chunk body with a plain `PUT` to that URL — no `Authorization` header, the signature is the credential.

Path parameters

FieldTypeRequiredDescription
projectIdstringrequiredThe project the file lands in.

Body

FieldTypeRequiredDescription
chunkIdsstring[]requiredEvery chunk id in the file, in order. A chunk id is the base62 SHA-256 of the chunk bytes, truncated to 43 characters.
extstringoptionalLowercase file extension without the dot. It decides the storage path (`chunks/{chunkId}.{ext}`) and must match the `ext` you register.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/projects/p7Kd2mQx/files/chunks/missing" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "chunkIds": [
    "4mHqZ1nR8vTbC0sWyLpAeGkJ3dXfU6iO2rN",
    "9wEr5TyUiOpAsDfGhJkLzXcVbNm1QaZ2sXd",
    "Kp3LmNq7RtVwXyZ0aBcDeFgHiJkLmNoPqRs"
  ],
  "ext": "swift"
}'
Response · 200
{
  "missing": [
    "9wEr5TyUiOpAsDfGhJkLzXcVbNm1QaZ2sXd"
  ],
  "uploadUrls": {
    "9wEr5TyUiOpAsDfGhJkLzXcVbNm1QaZ2sXd": "https://storage.googleapis.com/acme-drawings/chunks/9wEr5TyUiOpAsDfGhJkLzXcVbNm1QaZ2sXd.swift?X-Goog-Signature=..."
  }
}

Errors

StatuserrorWhen
400chunkIds are requiredThe manifest was empty.
403editor access requiredYou can read the project but not write to it.
404project not foundThe project does not exist, or you have no access to it. Projects are non-enumerable, so a denied read is indistinguishable from a missing one.
500failed to sign upload URLStorage would not mint a signed URL. Retry with backoff.
400invalid request bodyThe body is not JSON, or exceeds the 1 MB request-body cap.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
POST/v1/projects/{projectId}/files/zipAPI keyPay-as-you-go

Upload a codebase as a zip

Register an uploaded archive; the server expands it, preserving each entry's relative path.

The archive itself uploads through the same chunk flow — content-address the `.zip`, PUT its missing chunks, then register it here instead of through the file route.

This is the server-side counterpart of the folder walk. Expansion applies the same repository-noise filter a client-side walk applies, and every dropped entry comes back named in `ignoredPaths` rather than vanishing.

The route answers 200 once every entry is staged and enqueued, even if the source archive could not be cleaned up afterwards — that lands in `undeletedZipFileId` and `cleanupError`. A non-2xx would invite a retry that re-ingests the whole archive.

Path parameters

FieldTypeRequiredDescription
projectIdstringrequiredThe project the archive expands into.

Body

FieldTypeRequiredDescription
fileIdstringrequiredThe already-uploaded archive's content-addressed id.
filepathstringoptionalFolder the archive's entries expand under. `""` is the project root.
fileSizeintegeroptionalArchive size in bytes.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/projects/p7Kd2mQx/files/zip" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "fileId": "Zq8Xr2Nv5TbW9cYmLpKeAgHiJ3dXfU6iO2r",
  "fileSize": 18412663,
  "filepath": "checkout"
}'
Response · 200
{
  "cleanupError": "",
  "createdFiles": [
    {
      "fileId": "4mHqZ1nR8vTbC0sWyLpAeGkJ3dXfU6iO2rN",
      "filepath": "checkout/Sources/Net",
      "name": "Router.swift"
    },
    {
      "fileId": "Bn6VcXz9QwErTyUiOpAsDfGhJkLmNoPqRsT",
      "filepath": "checkout",
      "name": "Package.swift"
    }
  ],
  "ignoredPaths": [
    "checkout/.git/HEAD",
    "checkout/node_modules/lodash/index.js",
    "checkout/.build/debug/Router.o"
  ],
  "undeletedZipFileId": ""
}

Errors

StatuserrorWhen
400fileId is requiredThe body named no archive.
400invalid or corrupt zip fileThe stored bytes are not a readable zip archive.
413zip file exceeds the size limitThe archive as a whole is over the per-file ceiling.
413zip entry exceeds the per-file limitOne entry inside the archive is over the per-file ceiling. Split the upload.
403editor access requiredYou can read the project but not write to it.
404project not foundThe project does not exist, or you have no access to it. Projects are non-enumerable, so a denied read is indistinguishable from a missing one.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
project-write

Read new material into the project

ingest: Crawl the web addresses named into the project's corpus, or write the project's own site pages into it when asked. Uploaded files are read as they land and need nothing started.Teamruns on a thread, stream it

FieldTypeRequiredDescription
addressesstringrequiredthe web addresses to read

Contract An input naming no address starts nothing and says so.

project-write

Review what ingestion changed

ingest_review: Weigh the cells the latest ingestion changed against the spine: lymph takes the newest unreviewed cells in batches as tethers, extends the spine from them round by round within a character budget, settles what the records settle, asks the person what only they can, and stamps every cell it weighed. The Ingestion review routine's one step.Teamruns on a thread, stream it

FieldTypeRequiredDescription

Contract Confidence, field values and routing fields move only through lymph's deterministic apply; every weighed cell carries reviewed_at.

Contract Stops when the budget is spent, nothing unreviewed is left, or the review judges older changes settled; billed to the metered pool.

researchv1.0.0

run research on the web

project-write

Run research

research_run: Run a grounded research pass on a target: a search seeds the frontier, the pages that answer the purpose are crawled and ingested, and their factions, cells and entities join the project's memory, where memory_query reads them back. Use it when the answer is outside the corpus — nothing here reads what the project already holds.Teamruns on a thread, stream it

FieldTypeRequiredDescription
targetstringrequiredthe company, person, or topic to research
budgetnumberoptionalhow many pages the pass may fetch; omit for eight, and at most twenty-four

Contract On the tool surface the pass is queued, not awaited: the answer is {action: "queued", taskId, lands} naming the folder the pages land in, and nothing has landed until that task completes.

Contract The pass ingests rather than answering: the task reports how many pages landed and where, and the findings are read back with memory_query — a run that landed pages has not yet told you what they say.

Contract A pass that found nothing lands zero pages rather than failing, and zero pages is a finding about the open web, never a failure to report as one.

threadv1.0.0

conversations with Ro: open a run, ask, stream the answer, read earlier conversation

A run is a durable conversation with Ro bound to one project: open it once, append messages, and read the answer back whole or as a live stream, each claim naming what it rested on. Nothing on this path changes a codebase: a turn that concludes a change is needed writes a plan and stops, and applying it is a separate, explicit approval on the same run.

POST/v1/api/agent-runsAPI keyPay-as-you-go

Open a query run

Start a conversation bound to one project.

A run is cheap and durable. Open one per user conversation and keep appending; do not open one per question.

Body

FieldTypeRequiredDescription
projectIdstringoptionalThe codebase the run asks about. A run without one has no project memory to read.
titlestringoptionalDisplay title.
toolstringoptionalWhich capability set the run may reach. Defaults to the general set.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/api/agent-runs" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "projectId": "p7Kd2mQx",
  "title": "Why does checkout retry?",
  "tool": "atlas"
}'
Response · 200
{
  "createdAt": "2026-08-07T18:30:00Z",
  "projectId": "p7Kd2mQx",
  "runId": "run_9Fb3TnQ2",
  "status": "open",
  "title": "Why does checkout retry?"
}

Errors

StatuserrorWhen
400invalid request bodyThe body is not JSON, or exceeds the 1 MB request-body cap.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
POST/v1/api/agent-runs/{runId}/messagesAPI keyPay-as-you-go

Ask a question

Append a user message to a run; Ro answers on the run, with the cells and declarations it cited.

The answer is grounded: `source` parts carry the cell ids the claim rested on, so you can render a citation the user can click through to a file and line rather than a confidence score.

The route returns the message you sent as soon as it lands and never waits on the answer: Ro's reply lands on the run, so open the run's stream (mint a stream ticket first) or read the run until an assistant message follows yours.

Every message carries `metadata.createdAt` — when it was written, as an ISO-8601 UTC instant with milliseconds. It is what orders a thread and what measures how long a turn took.

Path parameters

FieldTypeRequiredDescription
runIdstringrequiredThe run to append to.

Body

FieldTypeRequiredDescription
textstringrequiredThe question.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/api/agent-runs/run_9Fb3TnQ2/messages" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Why does the checkout client retry on a declined card?"
}'
Response · 200
{
  "userMessage": {
    "id": "m_1",
    "metadata": {
      "createdAt": "2026-02-11T09:14:22.418Z"
    },
    "parts": [
      {
        "text": "Why does the checkout client retry on a declined card?",
        "type": "text"
      }
    ],
    "role": "user"
  }
}

Errors

StatuserrorWhen
400text is requiredThe message carried no content.
404not foundNo such run, or it belongs to another account.
400invalid request bodyThe body is not JSON, or exceeds the 1 MB request-body cap.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
GET/v1/agent-runs/{runId}SessionTeam

Read a run

Read the whole conversation — every message with its parts and citations.

Path parameters

FieldTypeRequiredDescription
runIdstringrequiredThe run to read.
Request · curl
curl -X GET "https://runlogai.com/runlogapi/agent-runs/run_9Fb3TnQ2" \
  -H "Authorization: Bearer $RUNLOG_SESSION_TOKEN" \
  -H "X-Project-Id: p7Kd2mQx"
Response · 200
{
  "messages": [
    {
      "id": "m_2",
      "metadata": {
        "createdAt": "2026-02-11T09:14:22.418Z"
      },
      "parts": [
        {
          "text": "It retries once against the fallback processor…",
          "type": "text"
        }
      ],
      "role": "assistant"
    }
  ],
  "pendingWrites": [],
  "run": {
    "projectId": "p7Kd2mQx",
    "runId": "run_9Fb3TnQ2",
    "status": "open"
  }
}

Errors

StatuserrorWhen
404not foundNo such run, or it belongs to another account.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
POST/v1/api/agent-runs/{runId}/stream-ticketAPI keyPay-as-you-go

Mint a stream ticket

Receive the short-lived ticket that opens the run's stream without a header.

A normal keyed call. The ticket opens the stream once, within 120 seconds, so the key itself never travels in a URL. Mint one per connection.

Path parameters

FieldTypeRequiredDescription
runIdstringrequiredThe run to stream.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/api/agent-runs/run_9Fb3TnQ2/stream-ticket" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx"
Response · 200
{
  "expiresInSeconds": 120,
  "ticket": "st_7Qk2Mv…"
}

Errors

StatuserrorWhen
404not foundNo such run, or it belongs to another account.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
GET/v1/api/agent-runs/{runId}/streamAPI keyPay-as-you-go

Stream an answer

Receive the answer as it forms, over server-sent events.

Two credentials open it: the API key as a bearer header, or a stream ticket on the query string for a client that cannot set a header (EventSource). The ticket comes from POST /v1/api/agent-runs/{runId}/stream-ticket, opens the stream once within 120 seconds, and the stream then lives as long as the connection.

The stream speaks the AI SDK UI message-stream protocol — `data:`-only SSE frames with a `type` discriminator — announced by the `x-vercel-ai-ui-message-stream: v1` response header. Any client built against that protocol consumes it unchanged.

Every part event carries the stable id `messageId:partIdx`, so a late-arriving part places itself correctly regardless of arrival order.

Reconnecting replays every finished turn from persistence before any new delta, so a dropped connection never loses an answer.

Path parameters

FieldTypeRequiredDescription
runIdstringrequiredThe run to watch.

Query parameters

FieldTypeRequiredDescription
ticketstringoptionalA stream ticket from the stream-ticket route, in place of the bearer header. Opens once, within 120 seconds.
The flow
# 1. Mint a ticket: a normal keyed call. It opens the stream once, within two minutes.
curl -X POST "https://runlogai.com/runlogapi/api/agent-runs/run_9Fb3TnQ2/stream-ticket" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx"
# → {"ticket": "st_7Qk2Mv…", "expiresInSeconds": 120}

# 2. Open the stream with it. No header, so EventSource can; it lives as long as the connection.
curl -N "https://runlogai.com/runlogapi/api/agent-runs/run_9Fb3TnQ2/stream?ticket=$TICKET"
Request · curl
curl -X GET "https://runlogai.com/runlogapi/api/agent-runs/run_9Fb3TnQ2/stream" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx"
Response · 200
data: {"type":"text-delta","id":"m_2:0","delta":"It retries once against"}

Errors

StatuserrorWhen
404not foundNo such run, or it belongs to another account.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
POST/v1/agent-runs/{runId}/attachmentsSessionTeam

Upload an attachment

Send a file with a message; the run stages it for the worker to use.

Path parameters

FieldTypeRequiredDescription
runIdstringrequiredThe run to attach to.

Body

FieldTypeRequiredDescription
filestringrequiredThe file payload.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/agent-runs/run_9Fb3TnQ2/attachments" \
  -H "Authorization: Bearer $RUNLOG_SESSION_TOKEN" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "file": "..."
}'
Response · 200
{
  "runId": "run_9Fb3TnQ2",
  "uploaded": true
}

Errors

StatuserrorWhen
404not foundNo such run, or it belongs to another account.
400invalid request bodyThe body is not JSON, or exceeds the 1 MB request-body cap.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
POST/v1/agent-runs/{runId}/interruptSessionTeam

Interrupt a run

Stop the turn in flight — the cancel behind a user hitting stop.

Path parameters

FieldTypeRequiredDescription
runIdstringrequiredThe run to interrupt.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/agent-runs/run_9Fb3TnQ2/interrupt" \
  -H "Authorization: Bearer $RUNLOG_SESSION_TOKEN" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{}'
Response · 200
{
  "interrupted": true,
  "runId": "run_9Fb3TnQ2"
}

Errors

StatuserrorWhen
404not foundNo such run.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
POST/v1/agent-runs/{runId}/messagesSessionTeam

Request changes

Ask for a change; the run starts what the ask plainly wants and stages the rest for you to decide.

This is the same message route as a question, and it answers once your message has landed: the turn runs on the worker, and its reply, its plan of record and its writes arrive on the run's stream.

A change the ask plainly wants starts as the reply lands, and the reply says so. One that rests on a guess about what you meant, or that the consequence floor holds, is staged onto the run's `pendingWrites` — show it to the user, then confirm or decline each one by id.

Path parameters

FieldTypeRequiredDescription
runIdstringrequiredThe run to append to.

Body

FieldTypeRequiredDescription
textstringrequiredThe change you want made.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/agent-runs/run_9Fb3TnQ2/messages" \
  -H "Authorization: Bearer $RUNLOG_SESSION_TOKEN" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Add exponential backoff to Router.send and update its callers."
}'
Response · 200
{
  "userMessage": {
    "id": "m_3",
    "parts": [
      {
        "text": "Add exponential backoff to Router.send and update its callers.",
        "type": "text"
      }
    ],
    "role": "user"
  }
}

Errors

StatuserrorWhen
404not foundNo such run.
400invalid request bodyThe body is not JSON, or exceeds the 1 MB request-body cap.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
GET/v1/agent-runs/{runId}SessionTeam

Read a plan artifact

Read the plan of record and the writes still staged for approval.

The plan is persisted, not discarded — it names the changes it would make and the terms it read without changing, each citing what it rests on. A plan you did not approve is still readable later.

Path parameters

FieldTypeRequiredDescription
runIdstringrequiredThe run holding the plan.
Request · curl
curl -X GET "https://runlogai.com/runlogapi/agent-runs/run_9Fb3TnQ2" \
  -H "Authorization: Bearer $RUNLOG_SESSION_TOKEN" \
  -H "X-Project-Id: p7Kd2mQx"
Response · 200
{
  "pendingWrites": [
    {
      "id": "pw_3Rt7Yu",
      "kind": "cell_edit",
      "summary": "Router.send — wrap the request in a backoff loop capped at 3 attempts"
    },
    {
      "id": "pw_8Kq1Za",
      "kind": "source_transition",
      "summary": "Promote Artifacts/design/retry-note.md to source"
    }
  ],
  "run": {
    "projectId": "p7Kd2mQx",
    "runId": "run_9Fb3TnQ2"
  }
}

Errors

StatuserrorWhen
404not foundNo such run.
401invalid API keyThe `Authorization` header is missing, malformed, or names a revoked key.
400name the target project via the X-Project-Id header or projectId queryNo project was named and the key is not bound to one.
429rate limit exceededYou passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait.
500internal errorThe service failed to serve the request. Retry with backoff; the cause is logged server-side against your request.
read

Read earlier conversation

thread_read: Read what was said before this turn's history begins, page back through another thread in this project, list those threads, or search every thread's messages for words, newest thread first. Any member who reads the project reads every thread in it, and so does this read; it changes nothing.Pay-as-you-goruns on a thread, stream it

FieldTypeRequiredDescription
subjectstringoptionalone of earlier | thread | threads | search; 'earlier' by default
runIdstringoptionalfor thread: the thread to page back through, as threads lists it
querystringoptionalfor search: the words to find, every one of them in a message ranking it first
cursorstringoptionalthe cursor a prior page ended on, to continue further back
limitnumberoptionalmessages or threads in this page; twelve by default and forty at most

Contract Read as the turn's person: the project's read gate admits every thread in it (service.AuthorizeRunRead); a turn acting for no signed-in person reads nothing.

Contract An answer is a window bounded in characters: a page back keeps the newest messages when the bound binds, and a search reads every thread of the project newest first, a page of threads at a time, until the bound fills; each states the cursor it stopped on.

Contract A lookback, chosen when the person refers to an earlier conversation or the project's findings lack what is asked; most of what threads hold is already a finding.

project-write

Hand work to other threads

thread_handoff: On the person's ask, cut the thread's remaining work into at most five briefs, each one independent area another thread (or an outside agent) takes up, keeping dependent items queued here; a receiving thread's report comes back the same way and is absorbed.Teamruns on a thread, stream it

FieldTypeRequiredDescription
briefsobject[]optionalthe cut, at most five, each {area, goal, decided[], suggestions[], owned[], doneProof[], context, toRunId | agentId | outside}
queuedobject[]optionalthe items that stay queued here, each {area, follows} naming the running work it waits on
reportstringoptionala receiving thread's closing report, or an outside agent's the person pasted
handoffIdstringoptionalthe handoff a pasted report answers; a receiving thread may leave it out
askIdsstring[]optionalthe member messages carrying the person's ask, when the one opening the turn only confirms a proposed cut
tracesobject[]optionalgaps a returned report left, each {handoffId, gap, cause: readme|name|structure|brief, at, why}

Contract A cut runs only on a person's ask: a turn a returned report opened absorbs it and writes no brief.

Contract No two briefs, and no brief and a handoff still out, own one file; a brief quotes the ask verbatim and keeps Additional context last.

Contract A cut is checked whole before its first brief goes out; a returned handoff's report and gaps are never rewritten by a later cut.

Contract A receiving thread whose turn finishes without a report has its closing reply sent as the report.

project-write

Message another thread

thread_message: Write a message from one agent run into another run of the project, the way one Claude Code session messages another: the target takes it at its next step, or wakes on it when idle, and both threads show it.Pay-as-you-goanswers inline

FieldTypeRequiredDescription
toRunIdstringrequiredthe thread that receives the message, by run id
textstringrequiredwhat to say, at most 4000 characters
fromRunIdstringoptionalthe thread it is sent from; a turn sends from its own and may leave it out

Contract Both runs belong to the request's project and the caller may write to it; a run never messages itself.

Contract An idle target wakes once per message a person sent there, so two runs answering each other stop after one round until a person speaks.