Feeds

channels, MCP servers and the camera feed

channelv1.0.0

the project's channels: connect, read, scan, sync, import, disconnect, learn a new type

Data that lives in an outside account: a mailbox, a calendar, a Drive store, a CRM, any system with documentation or an MCP server. The account holder signs in on its own page; a sync then pulls the history in, and synced content becomes ordinary memory.

GET/v1/projects/{projectId}/connectionsSessionTeam

List connected channels

Read which channels are connected, their health, and when each last synced.

A channel that has fallen out of authorization reports it here rather than failing silently on the next sync — check this before concluding a sync returned nothing because there was nothing.

Request · curl
curl -X GET "https://runlogai.com/runlogapi/projects/p7Kd2mQx/connections" \
  -H "Authorization: Bearer $RUNLOG_SESSION_TOKEN" \
  -H "X-Project-Id: p7Kd2mQx"
Response · 200
{
  "channels": [
    {
      "account": "amber@example.com",
      "channelId": "ch_6Wr4Bn",
      "kind": "email",
      "lastSyncedAt": "2026-08-07T18:31:44Z",
      "status": "connected"
    }
  ]
}

Errors

StatuserrorWhen
401unauthorizedNo valid session.
POST/v1/projects/{projectId}/connectionsSessionTeam

Begin a connection

Start connecting an account of a channel, named by id or described in words, and receive the step the account holder takes next.

Connection cannot be completed by API, by design: the account holder signs in on their own app with the vendor, pastes a key, or follows an MCP sign-in; the answer names which, and the connection lands when they finish it.

A description naming no known channel answers `resolve` until the vendor's documentation or MCP address is given, and the channel is learned from it.

Body

FieldTypeRequiredDescription
channelIdstringoptionalThe channel to connect, by id (`gmail-googleapis-com`, `camera`).
descriptionstringoptionalThe system in words, a documentation address or an MCP address, when no id is known.
labelstringoptionalThe account's name in the project, such as its address.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/projects/p7Kd2mQx/connections" \
  -H "Authorization: Bearer $RUNLOG_SESSION_TOKEN" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "our Gmail, https://developers.google.com/workspace/gmail/api"
}'
Response · 200
{
  "authUrl": "",
  "channelName": "gmail-googleapis-com~a1b2c3d4e5",
  "connectionStatus": "authorise"
}

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/channel-sync/{channelId}API keyTeam

Sync a channel

Pull the channel's history into the project's corpus, where retrieval reaches it.

Incremental after the first run: a sync resumes from its own watermark, so calling it repeatedly is cheap and calling it twice is not a duplicate.

Synced content becomes ordinary corpus. A question about what a customer said in an email is answered by the same retrieval that answers a question about a file.

Path parameters

FieldTypeRequiredDescription
channelIdstringrequiredThe connected channel to sync.
Request · curl
curl -X POST "https://runlogai.com/runlogapi/channel-sync/ch_6Wr4Bn" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx" \
  -H "Content-Type: application/json" \
  -d '{}'
Response · 202
{
  "status": "started"
}

Errors

StatuserrorWhen
400channel does not support syncThe channel's kind has no history to pull.
404unknown channelThis project holds no such channel.
409runningA sync of this channel is already running; the body is `{status: "running"}`.
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/gtm/channel-inventoryAPI keyTeam

Read sending inventory

Read which connected accounts can send, and the channels each account executive can reach people through.

An account executive with no send channels is listed with an empty list: a plan for them cannot execute, and nothing sends from another person's account in their place.

Request · curl
curl -X GET "https://runlogai.com/runlogapi/gtm/channel-inventory" \
  -H "Authorization: Bearer $RUNLOG_API_KEY" \
  -H "X-Project-Id: p7Kd2mQx"
Response · 200
{
  "aes": [
    {
      "name": "Priya",
      "sendChannels": [
        "linkedin",
        "gmail"
      ],
      "uid": "u_9Kd2Lm"
    }
  ],
  "entries": [
    {
      "capabilities": [
        "send",
        "read"
      ],
      "channel": {
        "channelName": "linkedin",
        "inmailCreditsRemaining": 18,
        "isConnected": true,
        "linkedinTier": "sales_nav"
      },
      "sendCapable": true
    }
  ]
}

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.
project-write

Scan a channel

channel_scan: Queue a read action on a connected channel (e.g. pull signals from LinkedIn). Runs without approval.Teamruns on a thread, stream it

FieldTypeRequiredDescription
channelstringrequiredconnected channel id, e.g. linkedin
targetstringrequiredwhat to scan for — a name, query, or target id
read

Read the project's channels

channel_read: Read what the project is connected to, what its channels have been asked to do, and who they must not reach: the connected accounts with the handle and state of each, one page of the queued, running and finished channel actions, or one page of the project's do-not-contact list for a channel. It changes nothing and reaches no provider — it reads what the project already holds.Teamruns on a thread, stream it

FieldTypeRequiredDescription
subjectstringoptional'accounts' for what is connected, 'actions' for what the channels were asked to do, or 'stops' for the project's do-not-contact list; 'accounts' by default
channelstringoptionalkeep only this channel's rows — linkedin, gmail, email; for 'stops', the list to read
cursorstringoptionalfor 'stops': the cursor a prior page ended on, to continue
statusstringoptionalfor 'actions': keep only this status — queued, running, done, failed, paused
limitnumberoptionalrows in this page; fifty by default and two hundred at most

Contract A connection the project does not hold is reported as absent; nothing here connects one, since connecting needs credentials only the person can give.

Contract A page is a window, never a total — the reply states what it read and never treats a page as every action the project ever queued.

project-write

Disconnect a channel

channel_manage: Drop a connection the project no longer uses, so nothing reads from it again until the person reconnects. Connecting is channel_connect's.Teamruns on a thread, stream it

FieldTypeRequiredDescription
channelstringrequiredthe connection to drop, as channel_read listed it

Contract It is irreversible without the person reconnecting with their own credentials, so perform it only on an explicit ask and never to clear an error.

Contract A connection the project does not hold is reported as absent rather than treated as already dropped.

project-write

Connect a channel

channel_connect: Start connecting an account of a known channel type (a learned vendor, an MCP server, a live feed) to the project or to the person, the same workflow the Integrations lens's tile runs. The thread then shows the connection's card: the sign-in link, or the form the person fills and confirms (a key, or the client id and secret of the app they register with the vendor, which the reply walks them through).Teamruns on a thread, stream it

FieldTypeRequiredDescription
channelstringoptionalthe type to connect, by key or name — slack, "ledgerly", mcp
descriptionstringoptionalwhat to connect in the person's words, when no type is named
scopestringoptional'project' (the default) or 'user' for the person's own account
accountstringoptional'personal' or 'organization': the kind of account, which picks the setup steps

Contract A credential never passes through the turn: the person signs in or types the key into the connection's card and confirms it.

Contract A system no type names is answered as unknown; channel_type_add learns it from its docs or MCP address.

project-write

Learn a new channel type

channel_type_add: Learn how to reach a system no channel type names, from its API docs, OpenAPI document or MCP server address, and start its first connection. The vendor's web domain is confirmed with the person first unless an address they gave names it; with no docs in the project, web research lands the vendor's docs and how an account signs in. The catalog is searched first; only on a miss is the type drafted, and the reply walks the person through the credential for their kind of account: the vendor's console, the choices to make, Runlog's redirect address. It joins every project's catalog once one call through it succeeds.Teamruns on a thread, stream it

FieldTypeRequiredDescription
systemstringoptionalthe system's name
descriptionstringrequiredthe system and its docs, OpenAPI or MCP address
domainstringoptionalthe vendor's web domain, once the person confirmed it
proposed_domainstringoptionalthe domain believed to be the vendor's, offered to the person to confirm
accountstringoptional'personal' or 'organization': the kind of account, which picks the setup steps

Contract The drafted type is written for everyone only after one verified call with the person's own credential.

Contract Every endpoint passes the address guard; a write endpoint is a gated outside write.

Contract Nothing is drafted before the vendor's domain is settled: a name under a suffix anyone can claim a name under (github.io) is refused.

project-write

Sync a channel

channel_sync: Pull one connected channel's history since its last sync into the project's corpus, the same sync the Channels screen's Sync now and the channel-sync route run. A mailbox or LinkedIn sync then moves the project's leads onto their live threads and files each person the threads show a two-way conversation with as a lead. It reports what was ingested, skipped as already held, and moved. A file store (Google Drive, Dropbox) keeps no sync: its picked files are imported.Teamruns on a thread, stream it

FieldTypeRequiredDescription
channelstringrequiredthe connection to sync, as channel_read listed it

Contract A sync already running answers as running rather than starting a second; say so instead of retrying.

Contract Synced content reaches retrieval only after ingestion drains, so no step in this turn may read it as already in the corpus.

project-write

Import files from a file store

channel_import: Search a connected file store (a learned Google Drive, OneDrive) for the files the person means, then land the ones they picked in the project's corpus as they stand now. A file store never syncs live: importing a file again later lands its newer bytes as a new version and skips it when nothing changed.Teamruns on a thread, stream it

FieldTypeRequiredDescription
channelstringrequiredthe connection to read, as channel_read listed it
querystringoptionalwords in the file's name or text; answers the matches to pick from and lands nothing
fileIdsstring[]optionalthe ids of the files the person picked from a search; lands those files

Contract A search lands nothing: the files the person picks from its answer are the ones imported.

Contract Imported content reaches retrieval only after ingestion drains, so no step in this turn may read it as already in the corpus.