# Get document Source: https://docs.timeless.day/api-reference/documents/get-document GET /documents/{document_id} Returns a document by ID. Documents are AI-generated artifacts from meetings, such as summaries, action items, or notes. You can request the content in multiple formats. # Introduction Source: https://docs.timeless.day/api-reference/introduction Learn how to authenticate, handle errors, and paginate through the Timeless API. The Timeless API is a REST API served over HTTPS. All requests and responses use JSON, and all endpoints require authentication. **Base URL:** ``` https://api.timeless.day/v1 ``` ## Authentication Authenticate by including your API token in the `Authorization` header using the `Bearer` scheme. ```bash theme={null} curl https://api.timeless.day/v1/meetings \ -H "Authorization: Bearer YOUR_API_TOKEN" ``` You can generate API tokens from your [Timeless dashboard](https://my.timeless.day/api-token). Tokens are 64-character hex strings. Keep them secret — treat them like passwords. If authentication fails, the API returns a `401` response: ```json theme={null} { "error": { "code": "unauthorized", "message": "Authentication required" } } ``` ## Errors The API uses standard HTTP status codes. All error responses share the same structure: ```json theme={null} { "error": { "code": "not_found", "message": "Resource not found" } } ``` Validation errors include a `details` array identifying the invalid fields: ```json theme={null} { "error": { "code": "bad_request", "message": "Request validation failed", "details": [ { "field": "limit", "message": "Input should be less than or equal to 100" } ] } } ``` | Status | Code | Description | | - | - | - | | 400 | `bad_request` | Invalid request parameters or body | | 401 | `unauthorized` | Missing or invalid API token | | 403 | `forbidden` | Token is valid but lacks permission | | 403 | `usage_limit_exceeded` | The free trial has ended, so recording (bots, uploads, automation changes) is blocked | | 403 | `upload_limit_exceeded` | The plan's daily API upload limit is used up | | 404 | `not_found` | Resource does not exist or is not accessible | | 429 | `rate_limited` | Too many requests | | 500 | `internal_error` | Unexpected server error | ## Rate limiting Requests are rate limited per API token and IP address. The default limits are: | Endpoint | Limit | | - | - | | Most endpoints | 60 requests/minute | | Webhook creation | 20 requests/minute | | File upload | 10 requests/minute | | Send the note-taker to a meeting link | 10 requests/minute and 60 requests/hour per user | Every response includes rate limit headers: | Header | Description | | - | - | | `X-RateLimit-Limit` | Maximum requests allowed in the window | | `X-RateLimit-Remaining` | Requests remaining in the current window | | `X-RateLimit-Reset` | Unix timestamp when the window resets | When you exceed the limit, the API returns `429` with a `Retry-After` header indicating how many seconds to wait. ### Plan limits On top of the limits above, each account has daily limits that depend on its plan. They apply per user across all of that user's API tokens and MCP connections. Credits stay the usage budget: a free trial ends when its credits are used up. | Plan | API and MCP calls per day | API uploads per day | Recording (bots, uploads) | | - | - | - | - | | Free, active trial | 100 | 5 files | While trial credits remain | | Free, trial ended | 100 | Blocked | Blocked | | Pro / Team | 250 | 5 files | Allowed | | Max / Business | No daily limit | 100 files | Allowed | | Enterprise | No daily limit | 100 files, adjustable by contract | Allowed | The call window lasts 24 hours from its first request, and the upload count resets at 00:00 UTC. Going over the daily call limit returns `429` with `Retry-After`, and going over the upload limit returns `403` `upload_limit_exceeded`. Accounts on a limited plan also get an `X-Timeless-Notice` response header (and, over MCP, an extra text block on each tool result) with a link to upgrade. ## Pagination List endpoints use cursor-based pagination. Responses include: ```json theme={null} { "data": [...], "next_cursor": "eyJjcmV...", "has_more": true } ``` Pass `cursor` as a query parameter to fetch the next page. Control page size with `limit` (1-100, default 25). ```bash theme={null} curl "https://api.timeless.day/v1/meetings?limit=10&cursor=eyJjcmV..." \ -H "Authorization: Bearer YOUR_API_TOKEN" ``` When `has_more` is `false`, you have reached the end of the list. ## Resource IDs All resources use prefixed IDs to make them easy to identify at a glance: | Resource | Prefix | Example | | - | - | - | | Meeting | `mtg_` | `mtg_abc123` | | Room | `room_` | `room_abc123` | | Document | `doc_` | `doc_abc123` | | User | `usr_` | `usr_abc123` | | Team | `team_` | `team_abc123` | | Permission | `perm_` | `perm_abc123` | | Speaker | `spk_` | `spk_abc123` | | Webhook | `whk_` | `whk_abc123` | ## Expanding related resources Some endpoints support an `expand` query parameter that includes related resources inline instead of requiring separate requests. For example, to include documents with meetings: ```bash theme={null} curl "https://api.timeless.day/v1/meetings?expand=documents" \ -H "Authorization: Bearer YOUR_API_TOKEN" ``` When a field is expandable but not requested, it is omitted from the response entirely. # MCP server Source: https://docs.timeless.day/api-reference/mcp Connect AI assistants to your Timeless data using the Model Context Protocol. The Timeless MCP server lets AI assistants like Claude, Cursor, and other MCP-compatible clients access your meetings, transcripts, rooms, documents, and webhooks directly. [MCP (Model Context Protocol)](https://modelcontextprotocol.io) is an open standard for connecting AI assistants to external data sources. Instead of copying and pasting data, your assistant can query Timeless on your behalf. ## Server URL ``` https://api.timeless.day/mcp/ ``` ## Authentication The MCP server supports two ways to authenticate, both tied to your Timeless account: * **OAuth 2.1 (recommended)** — a browser-based sign-in that your client manages for you. * **API key** — a static bearer token for headless setups or clients that only support custom headers. ### OAuth 2.1 By default, the MCP server uses OAuth 2.1 with PKCE. When you first connect, your MCP client opens a browser window where you sign in with your Google or Microsoft account. After you authorize, the client handles token management automatically — no manual token handling required. ### API key If your client supports custom request headers, you can authenticate with a Timeless API token instead of the OAuth flow. Pass it in the `Authorization` header using the `Bearer` scheme: ``` Authorization: Bearer YOUR_API_TOKEN ``` Generate a token from your [Timeless dashboard](https://my.timeless.day/api-token) — it is the same token used for the [REST API](/api-reference/introduction). Tokens are 64-character hex strings; keep them secret and treat them like passwords. ## Connecting your client Use the tabs below for the OAuth flow, or jump to [connecting with an API key](#connecting-with-an-api-key) for header-based authentication. **Claude Desktop** Add the following to your Claude Desktop configuration file: * **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json` * **Windows:** `%APPDATA%\Claude\claude_desktop_config.json` ```json theme={null} { "mcpServers": { "timeless": { "type": "http", "url": "https://api.timeless.day/mcp/" } } } ``` Restart Claude Desktop. You will be prompted to authorize on first use. **Claude Code** Run the following command in your terminal: ```bash theme={null} claude mcp add --transport http timeless https://api.timeless.day/mcp/ ``` You will be prompted to authorize on first use. **Cursor** Add the following to your Cursor MCP configuration (`.cursor/mcp.json` in your project or global settings): ```json theme={null} { "mcpServers": { "timeless": { "url": "https://api.timeless.day/mcp/" } } } ``` Restart Cursor. You will be prompted to authorize on first use. ## Connecting with an API key To skip the browser sign-in, add your Timeless API token as an `Authorization` header in your client configuration. The client connects immediately using the token — no authorization prompt. **Claude Desktop** Add the following to your Claude Desktop configuration file: * **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json` * **Windows:** `%APPDATA%\Claude\claude_desktop_config.json` ```json theme={null} { "mcpServers": { "timeless": { "type": "http", "url": "https://api.timeless.day/mcp/", "headers": { "Authorization": "Bearer YOUR_API_TOKEN" } } } } ``` Restart Claude Desktop. **Claude Code** Run the following command in your terminal: ```bash theme={null} claude mcp add --transport http timeless https://api.timeless.day/mcp/ \ --header "Authorization: Bearer YOUR_API_TOKEN" ``` **Cursor** Add the following to your Cursor MCP configuration (`.cursor/mcp.json` in your project or global settings): ```json theme={null} { "mcpServers": { "timeless": { "url": "https://api.timeless.day/mcp/", "headers": { "Authorization": "Bearer YOUR_API_TOKEN" } } } } ``` Restart Cursor. ## Available tools Once connected, your AI assistant can use the following tools: ### Meetings | Tool | Description | | - | - | | `list_meetings` | List meetings with filtering by status, date range, participant, company, and room. Supports expanding related documents. | | `get_meeting_transcript` | Get a timestamped transcript with speaker labels for a given meeting. | | `get_meeting_recording` | Get a temporary signed URL to download a meeting recording. | | `list_upcoming_meetings` | List your upcoming calendar events with their `evt_` IDs and join links. | ### Note-taker | Tool | Description | | - | - | | `schedule_meeting_bot` | Schedule the note-taker for a calendar event by its `evt_` ID. | | `send_bot_to_meeting_url` | Send the note-taker to a Zoom, Google Meet, Teams, or Webex link right now, with no calendar event needed. Returns the `mtg_` ID the recording and transcript will appear under. | | `cancel_meeting_bot` | Cancel the note-taker for an upcoming calendar event. | | `get_notetaker_automation` | Get which calendar events the note-taker joins on its own. | | `set_notetaker_automation` | Set the automation level: `JOIN_ALL_EVENTS`, `JOIN_AS_HOST`, or `MANUAL`. | ### Rooms | Tool | Description | | - | - | | `list_rooms` | List rooms with text search. Supports expanding related documents and meetings. | | `get_room` | Get one room by its `room_` ID. Supports expanding related documents and meetings. | | `create_room` | Create an empty room you own. | | `rename_room` | Rename a room you own or have edit access to. | | `add_meeting_to_room` | Add a meeting that has started to a room you own or have edit access to. | | `remove_meeting_from_room` | Remove a meeting from a room. The meeting itself is kept. | | `list_room_permissions` | List who a room you own is shared with. | | `set_room_permission` | Share a room you own with a teammate or your whole team, with `read` or `edit` access. Public links are available only through the API and the app. | ### Team | Tool | Description | | - | - | | `list_team_members` | List your teammates' `usr_` IDs, names, and emails, plus your `team_` ID, for sharing. | ### Documents | Tool | Description | | - | - | | `get_document` | Get a document in a specific format: `markdown`, `html`, `raw`, `docx`, or `json`. | ### Webhooks | Tool | Description | | - | - | | `list_webhooks` | List all webhooks for your account. | | `create_webhook` | Create a new webhook with a URL and event subscriptions. | | `update_webhook` | Update a webhook's URL, events, or enabled status. | | `delete_webhook` | Delete a webhook. | ## Example usage After connecting, you can ask your assistant questions like: * "What meetings did I have last week?" * "Show me the transcript from my meeting with Sarah" * "Summarize the action items from today's standup" * "Send the note-taker to [https://meet.google.com/abc-defg-hij](https://meet.google.com/abc-defg-hij)" * "Create a room for the Acme renewal and add last week's Acme calls" * "Share the Acme renewal room with Sarah" * "Create a webhook to notify me when meetings are completed" The assistant will call the appropriate Timeless tools to answer your questions. # Cancel bot Source: https://docs.timeless.day/api-reference/meetings/cancel-bot DELETE /meetings/{event_id}/bot Cancels a previously scheduled AI note-taker bot for an event. The request is accepted and processed asynchronously — a `202` means the cancellation has been queued. # Get recording Source: https://docs.timeless.day/api-reference/meetings/get-recording GET /meetings/{meeting_id}/recording Returns a temporary URL to download the recording for a meeting. The URL is short-lived and should be used promptly. # Get transcript Source: https://docs.timeless.day/api-reference/meetings/get-transcript GET /meetings/{meeting_id}/transcript Returns the transcript for a meeting, including speaker identification and time-stamped segments. # List meetings Source: https://docs.timeless.day/api-reference/meetings/list-meetings GET /meetings Returns a paginated list of meetings accessible to the authenticated user. Supports filtering by status, date range, participants, company, room, and more. # List meeting permissions Source: https://docs.timeless.day/api-reference/meetings/list-permissions GET /meetings/{meeting_id}/permissions List public, teammate, and team permissions for a meeting you own. Includes the share URL. # List upcoming meetings Source: https://docs.timeless.day/api-reference/meetings/list-upcoming-meetings GET /meetings/upcoming Returns a paginated list of upcoming meetings from the authenticated user's connected calendar, ordered by start time. These are scheduled calendar events that have not yet started — distinct from the recorded meetings returned by `GET /meetings`. # Revoke meeting permission Source: https://docs.timeless.day/api-reference/meetings/revoke-permission DELETE /meetings/{meeting_id}/permissions/{permission_id} Revoke a permission from a meeting you own. Other access remains unchanged, and repeating the request returns `204`. # Schedule bot Source: https://docs.timeless.day/api-reference/meetings/schedule-bot POST /meetings/{event_id}/bot Schedules the AI note-taker bot to join a specific upcoming event. The request is accepted and processed asynchronously — a `202` means the bot has been queued to join, not that it has joined yet. To send the bot to a link with no calendar event, use [Send bot to link](/api-reference/meetings/send-bot-to-link). # Send bot to link Source: https://docs.timeless.day/api-reference/meetings/send-bot-to-link POST /meetings/bot Sends the AI note-taker bot to a video-conference link right now. The meeting doesn't need a calendar event. For a meeting on your calendar, use [Schedule bot](/api-reference/meetings/schedule-bot) instead. The request is processed asynchronously. A `202` means the request was accepted, not that the bot has joined. The response includes the `meeting_id` that the recording and transcript will appear under, which is also the ID that `meeting.transcript_ready` webhooks carry. If the bot can't be created, that meeting never appears. If your note-taker is already scheduled for, joining, or in the same call (including one booked for a calendar event), that bot is kept and no second bot is sent. In that case the returned `meeting_id` won't resolve. Find the meeting with [List meetings](/api-reference/meetings/list-meetings) instead. Limited to 10 requests per minute and 60 per hour per user. # Set meeting permission Source: https://docs.timeless.day/api-reference/meetings/set-permission POST /meetings/{meeting_id}/permissions Grant or update access to a meeting you own for a teammate, your team, or anyone with the link. Public access is read-only. # Add meeting to room Source: https://docs.timeless.day/api-reference/rooms/add-meeting PUT /rooms/{room_id}/meetings/{meeting_id} Add a meeting you can access to a room you own or have edit access to. Only meetings that have started can be added, and repeating the request returns `204`. Teammates the room is shared with can read the meetings in it. # Create room Source: https://docs.timeless.day/api-reference/rooms/create-room POST /rooms Create an empty room you own. Add meetings to it with **Add meeting to room** and share it with **Set room permission**. # Delete room Source: https://docs.timeless.day/api-reference/rooms/delete-room DELETE /rooms/{room_id} Delete a room you own, along with the documents filed only in this room. The meetings in the room are kept. Deletion is asynchronous, so the room can still be listed for a few seconds after the `202`. # Get room Source: https://docs.timeless.day/api-reference/rooms/get-room GET /rooms/{room_id} Returns one room you own or that is shared with you. # List room permissions Source: https://docs.timeless.day/api-reference/rooms/list-permissions GET /rooms/{room_id}/permissions List public, teammate, and team permissions for a room you own. Includes the share URL. # List rooms Source: https://docs.timeless.day/api-reference/rooms/list-rooms GET /rooms Returns a paginated list of rooms accessible to the authenticated user. Rooms group related meetings together. # Remove meeting from room Source: https://docs.timeless.day/api-reference/rooms/remove-meeting DELETE /rooms/{room_id}/meetings/{meeting_id} Remove a meeting from a room you own or have edit access to, whoever added it. The meeting itself is kept. # Rename room Source: https://docs.timeless.day/api-reference/rooms/rename-room PATCH /rooms/{room_id} Rename a room you own or have edit access to. # Revoke room permission Source: https://docs.timeless.day/api-reference/rooms/revoke-permission DELETE /rooms/{room_id}/permissions/{permission_id} Revoke a permission from a room you own. Other access remains unchanged, and repeating the request returns `204`. # Set room permission Source: https://docs.timeless.day/api-reference/rooms/set-permission POST /rooms/{room_id}/permissions Grant or update access to a room you own for a teammate, your team, or anyone with the link. Public access is read-only. Teammates and your team can read the meetings in the room. Find teammate IDs and your team ID with **List team members**. # Get note-taker automation Source: https://docs.timeless.day/api-reference/settings/get-notetaker-automation GET /settings/notetaker-automation Returns the current AI note-taker automation mode for your account. # Set note-taker automation Source: https://docs.timeless.day/api-reference/settings/set-notetaker-automation PUT /settings/notetaker-automation Updates the AI note-taker automation mode. Changing the mode immediately schedules or cancels bots for your upcoming events to match the new setting. # List team members Source: https://docs.timeless.day/api-reference/team/list-team-members GET /team/members Returns your active teammates, excluding you, plus your team ID. Use them as recipients when you share meetings and rooms. # Upload media Source: https://docs.timeless.day/api-reference/upload/upload-media PUT /meetings/upload Upload an audio or video file for processing. The request body should be the raw binary file content — not multipart form data. Metadata is passed as query parameters. After uploading, the file is queued for transcription and analysis. Use the returned meeting ID to check the status via List meetings. > [!NOTE] > > The upload endpoint has a stricter rate limit of 10 requests per minute. # Create webhook Source: https://docs.timeless.day/api-reference/webhooks/create-webhook POST /webhooks Creates a new webhook subscription. The response includes a `secret` that you should store securely — it is used to verify webhook signatures and is only returned once at creation time. # Delete webhook Source: https://docs.timeless.day/api-reference/webhooks/delete-webhook DELETE /webhooks/{webhook_id} Permanently deletes a webhook. No further events will be delivered to its URL. # List webhooks Source: https://docs.timeless.day/api-reference/webhooks/list-webhooks GET /webhooks Returns all webhook subscriptions owned by the authenticated user. The `secret` is not included in list responses — it is only returned when a webhook is created. # Update webhook Source: https://docs.timeless.day/api-reference/webhooks/update-webhook PATCH /webhooks/{webhook_id} Updates an existing webhook. Only include the fields you want to change — omitted fields remain unchanged. Fields cannot be set to `null`. # Verify signatures Source: https://docs.timeless.day/api-reference/webhooks/verify-signatures How to verify webhook delivery signatures to ensure authenticity. Every webhook delivery includes an `X-Webhook-Signature` header containing an HMAC-SHA256 signature of the request body. You should verify this signature to confirm the payload was sent by Timeless and has not been tampered with. ## Signature format The header value has the format: ``` sha256= ``` The HMAC is computed using the webhook's `secret` (returned when you [created the webhook](/api-reference/webhooks/create-webhook)) as the key and the raw JSON request body as the message. ## Verification examples ```python Python theme={null} import hashlib import hmac def verify_signature(payload: bytes, signature_header: str, secret: str) -> bool: expected = hmac.new( secret.encode(), payload, hashlib.sha256, ).hexdigest() received = signature_header.removeprefix("sha256=") return hmac.compare_digest(expected, received) ``` ```javascript JavaScript theme={null} const crypto = require("crypto"); function verifySignature(payload, signatureHeader, secret) { const expected = crypto .createHmac("sha256", secret) .update(payload) .digest("hex"); const received = signatureHeader.replace("sha256=", ""); return crypto.timingSafeEqual( Buffer.from(expected), Buffer.from(received) ); } ``` > [!WARNING] > > Always use a constant-time comparison function (like `hmac.compare_digest` or `crypto.timingSafeEqual`) to prevent timing attacks. ## Webhook payload The request body is a JSON object whose structure depends on the webhook event type. For example, meeting-related events include the same fields as a meeting in the [List meetings](/api-reference/meetings/list-meetings) response (`id`, `title`, `status`, `participants`, `host`, `documents`). Refer to the documentation for each event type for its specific payload format. ## Delivery behavior * Deliveries time out after 10 seconds. * A delivery is considered successful if your endpoint returns a `2xx` status code. * Failed deliveries are retried up to 3 times with increasing delays (1s, 10s, 60s). * Retries occur for server errors (5xx), rate limits (429), and network failures. Client errors (4xx other than 429) are not retried. # Commands Source: https://docs.timeless.day/cli/commands The timeless command surface: meetings, bot, events, playbooks, and the desktop app. Every command group prints help on a bare invocation (`timeless meetings`, `timeless bot`, …) and accepts `--json`. Because the CLI is agentic-first, output is JSON automatically when piped; pass `--json` to force it anywhere. `timeless --help` is always authoritative for the full flag list. ## Skills Write the embedded skill bundle into your coding agent's discovery layout so it knows how to drive the CLI. This is the CLI-side step of [install](/cli/install) — the desktop app installs the binary and owns login; you (or your agent) install the skill. ```bash theme={null} timeless skills install # the configured harness timeless skills install --harness codex # a specific one timeless skills install --harness claude-code --harness codex # repeatable ``` `--harness` accepts `claude-code`, `codex`, or `cursor`, is repeatable to wire several at once, and defaults to the harness in your config. The result lists every file written per harness. > [!NOTE] > > `skills install` **writes files only — it seeds no config.** Setting up the > `playbooks:` map is `timeless playbooks init`. If `playbooks list` comes back empty, > `skills install` will not fix it; the two are separate steps of onboarding. There is no `timeless setup` command in the desktop-app model — the app handles install and login; `skills install` handles the agent wiring, and `playbooks init` seeds the default playbooks. ## Auth The CLI authenticates with **OAuth** (a loopback PKCE flow), not an API token — unlike the [REST API](/api-reference/introduction), which uses a `Bearer` token. You never paste a token into the CLI: you sign in through the browser once, and the token is stored in your OS keychain (with an encrypted file fallback under the config directory). Every authenticated command resolves its token from that store. ```bash theme={null} timeless login # one OAuth click in the browser timeless login --session-token # non-interactive: exchange a session token read from stdin timeless status --json # {"authenticated": true, "base_url": "…/v1"} timeless status --wait 10m --json # block-poll until a sign-in lands timeless logout # clears the stored token; safe to run repeatedly ``` `status` is a state report, not an identity lookup — there is no `whoami` endpoint. It exits **non-zero** when you are not logged in, even though it still prints a clean JSON document, so judge the connection by the exit code. Use `--wait` instead of a `sleep` loop when something else is performing the sign-in — a human in the desktop app window, or the app provisioning a token; it exits `0` the moment the token is valid, or non-zero at the deadline. `--wait` is not a check. Reach for the plain `status --json` to find out whether you are authenticated, and add `--wait` only once a sign-in is already under way — otherwise you block for the full budget to learn something the instant check would have told you. The desktop app and the bundled CLI **share one token**, so signing in once covers both. If the app is already signed in, it can provision the CLI's token from that session with no browser at all. That session is the whole input: if the app is *not* signed in there is nothing to provision from, and the trigger still reports `emitted: true` while the wait after it simply expires. `app authenticate` returns immediately, so pair it with a short `--wait`: ```bash theme={null} timeless app authenticate # provision from the app's existing login timeless status --wait 2m --json # exit 0 the moment the token lands ``` Conversely, `timeless login` writes to the same shared store the app reads, so the app can refresh the token going forward. > [!NOTE] > > When any command returns a re-login error, the fix is always `timeless login`. A `401` > from the API surfaces this way. ## Meetings Read meetings, transcripts, and recordings. ```bash theme={null} timeless meetings list # paginated list of recorded meetings timeless meetings upcoming # upcoming calendar events (evt_ IDs) timeless meetings get # one meeting's details timeless meetings transcript # timestamped transcript with speakers timeless meetings recording # signed download URL (or null) ``` `list` supports `--status` (`completed|processing|scheduled|failed`), `--start-date` / `--end-date` (`YYYY-MM-DD`), `--search`, `--participant`, `--company`, `--room`, `--limit` (1–100), and `--cursor` for pagination. Paginate by passing the previous response's `next_cursor` back as `--cursor` while `has_more` is `true`. `upcoming` lists not-yet-started events from your connected calendar and accepts `--within-hours` (only events starting within that window), `--limit` (1–100), and `--cursor`. > [!NOTE] > > `upcoming` returns calendar events whose IDs are `evt_` IDs — exactly what > `timeless bot schedule ` expects. Already-recorded meetings carry `mtg_` > IDs and are returned by `meetings list` instead. ## Bot Control the AI note-taker. `` is a **calendar event** ID, not a meeting ID. Scheduling and cancelling are asynchronous. ```bash theme={null} timeless bot schedule # ask the bot to join a calendar event timeless bot cancel # cancel a scheduled bot timeless bot automation get # read the auto-join policy timeless bot automation set # JOIN_ALL_EVENTS | JOIN_AS_HOST | MANUAL ``` ## Events Drain the delivery queue directly — the building block for custom recap delivery. ```bash theme={null} timeless events pull --json # lease pending events and print them timeless events pull --json --limit 50 # cap how many are leased (1–100) ``` Each event is `{ "id", "type", "created_at", "payload": { … } }`. `event.type` is an open set — dedupe by the stable `event.id` and skip types you do not handle. Two types reach the queue today: `meeting.transcript_ready` and `meeting.initial_summary_ready`. > [!NOTE] > > `events pull` is **read-only**: it can display events but never consume them. > Delivery uses an SQS-style visibility timeout, so a leased event reappears once the > timeout lapses — inspecting an event, any number of times, never costs it its > attempt. (`--ack` was removed and now errors; only `playbooks run --event-type` > consumes events.) ## Playbooks run Turn events into artifacts. This is the **sole entrypoint that executes a playbook**, in two mutually exclusive forms: ```bash theme={null} timeless playbooks run --event-type # event-driven work timeless playbooks run --event-type --limit 10 # cap events leased per pull (1–100) timeless playbooks run --event-type --max-age 0 # this pass: process stale events too timeless playbooks run # a scheduled playbook ``` `--event-type` leases pending events of that type and runs **every** enabled playbook whose `on.event` matches, one attempt each, each writing its own artifact — so three playbooks on one type turn one meeting into three deliverables. A `` may only be used for a **scheduled** playbook, which renders its prompt once with time variables and writes a single artifact without touching the queue. Naming an event-driven playbook is refused, because two invocations racing for one event is exactly what `--event-type` prevents. `--limit` and `--max-age` are event-form only and inert with a playbook name. `--max-age` overrides [`events.max_age`](/cli/config#freshness-window) for one pass — `0` disables expiry, `168h` widens it to a week — which is how you deliberately work through a backlog. Artifacts are written to `~/.local/share/timeless/artifacts`; the desktop app surfaces each one in-app. `run` never opens a browser. The result reports counts at **two levels**, which is the easy thing to get wrong. `pulled`, `delivered`, `deferred`, and `expired` are **per event**; `attempts`, `handled`, and `lost` are **per (event, playbook) pair**. One event with three playbooks gives `delivered: 1` and `attempts: 3`, so `delivered == handled + lost` is false — compare outcomes against `attempts`. `handled` is the success count; `lost` entries are listed in `losses[]` with a reason. Exit status is non-zero when `lost > 0` or `deferred > 0`. > [!WARNING] > > Delivery is **at-most-once**: each event is acknowledged once, *before* any attempt. > An event gets one round of attempts, and one that produces nothing is reported in > `losses` rather than retried. Do not expect a failed run to be redelivered. > [!NOTE] > > `expired` is **not** a failure. An event whose meeting is older than `events.max_age` > is acknowledged and skipped — no playbook runs, no artifact is written, and the pass > still exits 0. That is what stops a week away from producing a burst of stale recaps. > `deferred` does make the exit non-zero, but it is not a lost deliverable: the lease > succeeded and the acknowledgement did not, so the event was never attempted and is > still queued for a later run. Reporting one as a loss would be a false alarm. ## App Drive the Timeless desktop app, which owns install readiness and authentication. These commands talk to the running app over its control channel. ```bash theme={null} timeless app ready --json # exit 0 once the app is installed and configured timeless app ready --wait 5m --json # block-poll until ready (or the timeout elapses) timeless app authenticate # ask the app to authenticate / own token refresh timeless app sync # ask the app to process its due triggers now ``` `app ready` is the install gate: it exits 0 only when the app is installed, running, and past first-run config. Branch on its `ready` field — the sibling `app_installed` is a supplementary on-disk check that reads `false` on every platform where bundle detection isn't implemented (currently everything but macOS), so it never means "not installed". `authenticate` and `sync` are fire-and-forget triggers, so `emitted: true` means the trigger fired, not that the app acted on it. Follow `app authenticate` with `timeless status --wait 2m`. ## Playbooks A playbook is keyed by **name** and carries its own trigger in an `on:` block — either an event binding or a schedule (see [Playbooks](/cli/playbooks)). Seed the embedded defaults and inspect what's configured: ```bash theme={null} timeless playbooks init --json # write the default playbooks into config.yaml timeless playbooks init --harness codex # …and record codex as the global default timeless playbooks list --json # show configured playbooks and each trigger timeless playbooks disable # stop it running on future triggers timeless playbooks enable # let it run again ``` `playbooks init` is idempotent and never overwrites a prompt you have edited. On a fresh machine it installs `transcript_notes`, bound to `meeting.transcript_ready`. It is a pure config write — no binary resolution, no network. Its `--harness` flag doubles as "set the global default engine", so seeding and choosing an engine is one step; that also means `changed: true` with an empty `added` is normal (the file was rewritten only to record the harness). `list` reports each playbook's name, harness, prompt, and trigger as `event=` or `schedule=interval:…` / `schedule=at:…`. `disable` / `enable` write one playbook's `enabled` key. Nothing is deleted, so `enable` restores it exactly — never delete a playbook to stop it. Both are idempotent and report `{"playbook": …, "enabled": …, "changed": …}`; `changed: false` is a success, not a no-op you need to retry. They govern **future** runs and do not abort a pass already in flight, so one more recap can still land right after. > [!NOTE] > > `playbooks list` does **not** report enabled state — its fields are name, trigger, > harness, and prompt only. Trust `disable`'s own `changed` field, or read > `config.yaml`, to confirm a playbook is parked. > [!NOTE] > > There is no separate scheduling command and no `timeless schedule`: each playbook's > cadence lives inline in its `on:` block, and the desktop app's resident timer reads the > `playbooks:` map directly. The recurring work is the app's — it runs while the machine > is on and you're signed in, so you never install a scheduler yourself. ## Config Read and write the scalar keys in `config.yaml` (see [Configuration](/cli/config)): ```bash theme={null} timeless config list --json # every key and its effective value timeless config get # one key's effective value timeless config set # persist a key ``` There are exactly seven settable keys, and `config list` is the authority: `events.max_age`, `harness`, `harness_model`, `output`, and the three `update.*` keys — which are **inert**, accepted and validated but wired to nothing (see [Configuration](/cli/config#update-keys-are-inert)). `config get` returns the **effective** value (env + file + defaults), not the file's text. `base_url` is env-driven via `TIMELESS_BASE_URL`, and `harness_path` is hand-edited only; neither is settable here. Playbooks and logging are nested, not scalar — edit them in `config.yaml`, or seed the playbooks with [`playbooks init`](/cli/playbooks). ## Harness Report which coding agents this machine can actually launch, and how. ```bash theme={null} timeless harness list --json # every supported agent, configured first timeless harness list --artifact /abs/recap.html # scope it to one artifact ``` **You do not normally need this.** It exists for the desktop app's artifact viewer, whose "Edit with AI" menu has to know what will launch here. It is read-only — no config write, no subprocess, no network. If you just want the configured harness, `config get harness` is the direct answer. Always three entries in a stable order, including agents that are not installed, so a caller can tell "unsupported" from "supported but missing". Gate on `available` (the OR of `app_available`, a desktop app, and `cli_available`, a terminal session) — those two differ in kind per harness. All three unavailable still exits 0 with a complete document, so check for an `available: true` rather than reading exit 0 as "there is something to show". ## Version ```bash theme={null} timeless version --json # {"version": "…", "commit": "…", "date": "…"} ``` `timeless --version` is equivalent. The CLI does not update itself — the desktop app's updater owns that. # Configuration Source: https://docs.timeless.day/cli/config The timeless config file: where it lives, what it holds, and what you can change. The CLI keeps its settings in a single YAML file. Run `timeless playbooks init` to create it with the default playbooks, use `timeless config set ` for scalar keys, or edit it by hand at any time. Every command reads it on startup and falls back to built-in defaults for anything you leave out. ## Location The config file is `config.yaml` inside the Timeless config directory, resolved in this order: 1. `$TIMELESS_CONFIG_DIR` 2. `$XDG_CONFIG_HOME/timeless` 3. `~/.config/timeless` Values resolve lowest to highest: built-in defaults, then the config file, then a `.env`, then the real environment. The `.env` is a local-development convenience read from your **current working directory** — not the config directory — and it only fills in `TIMELESS_*` variables that are not already set, so an explicit shell export always wins. A missing `.env` is silently ignored. ## What it contains ```yaml theme={null} # ~/.config/timeless/config.yaml base_url: https://api.timeless.day # Timeless public API base URL output: auto # default output mode: auto | json | text harness: claude-code # agent that runs playbooks harness_model: claude-sonnet-5 # model for the harness (claude-code only) harness_path: /usr/local/bin/claude # optional; only if the harness isn't on PATH playbooks: # playbook name -> playbook (see Playbooks) transcript_notes: on: event: meeting.transcript_ready prompt: | ... events: max_age: 24h # freshness window; older events are skipped logging: level: info # error | info | debug ``` Keys are written with `omitempty`, so a freshly bootstrapped file only lists what was actually set — an absent key reads as its default rather than an empty value. | Key | Default | What it does | | - | - | - | | `base_url` | `https://api.timeless.day` | Timeless public API base URL. | | `output` | `auto` | Default output mode: `auto` (JSON when piped, text on a TTY), `json`, or `text`. | | `harness` | `claude-code` | The coding agent [`playbooks run`](/cli/commands#playbooks-run) invokes to produce artifacts — `claude-code`, `codex`, or `cursor`. | | `harness_model` | `claude-sonnet-5` | Model handed to the harness. Currently only `claude-code` honors it; other harnesses ignore it. | | `harness_path` | unset | Optional absolute path to the harness binary, for when it isn't on the `PATH` the app runs with. Hand-set only: the CLI never writes it, `config set` doesn't accept it, and it is cleared if you switch `harness`. The runner re-resolves the binary on each run, so leaving it unset is normal. | | `playbooks` | `transcript_notes` | Maps each playbook **name** to its [definition](/cli/playbooks) — prompt plus inline `on:` trigger. | | `events.max_age` | `24h` | Freshness window for event-driven runs — see below. | | `logging` | on, `info` | The local diagnostic log — see below. | | `update.*` | accepted, **inert** | Vestigial self-update keys. They change nothing — see below. | ### Freshness window An event-driven pass compares each leased event's **meeting time** against this window. Older events are **acknowledged and skipped**: consumed for good, but no playbook runs and no artifact is written, so returning after days away gets you recaps for recent meetings instead of a burst of dozens. Skips are reported as `expired` and are not failures — the pass still exits 0. ```bash theme={null} timeless config get events.max_age # → 24h0m0s (the effective value) timeless config set events.max_age 48h # widen it timeless config set events.max_age 0 # turn expiry off entirely ``` | Value | Meaning | | - | - | | absent or empty | the built-in default, `24h` | | `0` or `0s` | expiry disabled — every leased event runs, whatever its age | | any positive Go duration (`12h`, `168h`, `90m`) | the window as written | It is a single global window — there is no per-playbook or per-type override, though [`playbooks run --max-age`](/cli/commands#playbooks-run) overrides it for one pass. A malformed value (`24`, `1 day`, `-1h`) stops the command rather than falling back, because silently guessing a window would destroy deliverables. Avoid going below \~4h: a transcript event fires *after* the meeting ends, so a long meeting's event is already hours old when it arrives. ### Logging The CLI writes a local diagnostic log to `logs/timeless.log` inside the config directory, rotating at 5 MB and keeping 3 generations. It is on by default — a log you have to enable first cannot answer a question about what already happened. The `logging:` block is hand-edited only (not a `config set` key): | Key | Default | What it does | | - | - | - | | `enabled` | `true` | Master switch. | | `level` | `info` | Record **volume**: `error`, `info`, or `debug`. | | `path` | unset | Override the log location; must be absolute. | | `max_size_mb` | `5` | Per-file ceiling before rotation. | | `max_files` | `3` | Retained generations, counting the live file. | `level` tunes volume, never content depth. No level records prompt text, harness output, or meeting content — that ceiling is not configurable. ### Update keys are inert `update.auto`, `update.notify`, and `update.check_interval` are still accepted, validated, and reported by `config list`, but **setting them changes nothing**: CLI self-update was removed. The desktop app's updater owns updating, and the bundled binary must never swap itself — that would break the app's signature. If you want to change update behavior, that is an app setting, not a CLI one. ## Environment overrides A few settings can be overridden per-invocation without editing the file: | Variable | Overrides | | - | - | | `TIMELESS_CONFIG_DIR` | The config directory (see [Location](#location)). | | `TIMELESS_BASE_URL` | `base_url`. | | `TIMELESS_OUTPUT` | `output`. | ## What you can customize * **Harness and model** — switch the default engine or model for every playbook, or override them per playbook with its own `harness` / `model`. * **Playbooks** — change a prompt, retime a trigger (`on.every`, `on.schedule`), park one with [`playbooks disable`](/cli/commands#playbooks), or add a playbook. See [Playbooks](/cli/playbooks). * **Output mode** — set `output: json` to always emit JSON, or leave it on `auto`. * **Freshness window** — widen `events.max_age` for a backlog, or set `0` to never skip. * **Logging** — turn the diagnostic log down to `error`, or off. > [!NOTE] > > `timeless config set` accepts exactly seven keys: `events.max_age`, `harness`, > `harness_model`, `output`, and the three inert `update.*` keys. Everything else is > hand-edited — `playbooks` and `logging` are nested, and `base_url` is env-driven. Because the file is plain YAML, you can ask your agent to make these changes for you — it knows the schema and the [playbook contract](/cli/playbooks). After editing, run `timeless status --json` to confirm the CLI still loads cleanly. > [!NOTE] > > `base_url`, `output`, `harness`, and `harness_model` all have built-in defaults, so > a minimal config file is valid — you only need to write the keys you want to change. # Install Source: https://docs.timeless.day/cli/install Install the Timeless desktop app and wire its bundled CLI to your coding agent. Connect your coding agent — Claude Code or Codex — to Timeless. Your agent can then read meetings, fetch transcripts, control the meeting bot, and surface recaps on your behalf. The `timeless` CLI **ships inside the Timeless desktop app** — there is no standalone binary to download. ## Set up via your coding agent Paste this into your coding agent: ``` Set up Timeless for me. Fetch https://docs.timeless.day/cli/agent-install.md and follow those instructions exactly. ``` That is the whole prompt — **your agent drives the onboarding from there** and guides you through the installation. > [!NOTE] > > Keep the `.md` on the end of the URL — that is the raw guide, commands included. A > tool that summarizes the page instead hands the agent an outline with none of the > commands in it, and it has to fetch the guide a second time. Next, review the [command surface](/cli/commands). # Playbooks Source: https://docs.timeless.day/cli/playbooks How the CLI turns meetings into artifacts — a named prompt plus an inline trigger, run by your agent harness. A **playbook** is the instruction the CLI hands to your agent. Each playbook is keyed by a **name** and carries its own trigger in an `on:` block, and [`timeless playbooks run`](/cli/commands#playbooks-run) renders its prompt through your configured [harness](/cli/config) to produce an artifact. > [!NOTE] > > **Your machine has to be on.** Playbooks run locally — the desktop app's timer and > your agent both live on your computer, so nothing fires while it is shut down or > asleep. Event-driven playbooks catch up (the events wait in the queue and the first > pass after wake leases them) and `interval:` playbooks resume on their next tick, > but an `at:` time that passes while the machine is off is **skipped** — it does not > run late. ## Two kinds of trigger Every playbook sets exactly one of `on.event` or `on.schedule` — that choice is what makes it event-driven or scheduled. **Event-driven** (`on: { event: }`) binds the playbook to an ack-queue event type. A run leases pending events of that type, renders the prompt once per event, and acknowledges them. The event-type namespace is an open set; two types reach the queue today — `meeting.transcript_ready` (what `playbooks init` binds to) and `meeting.initial_summary_ready`. A pass is scoped to one type and never sees the other's events. **Scheduled** (`on: { schedule: … }`) fires on a timer and never touches the queue. There is no triggering event, so the prompt fetches whatever data it needs itself (for example `timeless meetings upcoming`). Set one of: * `interval: 30m` — a positive Go duration. * `at: ["09:00"]` — one or more `HH:MM` 24-hour local times, optionally narrowed with `weekdays: [mon, tue, wed, thu, fri]`. > [!NOTE] > > Timing lives **inline**, in the playbook. There is no `timeless schedule` command and > no `schedule.yaml`: the desktop app's resident timer derives what to run, and when, > from the `playbooks:` map directly. Seeding a playbook is scheduling it. > > An event-driven playbook is polled by the app on a built-in **5-minute** cadence. > Override it per playbook with `on.every: 1m`. An **empty** `playbooks:` map runs > nothing — there is no implicit default. ## Where they live Playbooks live under the `playbooks:` key in your config file at `~/.config/timeless/config.yaml` (respects `TIMELESS_CONFIG_DIR` / `XDG_CONFIG_HOME`). Run [`timeless playbooks init`](/cli/commands#playbooks) to seed the defaults — it is idempotent and never overwrites a prompt you have edited. On a fresh machine it installs `transcript_notes`. `timeless playbooks list --json` shows what's configured and reports each trigger as `event=` or `schedule=…`. ```yaml theme={null} # ~/.config/timeless/config.yaml harness: claude-code # default harness for every playbook harness_model: claude-sonnet-5 # default model (claude-code only) playbooks: transcript_notes: # the key is the playbook NAME on: event: meeting.transcript_ready prompt: | A meeting transcript is ready (event {{.EventType}}). 1. Fetch it: run `timeless meetings transcript {{.MeetingID}}`. 2. Write a self-contained HTML recap to {{.OutPath}}. weekly_brief: # a scheduled playbook — no event, no queue on: schedule: at: ["09:00"] weekdays: [mon] prompt: | Summarize last week's meetings as of {{.Today}}. Write a self-contained HTML brief to {{.OutPath}}. ``` Each playbook accepts: | Field | Purpose | | - | - | | `on` | The trigger: `event` (+ optional `every`) **or** `schedule`. Required. | | `prompt` | The instruction handed to the harness (a Go text/template). | | `harness` | Override the harness for this playbook only. | | `model` | Override the model for this playbook only (`claude-code` only). | | `enabled` | `false` parks it without deleting it; absent means enabled. Prefer `timeless playbooks disable` / `enable` over editing this by hand. | ## Prompt variables differ by kind The prompt is a Go text/template. The variable set depends on the trigger, so a scheduled prompt that references an event-only variable fails at run time. **Event-driven:** * `{{.EventID}}` — the queue event id * `{{.EventType}}` — e.g. `meeting.transcript_ready` * `{{.MeetingID}}` — the payload's `meeting_id`, falling back to its `id` (which is the key real payloads use); empty only if the payload carries neither * `{{.Payload}}` — the full event payload as compact JSON * `{{.OutPath}}` — the absolute path the CLI expects the artifact written to **Scheduled:** * `{{.Today}}` — the run's local date, `2006-01-02` * `{{.Now}}` — the run's local timestamp, RFC3339 * `{{.OutPath}}` — as above > [!NOTE] > > A run succeeds when a **non-empty file exists at `{{.OutPath}}`** — the harness's exit > code is ignored. Every prompt should end by writing there. Artifacts land in > `~/.local/share/timeless/artifacts` and the desktop app surfaces each one to you > in-app; the CLI never opens a browser, so keep them self-contained. The path is CLI-owned — always use `{{.OutPath}}` rather than composing a filename. It takes one of two shapes: `--.html` for an event-driven run (the playbook name is in there precisely so several playbooks on one type cannot overwrite each other) and `-.html` for a scheduled one, where there is no event id to key on. > [!WARNING] > > **When a prompt cannot do its job, it must write nothing.** The CLI never reads the > file's contents, so a document explaining what went wrong is a *successful* artifact as > far as it can tell — and the app delivers it to you as your finished recap. Leave > `{{.OutPath}}` absent and print the reason instead; the attempt is then recorded as a > `no_artifact` loss and the app can tell you that deliverable failed. ## Run them ```bash theme={null} timeless playbooks run --event-type meeting.transcript_ready # event-driven timeless playbooks run weekly_brief # scheduled, by name ``` The unit of an event-driven pass is the **event type**, not a playbook. A name may only be used for a scheduled playbook; naming an event-driven one is refused, because two invocations racing for one event is exactly what `--event-type` prevents. > [!WARNING] > > Delivery is **at-most-once**: each event is acknowledged once, *before* any attempt. > An event gets one round of attempts, and one that produces nothing is reported in > `losses` rather than retried. A failed run is **not** redelivered on the next tick. ## Stale events are skipped, not run An event whose meeting time is older than [`events.max_age`](/cli/config#freshness-window) (default `24h`) is **acknowledged and skipped**: consumed for good, but no playbook runs and no artifact is written. It is reported as `expired` and the pass still exits 0 — a skip is not a failure and never means a recap went missing. This is what stops three days away from producing a burst of dozens of recaps for meetings you have moved on from. Widen the window when you want a backlog processed on purpose — `--max-age 168h` for one pass, or `timeless config set events.max_age 168h` to persist it. There is no undo once an event has been retired. ## Turn one off without deleting it ```bash theme={null} timeless playbooks disable weekly_brief # stop it running on future triggers timeless playbooks enable weekly_brief # let it run again ``` These write the playbook's `enabled` key. Nothing is deleted — the prompt and trigger survive, so `enable` restores it exactly. Both are idempotent, and they govern **future** runs only: a pass already in flight still finishes, so one more recap can land right after you disable something. That run already consumed its event; let it land. > [!NOTE] > > `playbooks list` does **not** show enabled state — it reports name, trigger, harness, > and prompt only. Read `config.yaml`, or trust the `changed` field `disable` returns. ## Several playbooks can share one event type This is the point most often gotten wrong, and older guidance said the opposite. Sharing a trigger is **correct** — it is the supported way to get several deliverables from one meeting. `timeless playbooks run --event-type ` acknowledges each event once, then runs **every** enabled playbook bound to that type, in name-sorted order, each writing its own artifact. Paths are keyed `--.html`, so they cannot collide. Add a CRM sync and a Slack digest alongside `transcript_notes` — all three on `meeting.transcript_ready` — and one transcript produces three artifacts. Nothing needs to be renamed or removed to make room. Two related guarantees: [`events pull`](/cli/commands#events) is read-only and can never cost an event its attempt, and scheduled playbooks never touch the queue at all. > [!NOTE] > > Each playbook is a full agent run and they execute **sequentially**, so cost and > wall-clock grow with the size of the set for one event type. ## Let your agent customize them There is no `timeless playbook` command — playbooks are just YAML, so you edit them directly or ask your agent to. The agent already knows the file location and the template contract, so you can describe the change in plain language: * **"Explain my playbooks"** — the agent reads the config and summarizes each one. * **"Have the recap include action items with owners"** — the agent edits the `prompt` in place, preserving the template variables and the write-to-`{{.OutPath}}` step. * **"Poll for transcripts every minute"** — the agent sets `on.every: 1m`. * **"Pause the weekly brief"** — the agent runs `timeless playbooks disable weekly_brief`. * **"Run transcript recaps on Codex"** — the agent sets `harness: codex` on that playbook. * **"Add a Monday-morning digest"** — the agent adds a playbook with an `on.schedule` trigger. After a change, run `timeless playbooks list --json` to confirm the trigger parsed as you intended, then exercise it with `timeless playbooks run`. > [!WARNING] > > When you edit a prompt, keep the instruction to write a complete, self-contained HTML > document to `{{.OutPath}}`. Drop it and the run produces no artifact — and because > delivery is at-most-once, that event is reported as a loss rather than retried.