Send WhatsApp messages and notes, manage chats, labels, files, reactions and webhooks, and read workspace quota through TimelinesAI.
TimelinesAI ships in the w6w first-party pack. It declares 27 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.
io.w6w.timelinesaiTimelinesAI puts a team’s WhatsApp numbers into a shared inbox with a REST API. A number is an ordinary WhatsApp account connected to the workspace, so a workflow can message any phone, reply inside an existing chat or group, and keep CRM-style state on the conversation: labels, an assigned teammate, an open/closed flag, internal notes and a read state.
This app covers the Public API: sending a message to a phone number, a chat id or a WhatsApp JID (with an uploaded file, an attachment template, or as a reply); reading chats, message history, a single message, its delivery history and its reactions; adding internal notes; adding or replacing a chat’s labels; updating a chat (rename, assign, close, mark read); uploading a file from a URL and listing, fetching or deleting uploaded files; managing the webhook subscriptions that push new messages, new chats, assignments, calls and account events to your endpoint; and reading the workspace, its connected WhatsApp accounts and its teammates.
Every path, verb and field was read on 2026-10-06 from TimelinesAI’s own reference at timelines.ai/docs, whose pages embed a full OpenAPI document. Sends spend message credits and are rate limited per IP; the WhatsApp Business Platform (WABA) endpoints are a separate surface and are not covered. See the README for what was left out and the quirks that shaped the design.
Three routes to the same 27 actions. The Workflow tab is generated from TimelinesAI's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
chat-update Rename a chat, assign a responsible teammate, close or reopen it, or change its read state (PATCH /chats/{chat_id}). Only the fields you set change.
chats-list List chats, newest activity first, 50 per page; filters combine with AND (GET /chats).
file-get A file's details and a temporary download URL, valid for 15 minutes (GET /files/{file_uid}).
file-upload-url Upload a file from a publicly reachable URL so it can be attached to a message (POST /files). Filename and mime type are auto-detected.
labels-add Add labels to a chat without removing the existing ones (PUT /chats/{chat_id}/labels). The verb is counter-intuitive: PUT adds, POST replaces.
labels-replace Replace ALL of a chat's labels with the given set (POST /chats/{chat_id}/labels). The verb is counter-intuitive: POST replaces, PUT adds.
message-send-to-chat Send a message into an existing chat or group by its chat id (POST /chats/{chat_id}/messages). A text-and-file message costs 2 message credits.
message-send-to-jid Send a message to a chat or group by its WhatsApp JID (POST /messages/to_jid).
message-send-to-phone Send a WhatsApp message to a phone number; no earlier chat or contact is needed (POST /messages). A text-and-file message costs 2 message credits.
message-status-history A message's delivery history from queued to read, with any failure reason (GET /messages/{message_uid}/status_history).
messages-list A chat's message history, newest first, 50 per page (GET /chats/{chat_id}/messages). The reference documents no page parameter; page with the message cursors.
note-add Add an internal note to a chat; nothing is sent to the contact (POST /chats/{chat_id}/notes).
reaction-update Set an emoji reaction on a message (PATCH /messages/{message_uid}/reactions).
reactions-get The current reactions on a message (GET /messages/{message_uid}/reactions).
webhook-create Subscribe an HTTPS URL to a TimelinesAI event (POST /webhooks). Your endpoint must answer 2xx within 5 seconds.
webhook-delete Permanently delete a webhook subscription; deliveries stop immediately (DELETE /webhooks/{webhook_id}).
webhook-update Change a webhook's event, URL or enabled flag; only supplied fields change (PUT /webhooks/{webhook_id}).
whatsapp-accounts-list The WhatsApp numbers connected to the workspace (GET /whatsapp_accounts).
workspace-get Workspace identity, plan and current quota utilisation (GET /workspace).
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying TimelinesAI's real ids.
{
"manifestVersion": "2",
"name": "timelinesai-example",
"steps": [
{
"id": "chat-get",
"uses": {
"app": "io.w6w.timelinesai",
"action": "chat-get",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"chatId": "<chatId>"
}
}
]
}chat-get chat-update chats-list file-get file-upload-url +22 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for TimelinesAI, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to TimelinesAI. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "chat-get",
payload: {
chatId: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action chat-get --payload '{"chatId":"<value>"}' Give an AI agent TimelinesAI — without giving it TimelinesAI's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.timelinesai#chat-get",
"input": {
"chatId": "<chatId>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's TimelinesAI connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
TimelinesAI's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. TimelinesAI itself is MIT, and the runtime that executes it is source-available (FSL).
TimelinesAI declares its own checks, so its health is a property of the app rather than something the host guesses at.
Unsigned GET /workspace. A schema-correct 'missing_credentials' refusal proves the API is up. TimelinesAI publishes no status page.
Messaging and API-call quota used against the plan, from GET /workspace.