First-party app
TimelinesAI

TimelinesAI

Send WhatsApp messages and notes, manage chats, labels, files, reactions and webhooks, and read workspace quota through TimelinesAI.

stable CommunicationMarketing

About

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.

App id
io.w6w.timelinesai
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Communication · Marketing

Overview

TimelinesAI 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.

Build with TimelinesAI

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.

Get Chat

chat-get

Get one chat's details (GET /chats/{chat_id}).

Update Chat

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.

List Chats

chats-list

List chats, newest activity first, 50 per page; filters combine with AND (GET /chats).

Delete File

file-delete

Delete an uploaded file (DELETE /files/{file_uid}).

Get File

file-get

A file's details and a temporary download URL, valid for 15 minutes (GET /files/{file_uid}).

Upload File from URL

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.

List Files

files-list

Files uploaded to the workspace (GET /files).

Add Labels to Chat

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.

List Chat Labels

labels-list

The labels on a chat (GET /chats/{chat_id}/labels).

Replace Chat Labels

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.

Get Message

message-get

Get one message by UID (GET /messages/{message_uid}).

Send Message to Chat

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.

Send Message to JID

message-send-to-jid

Send a message to a chat or group by its WhatsApp JID (POST /messages/to_jid).

Send Message to Phone

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.

Get Message Status History

message-status-history

A message's delivery history from queued to read, with any failure reason (GET /messages/{message_uid}/status_history).

List Messages

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.

Add Note to Chat

note-add

Add an internal note to a chat; nothing is sent to the contact (POST /chats/{chat_id}/notes).

Update Message Reaction

reaction-update

Set an emoji reaction on a message (PATCH /messages/{message_uid}/reactions).

Get Message Reactions

reactions-get

The current reactions on a message (GET /messages/{message_uid}/reactions).

List Teammates

teammates-list

Teammates and teams in the workspace (GET /workspace/teammates).

Create Webhook

webhook-create

Subscribe an HTTPS URL to a TimelinesAI event (POST /webhooks). Your endpoint must answer 2xx within 5 seconds.

Delete Webhook

webhook-delete

Permanently delete a webhook subscription; deliveries stop immediately (DELETE /webhooks/{webhook_id}).

Get Webhook

webhook-get

Get one webhook subscription (GET /webhooks/{webhook_id}).

Update Webhook

webhook-update

Change a webhook's event, URL or enabled flag; only supplied fields change (PUT /webhooks/{webhook_id}).

List Webhooks

webhooks-list

The workspace's webhook subscriptions (GET /webhooks).

List WhatsApp Accounts

whatsapp-accounts-list

The WhatsApp numbers connected to the workspace (GET /whatsapp_accounts).

Get Workspace

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>"
      }
    }
  ]
}

Here are some of the things you can do

  • Get Chat

    read
    chat-get
  • Update Chat

    perform
    chat-update
  • List Chats

    search
    chats-list
  • Get File

    read
    file-get
  • Upload File from URL

    perform
    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.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { 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);
Install the CLI
npm install -g @w6w/cli
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.

What the agent gets

Credentials it can't read

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.

A tool surface scoped to the caller

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.

A durable workflow in one call

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.

Health-aware discovery

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).

Request MCP access

Health checks

TimelinesAI declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

TimelinesAI platform status

service

TimelinesAI API reachability

Unsigned GET /workspace. A schema-correct 'missing_credentials' refusal proves the API is up. TimelinesAI publishes no status page.

quota

Workspace quota usage

Messaging and API-call quota used against the plan, from GET /workspace.