Membership

the project, its members, teams and the owner's account

projectv1.0.0

the project itself: create, rename, share, move into or out of a team, delete

A project is the memory boundary. Every file you ingest, every cell Runlog reads out of it, and every question you ask is scoped to one project id, sent on the `X-Project-Id` header. Projects are non-enumerable: a project you cannot reach answers 404, never 403. Publishing and deleting stay on the signed-in session, so a leaked key cannot publish or destroy a corpus.

POST/v1/projectsAPI keyPay-as-you-go

Create or update a project

Upsert a project — a body without `projectId` mints a new 8-character id.

The same route creates and updates. Send a `projectId` you already own to rename it or re-parent it; omit it to create.

On an account key this is the provisioning call: creating needs no `X-Project-Id` (there is no project yet) and requires an Editor-level key. The signed-in session calls the same route.

`parentProjectIds` establishes inheritance: a child project reads its ancestors' cells and entities through the same retrieval calls, so a per-repository child under one organization parent gives every child the shared context without copying it.

Body

FieldTypeRequiredDescription
namestringrequiredHuman-readable project name.
projectIdstringoptionalExisting project to update. Omit to mint a new id.
parentProjectIdsstring[]optionalProjects this one inherits readable context from. Each must be a project you can access.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/projects" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "LingCode — acme/checkout",
  "parentProjectIds": [
    "orgRootA1"
  ]
}'
Response · 200
{
  "ancestorProjectIds": [
    "orgRootA1"
  ],
  "createdAt": "2026-08-07T18:20:04Z",
  "name": "LingCode — acme/checkout",
  "ownerUid": "u_8Kd0Zq",
  "parentProjectIds": [
    "orgRootA1"
  ],
  "projectId": "p7Kd2mQx",
  "updatedAt": "2026-08-07T18:20:04Z"
}

Errors

StatuserrorWhen
400name is requiredThe body carried no `name`.
404project not foundA named parent is not reachable by you. Answering 404 rather than 403 keeps projects non-enumerable — you cannot probe a parent's existence.
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/projectsAPI keyPay-as-you-go

List projects

One cursor page of the projects you own, plus public and shared ones.

The body is a bare array. The next page's cursor rides back on the `X-Next-Cursor` response header — when the header is absent you have reached the end.

Pages order by document id, which is stable across concurrent writes, so paging to exhaustion never skips or repeats a project.

Query parameters

FieldTypeRequiredDescription
cursorstringoptionalOpaque cursor from a previous page's `X-Next-Cursor` header.
limitintegeroptionalPage size. Capped at 200.
Request · curl
curl -X GET "https://runlogai.com/runlogapi/projects?limit=50" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx"
Response · 200
[
  {
    "name": "LingCode — acme/checkout",
    "projectId": "p7Kd2mQx",
    "updatedAt": "2026-08-07T18:20:04Z"
  },
  {
    "name": "Acme — org root",
    "projectId": "orgRootA1",
    "updatedAt": "2026-08-06T09:11:52Z"
  }
]

Errors

StatuserrorWhen
400invalid cursorThe cursor was tampered with or came from a different 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.

Answers Project[]: A project: the memory boundary every file, cell and question is scoped to.

FieldTypeRequiredDescription
projectIdstringrequiredThe project's id, sent on `X-Project-Id` or as `runlog.project(id)`.
namestringrequiredThe project's name.
userIdstringoptionalThe user id of the project's owner.
parentProjectIdsstring[]optionalThe parents named when the project was made; their memory reads through into this one.
versionintegeroptionalRaised on every write to the project.
createdAtstringoptionalWhen the project was made, as an RFC 3339 timestamp.
updatedAtstringoptionalWhen the project last changed, as an RFC 3339 timestamp.
GET/v1/projects/{projectId}API keyTeam

Get a project

Read one project record by id.

Path parameters

FieldTypeRequiredDescription
projectIdstringrequiredThe project to read.
Request · curl
curl -X GET "https://runlogai.com/runlogapi/projects/p7Kd2mQx" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx"
Response · 200
{
  "createdAt": "2026-08-07T18:20:04Z",
  "name": "LingCode — acme/checkout",
  "parentProjectIds": [
    "orgRootA1"
  ],
  "projectId": "p7Kd2mQx",
  "updatedAt": "2026-08-07T18:22:10Z",
  "userId": "u_8Kd0Zq",
  "version": 3
}

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.
405method not allowedThe path exists but does not serve this verb.
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.

Answers Project: A project: the memory boundary every file, cell and question is scoped to.

FieldTypeRequiredDescription
projectIdstringrequiredThe project's id, sent on `X-Project-Id` or as `runlog.project(id)`.
namestringrequiredThe project's name.
userIdstringoptionalThe user id of the project's owner.
parentProjectIdsstring[]optionalThe parents named when the project was made; their memory reads through into this one.
versionintegeroptionalRaised on every write to the project.
createdAtstringoptionalWhen the project was made, as an RFC 3339 timestamp.
updatedAtstringoptionalWhen the project last changed, as an RFC 3339 timestamp.
POST/v1/projects/ensureAPI keyPay-as-you-go

Ensure a first project

Return the caller's project, creating one if they have none — the idempotent bootstrap call.

Call this once at the start of an integration rather than branching on an empty list. It is idempotent: a caller who already has a project gets it back unchanged.

Request · curl
curl -X POST "https://runlogai.com/runlogapi/projects/ensure" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{}'
Response · 200
{
  "created": false,
  "name": "My workspace",
  "projectId": "p7Kd2mQx"
}

Errors

StatuserrorWhen
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}/visibilityAPI keyTeam

Publish a project, or take it back

Let anyone signed in read this project, or return it to the people named on it.

Public grants VIEWER and nothing else: a reader can retrieve and cite, and every write still requires a principal that names them. Sharing a link never hands out an editor.

Anonymous readers are never admitted. "Public" means anyone who signs in, so a shared project asks a stranger for an account and no more than that.

Owner only. Every other tier was granted by someone, and exposing a corpus is not a power a collaborator inherits along with editing.

Body

FieldTypeRequiredDescription
publicbooleanrequiredTrue publishes to every signed-in reader; false returns the project to its named principals.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/projects/p7Kd2mQx/visibility" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "public": true
}'
Response · 200
{
  "public": true,
  "status": "ok"
}

Errors

StatuserrorWhen
404project not foundThe project does not exist, or you are not its owner. Answering 404 rather than 403 keeps projects non-enumerable.
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.
DELETE/v1/projects/{projectId}API keyTeam

Delete a project

Soft-delete a project and drop it from every list and stream.

The delete is soft: the record is retired rather than erased, so an in-flight ingestion cannot resurrect a half-deleted project.

Content-addressed chunk blobs are global and shared across projects, so deleting a project never deletes a chunk another project still references.

Path parameters

FieldTypeRequiredDescription
projectIdstringrequiredThe project to delete.
Request · curl
curl -X DELETE "https://runlogai.com/runlogapi/projects/p7Kd2mQx" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx"
Response · 200
{
  "deleted": true,
  "projectId": "p7Kd2mQx"
}

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.
403editor access requiredYou can read the project but not write to it.
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

Create a project

project_create: Make a new project the caller owns, optionally under parent projects it inherits cells and entities from: a child for what one thing owns, a market project for what many share.Pay-as-you-goanswers inline

FieldTypeRequiredDescription
namestringrequiredthe new project's name, unique among the caller's projects
parentProjectIdsstring[]optionalthe parents it reads through; from a turn, empty makes it a child of the turn's project
folderPathstringoptionalthe folder on the projects screen it is filed under; empty leaves it at the root

Contract The caller must read every parent named, and a storefront's account is never a parent: a parent the caller cannot read is refused as not found, and a visitor or delegate principal creates nothing.

Contract From a turn the creation is staged for the person's confirmation unless their message asked for it; the reply says it waits, never that the project exists.

project-write

Share a project

project_share: Make the turn's project readable by anyone signed in who has its link, optionally editable, or take that back.Teamruns on a thread, stream it

FieldTypeRequiredDescription
publicbooleanrequiredtrue opens the project to signed-in strangers; false closes it
editablebooleanoptionaltrue lets those strangers edit as well as read; ignored when public is false

Contract Only the project's owner shares it, and only while they hold a seat on a Team or Team Max team; anyone else is refused and nothing changes.

Contract Sharing widens who reads, so it is staged for the owner's confirmation unless their message asked for it.

bulk-write

Move a project to a team

project_move: Move a project the caller owns into a team, which then funds and seats it, or take it out of one back to its original owner, every other person losing access.Teamruns on a thread, stream it

FieldTypeRequiredDescription
projectIdstringrequiredthe project to move
teamIdstringoptionalthe team it moves into; empty takes it out of its team back to its original owner

Contract Moving in takes the project's owner, seated in the team; a project already in a team leaves it before it moves elsewhere.

Contract Only a team admin takes a project out; it returns to its original owner, and its shares, payer and team roles are cleared.

Contract Moving changes who pays for and who reaches the project, so a turn stages it for confirmation.

project-write

Rename a project

project_update: Rename the request's or the turn's project, which the caller owns, or refile it under another folder on the projects screen.Teamanswers inline

FieldTypeRequiredDescription
namestringrequiredthe name it carries, unique among the owner's projects
folderPathstringoptionalthe folder it is filed under; left out keeps where it is, empty files it at the root

Contract Owner-only, and a name another of the owner's projects holds is refused; nothing but the name and the folder changes.

bulk-write

Delete a project

project_delete: Delete the turn's project, which the caller owns: the caller and everyone it was shared with lose access to it; a team's access project is never deleted.Teamruns on a thread, stream it

FieldTypeRequiredDescription

Contract Confirmed: only the owner's press deletes it, and no one in the project can bring it back.