Writeups

the business record, timeline, lens objects, artifacts and drafts

businessv1.0.0

the business record: read, write, fill the business model

read

Read the business

business_read: Read the business's plan as the Business lens opens on it: Who pays, Prices (each offer's price with rivals' prices beside it), How it sells, Unit economics and Variations, each line citing its cell. Name a kind to read one list instead — its ICPs (buyer roles with their must-haves, disqualifiers, angle and follow-up days), the companies it deals with, the offerings it sells, or its jobs, pains and gains — each row with its stored fields.Teamruns on a thread, stream it

FieldTypeRequiredDescription
kindstringoptionalwhich list to read — 'buyer', 'organization', 'offer', 'job', 'pain' or 'gain'; omit to read the plan
cursorstringoptionalthe nextCursor from a prior read, to continue one list
limitnumberoptionalrows per list; omit for fifty, and at most two hundred

Contract An empty list is an answer, not a failure: a project whose corpus has not named an ICP yet returns none, and the move is to ask the owner who they sell to rather than to invent one.

Contract Fields are the stored record: what is absent is absent, never filled in — a must-have the ICP does not state must not be reported as one.

project-write

Write the business

business_update: Create or revise one buyer, organization or offer — the same record the Business page's entity panel edits — and mark an organization as the business itself, a customer, a competitor or a partner. Name the fields to set; every field left out keeps its stored value.Teamruns on a thread, stream it

FieldTypeRequiredDescription
kindstringrequired'buyer', 'organization', 'offer', or a Value Proposition Canvas pair — 'job', 'pain' or 'gain' — which lens type this record is an instance of
namestringrequiredthe record's display name; an existing record of this type with the same name is revised rather than duplicated
entityIdstringoptionalexisting record id to revise; omit to resolve by name and mint when there is none
rolestringoptionala company's relationship to the business — 'self' (the business itself), 'customer', 'competitor' or 'partner'; only a company carries one
fieldsobjectoptionalthe fields to set, keyed by the type's own field names (a buyer takes persona, trade, place, must-haves, disqualifiers, buying trigger, angle, gap to look for, follow-up days; an organization takes does, website, location, industry, headcount; an offer takes delivers, price, for; a job takes job, products_services; a pain takes pain, pain_reliever; a gain takes gain, gain_creator)

Contract A field is set only where you name it: this is a merge onto the stored record, so omitting a field keeps what the corpus or a person put there and passing an empty value clears it deliberately.

Contract Write what the owner said, never what the ICP would be more useful as. An outcome may suggest a must-have change, but the change is the owner's answer — propose it and wait rather than writing it.

project-write

Fill the business model

business_canvas: State claims under a Business Model Canvas box — Key Partners, Key Activities, Key Resources, Value Propositions, Customer Relationships, Customer Segments, Channels, Revenue Streams, Cost Structure — or file findings under one or take them off. A box's claims are the cells filed under it, so this is what fills the canvas.Teamruns on a thread, stream it

FieldTypeRequiredDescription
boxstringrequiredthe box, by its type name — 'KeyPartners', 'KeyActivities', 'KeyResources', 'ValuePropositions', 'CustomerRelationships', 'CustomerSegments', 'Channels', 'RevenueStreams' or 'CostStructure'
claimsobject[]optionalstatements to put under the box, each {text, source}; a claim naming its own box goes under that one
cellIdsstring[]optionalfindings already in the corpus to file, by cellId
actionstringoptional'attach' to file the findings under the box (the default) or 'detach' to take them off

Contract A claim or finding goes under a box only when it states something about that part of the model; one finding may sit under several boxes.

Contract Restating a claim revises the one already under the box rather than adding a second.

Contract A finding already carrying ten references is refused rather than stripped of one.

timelinev1.0.0

the timeline: derive, write

project-write

Derive the timeline

timeline_derive: Re-derive the project's timeline rows from its evidence — overdue, uncited and stale items — as a background pass the thread follows to its end.Teamruns on a thread, stream it

FieldTypeRequiredDescription

Contract The pass decides which rows change; the input only says why it was asked for.

project-write

Write the timeline

timeline_update: Add one dated row to the project's Timeline, or change one row's text, owner, date, goal or status (open, done, dropped).Teamruns on a thread, stream it

FieldTypeRequiredDescription

Contract A new row states its text and its date; a change names the row and only the fields it changes.

objectv1.0.0

a record submitted, or a lens object re-derived

Not everything in a project is a file. A named object is a typed record (a form submission, a contact, a product) declared by a schema and held against it: declare the schema, then submit records, each validated on write.

GET/v1/artifact-schemasAPI keyTeam

List schemas

Read the typed schemas the project's artifacts and records are held against.

A schema is what makes a record queryable rather than a blob: it declares the fields, their types, and which are required.

Request · curl
curl -X GET "https://runlogai.com/runlogapi/artifact-schemas" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx"
Response · 200
{
  "schemas": [
    {
      "fields": [
        {
          "name": "palette",
          "type": "string[]"
        }
      ],
      "name": "Design mood board",
      "schemaId": "sch_4Kd2Qm"
    }
  ]
}

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/artifact-schemasAPI keyTeam

Declare a schema

Create or update a typed schema the project's records are held against.

Body

FieldTypeRequiredDescription
namestringrequiredDisplay name for the schema.
fieldsobject[]requiredField declarations: name, type, and whether it is required.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/artifact-schemas" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "fields": [
    {
      "name": "email",
      "required": true,
      "type": "string"
    },
    {
      "name": "square_feet",
      "type": "number"
    }
  ],
  "name": "Intake request"
}'
Response · 201
{
  "name": "Intake request",
  "schemaId": "sch_9Lm3Tz"
}

Errors

StatuserrorWhen
400invalid request bodyThe body is not JSON, or exceeds the 1 MB request-body cap.
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.
POST/v1/api/actionsAPI keyTeam

Submit a record

Write one typed record against the bound named-object type, validated on write.

The type is the owner's binding, never a field of the submission: a payload that does not fit the bound type's declared fields is refused, not stored.

Dispatched as `{"action": "object_submit", "input": {"data": {...}}}`.

Body

FieldTypeRequiredDescription
actionstringrequiredMust be `"object_submit"`.
input.dataobjectrequiredThe record's fields, keyed by the bound type's field keys.
input.honeypotstringoptionalLeave empty; a filled value marks the submission as spam.
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": "object_submit",
  "input": {
    "data": {
      "email": "amber@example.com",
      "square_feet": 2400
    }
  }
}'
Response · 200
{
  "action": "object_submit",
  "result": {
    "recordId": "rec_2Xm9Qd"
  }
}

Errors

StatuserrorWhen
400record does not match its schemaA required field is absent, or a field's type disagrees with the declaration.
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

Submit a record

object_submit: Write one form submission as a typed record of the named-object type the site's owner bound to this action, validated against that type's declared fields.Teamanswers inline

FieldTypeRequiredDescription
dataobjectrequiredthe record's fields, keyed by the bound type's field keys
honeypotstringoptionalleave empty; a filled value marks the submission as spam

Contract The type is the owner's binding (the action's form wrapper), never a field of the submission: a payload that does not fit the bound type's declared fields is refused, not stored.

project-write

Re-derive a lens object

object_derive: Re-derive one registered lens object from the project's current content.Teamruns on a thread, stream it

FieldTypeRequiredDescription
toolstringrequiredthe lens owning the object
namestringrequiredthe registered object's key

Contract Re-derives exactly one registered lens object; unknown tool/name fails, never defaults.

artifactv1.0.0

the project's artifacts: read, update, revise, resync, share links

The document your agent hands back: generated from the project's own memory, every section naming the cells it was written from, and ordinary memory once it lands.

POST/v1/api/actionsAPI keyTeam

Generate an artifact

Build a structured artifact from the project's corpus, with each section citing the cells it rests on.

State the purpose in prose — what the document should produce — rather than a template. The corpus decides the sections; the purpose decides what is worth saying.

**Generation is detached.** The dispatch returns a running task; poll it, or watch the file stream to see the artifact land. Naming an existing `artifactId` is refused on the API surface today — omit it to generate a new one.

The artifact lands under `Artifacts/`, which is the classification rather than a naming convention: the pipeline treats it as a derived product and will not read it back as evidence. Promoting it to source is the folder move in the Changes lane, and is a deliberate act.

Dispatched as `{"action": "artifact_update", "input": {"purpose": "..."}}`.

Body

FieldTypeRequiredDescription
actionstringrequiredMust be `"artifact_update"`.
input.artifactIdstringoptionalExisting artifact id to update; omit to generate a new one.
input.purposestringrequiredWhat the artifact should produce.
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": "artifact_update",
  "input": {
    "purpose": "an envelope takeoff for the north elevation, with the glazing schedule"
  }
}'
Response · 200
{
  "action": "artifact_update",
  "result": {
    "artifactId": "art_5Hn2Kp",
    "status": "running",
    "taskId": "tk_6Wr4Bn"
  }
}

Errors

StatuserrorWhen
400purpose is requiredThe input named no purpose. There is nothing to build the document against.
400artifactId is not accepted on this surfaceA revision was requested. Omit the id to generate a new artifact.
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

Update an artifact

artifact_update: Generate or revise a structured artifact (report, memo, summary) built from the project's corpus.Teamanswers inline

FieldTypeRequiredDescription
artifactIdstringoptionalexisting artifact id to update; omit to generate a new one
purposestringrequiredwhat the artifact should produce

Contract Generation is detached: a dispatch returns the running task to poll, and a dispatch naming an artifactId is refused on the API surface today — omit it to generate a new artifact.

read

Read the project's artifacts

artifact_read: Read what the project has authored: one page of its artifacts, one artifact's outline (each section or slide by id with its title and first line, and the version an edit builds on), one section's frame as the HTML file a patch edits, one section's text, how a section came to say what it says, its elements by id, or the schemas a new artifact can be written under. It changes nothing.Teamruns on a thread, stream it

FieldTypeRequiredDescription
subjectstringoptionalone of list | outline | frame | section | history | elements | schemas; 'list' by default
artifactIdstringoptionalthe artifact to read; required for outline, frame, section, history and elements
paragraphIdstringoptionalfor frame, section and history: the section or slide to read, as the outline lists it
cursorstringoptionalthe cursor a prior page ended on, to continue
limitnumberoptionalrows in this page; fifty by default and two hundred at most

Contract A page is a window, never a total — the reply states what it read and the cursor it stopped on, and never treats a page as every artifact the project holds.

Contract A section's history is the chain of what it used to say; report a superseded version as superseded, never as what the artifact says now.

Contract Read the outline, then only the frame a change touches; never read every frame to change one.

project-write

Revise or reshape an artifact

artifact_edit: Change an artifact the project already holds: reword one element, patch one section's frame file with search/replace edits, write a slide's whole file, insert, remove or reorder a slide, revise from an instruction, set a section's text, move it to another folder, or change the schemas artifacts are written under. Creating one is the update node's own work and is not here.Teamruns on a thread, stream it

FieldTypeRequiredDescription
actionstringrequiredone of set_element | patch | write_frame | insert_frame | remove_frame | reorder | revise | refresh | move | schema_upsert | schema_fork | schema_delete
artifactIdstringoptionalthe artifact to change; required for every action but the schema ones
instructionstringoptionalfor revise: the one change to make, in plain words
paragraphIdstringoptionalfor patch, write_frame, remove_frame, reorder, revise and refresh: the section or slide it lands on, as the outline lists it
baseVersionnumberoptionalfor patch, write_frame and insert_frame: the version the outline or frame read answered
editsobjectoptionalfor patch: [{"old": text copied exactly from the frame, occurring once, "new": its replacement}]
afterstringoptionalfor insert_frame and reorder: the slide it follows, as the outline lists it; empty places it first
contentstringoptionalfor set_element: the element's new text; for write_frame and insert_frame: the slide's whole <section> file
elementIdstringoptionalfor set_element: the element to change, as artifact_read's elements lists it
folderstringoptionalfor move: the folder path the artifact moves to
schemaIdstringoptionalfor schema_fork and schema_delete: the schema to fork or remove
schemaobjectoptionalfor schema_upsert: the whole schema, which replaces what is stored under its id

Contract A small change is set_element or patch; a new or redesigned slide is write_frame or insert_frame; never regenerate the whole artifact to change part of it.

Contract A patch or write built on a version the artifact has left is refused with the frame as it now stands: merge onto that and retry, and after three refusals stop and report.

Contract A revise runs the model over the artifact; name the section and it lands as a patch of that section's frame, leave it out and the whole artifact is rewritten.

Contract refresh brings ONE section artifact_read marks stale to its cited cells' current values, and runs only when the person asks for it.

Contract set_element changes ONE element: a headline, a bullet, a paragraph or a table cell is reworded where it stands and nothing else moves, so a small change to a slide or a section is this, never a revise.

Contract schema_upsert replaces the stored schema under its id, so read it with artifact_read first and carry forward every section to keep. Deleting a schema never deletes the artifacts written under it.

project-write

Resync a fixed artifact

artifact_resync: Bring a lens and its Company/ file current together: explore the cells around every record the file carries (the model's buyers and alternatives, the timeline's rows and goals, the pipeline's leads, the funding's rounds and backings), propose on one card what they show changed, then regenerate the files into a linked folder.Teamruns on a thread, stream it

FieldTypeRequiredDescription
kindstringoptionalmodel, timeline, pipeline or funding; model when empty

Contract The page and the file render from one read of the records; a proposed change lands only on the person's Yes.

read

List share links

artifact_share_list: List an artifact's public share links: when each was made, the version it freezes, and whether it is still live.Teamanswers inline

FieldTypeRequiredDescription
artifactIdstringrequiredthe artifact

Contract A link's token is its page's whole credential; the list names each link the way the Share panel does, revoked ones included.

external-send

Share an artifact publicly

artifact_share: Mint a public link to an artifact's current version: anyone holding it reads that page, with no account.Teamruns on a thread, stream it

FieldTypeRequiredDescription
artifactIdstringrequiredthe artifact
removeBylinebooleanoptionaldrop the Runlog byline, where the plan allows it

Contract Confirmed: the link is the page's whole credential, so it is minted on an editor's press and shown in that card or panel.

project-write

Revoke a share link

artifact_share_revoke: Retire one public link to an artifact; its page answers nothing from then on.Teamanswers inline

FieldTypeRequiredDescription
artifactIdstringrequiredthe artifact
tokenstringrequiredthe link to retire

Contract Revoking only narrows who reads, so it runs at once on an editor's word.

draftv1.0.0

create a draft

project-write

Create a draft

draft_create: Draft the first touch to one lead, opening on the gap its research found, in the sending AE's own writing voice, and stage it in the outreach queue for a person to approve. Nothing sends.Teamruns on a thread, stream it

FieldTypeRequiredDescription
leadIdstringrequiredthe lead the message is for
channelstringoptionalemail or linkedin; omit for email, the channel every lead carries

Contract On the tool surface the draft is queued, not awaited: the answer is {action: "queued", taskId, lands}, and the draft is in the outreach queue once that task completes.

Contract A lead no research has run on is refused, naming the research that is missing: the draft opens on what the recipient's own material says, so drafting before it lands would invent the opening line.

Contract Drafting stages and never sends: the draft waits in the outreach queue until a person approves it, so no step may treat a returned draft as a message that went out.

project-write

Draft what is due

draft_due: Draft the touches the project's leads owe, each from its own thread, and stage them in the outreach queue for a person to approve: a drafted sequence step, a follow-up the cadence made due, a first touch a lead in outreach still owes. A routine calls it with its own limit, sources and sequences. Nothing sends.Teamruns on a thread, stream it

FieldTypeRequiredDescription
limitnumberoptionalthe most touches to draft; 100 by default, 200 at most
sourcesstring[]optionalsteps, follow_ups, first_touches; empty reads all three
sequenceIdsstring[]optionalnarrow the sequence steps to these sequences; empty reads every approved one
horizonHoursnumberoptionalhow many hours ahead a touch counts as due; 24 by default
ownerUidstringoptionaldraft only the leads this member owns; empty drafts every lead in the project, so a routine for one person passes their own id

Contract The run is queued, not awaited: the answer is {action: "queued", taskId, lands}, and the drafts are in the outreach queue once that task completes.

Contract A lead with a draft already staged, a reply owed, no research for a first touch or a stopped person is skipped with its reason; the rest are drafted.

Contract Drafting stages and never sends: the draft waits until a person approves it.