Skip to content
logmast

Developer documentation

Changes and compatibility

Track additive API capabilities and minimum client expectations.

API v1 · Updated 2026-11-10View MarkdownSource manifest

CLI 0.3.1 · November 2026

  • projects, status, billing, agents, control, services create and credentials rotate use the credential’s own workspace when neither the command nor the directory’s binding names one, so they need no ID after a single logmastctl login.

Device login · November 2026

  • logmastctl login asks an owner to approve this machine with a code typed at /device; the token is created on the machine and only its hash is sent. See Give a coding agent access.
  • New endpoints: POST /api/v1/device/authorizations (start), POST .../{id}/poll, POST /api/v1/device/lookup and POST .../{id}/decision (console only), GET /api/v1/auth/token (what a bearer token is, never the token) and POST /api/v1/auth/token/revoke (a token revokes itself).
  • Building with an agent? now copies a prompt that has the agent run logmastctl login and relay the code, instead of saving a credential file for it.
  • The console gives each project and service its own page: services, credentials (with the Sentry DSN), alert rules, mutes, rename, move and delete. Workspace controls became Access, Notifications and Settings; old links redirect. Collection limits and redaction are editable in Settings.
  • Signup shows the first service’s credential (and Sentry DSN) once, on the page, so it works without a rotation. Building with an agent? on Access → Agents and on project pages walks an owner through giving a coding agent its own access and copies a prompt that contains no secret.
  • Access → API tokens creates an API token for your own scripts, read-only or with your permissions, shown once. Agents should get agent access instead.
  • GET /api/v1/workspaces/{workspace}/navigation lists live projects and services without reading evidence.
  • GET .../enrollment adds projects, so a project without services is discoverable.
  • GET .../policies adds limits (daily limits and redacted fields) for owners. The limits command replaces all three; send back what you read.
  • Checkout on a workspace with no contract answers 409 NOT_BILLED instead of 403 PERMISSION_DENIED.

Project-limited access · November 2026

  • Agent grants (project_id on POST .../agents) and API tokens (project_id on create_token) can be limited to one project. Such a credential reads and changes only that project; workspace-wide routes answer 403, and GET /api/v1/workspaces still lists the workspace. In its view, investigation usage, collection and processing, and the checks allowance’s accepted_today, are null; policies’ members, invitations, tokens and deliveries are empty. Deleting the project revokes it. Policies list each token’s project_id.
  • The grant cap counts active grants only (100 per workspace); revoked and expired grants no longer count.

Retry-safe API tokens · November 2026

  • create_token accepts an optional id, label and caller-generated secret. With id and secret, a retry replays ({"id","replayed":true}) instead of creating a second token, and the secret is never returned or written to the audit log. Policies list each token’s label.

CLI 0.3.0 · November 2026

  • logmastctl mcp, the stdio MCP adapter, is removed. logmastctl is the agent interface: agents run its commands directly.
  • New: login, logout and whoami (device login, see above), setup (bind a directory to a workspace and project), projects, services create, credentials rotate|export, and verify --service. Ingest credentials stay private on the machine and are never printed, except export --reveal to a terminal.
  • Output is short text on a terminal and JSON when captured or piped (--format); failures add a next step. status, billing, agents and control take the workspace from the directory binding when it is omitted.

Sentry SDK compatibility · November 2026

  • Sentry server SDKs can report to POST /api/{project}/envelope/ with a Logmast DSN. Error events are stored like batches; other envelope items are discarded without charge. See Use your Sentry SDK.
  • Enrollment, service creation and credential rotation return sentry_dsn. Credentials issued earlier get a DSN when rotated.
  • The catalog adds capabilities.sentry_ingest and a sentry object with the DSN template, encodings and limits.

Usage billing and unverified trials · November 2026

  • Past the provisional allowance (1,000 events and 16 MiB until a verified email claims the workspace), ingestion returns 402 VERIFICATION_REQUIRED instead of 402 COVERAGE_EXHAUSTED.
  • Paid use is prepaid and metered per started 4 KiB. The catalog publishes the bands under pricing.
  • Acknowledgments add stored_events. At zero balance, new events are counted but not stored, except the first occurrence of new failures. new_events still includes counted events, so existing clients reconcile.

Accounts, invitations and deletion · November 2026

  • The claim page shows a QR code for the authenticator key. The key is encoded in the browser and never sent anywhere.
  • A new Account page changes the password, replaces the authenticator, generates recovery codes and signs out everywhere. /api/v1/auth/login accepts recovery_code in place of totp.
  • Owners invite people by email. The membership command now changes only existing members and answers 404 for any other account.
  • Owners can read the audit log in the console and at GET /api/v1/workspaces/{workspace}/audit.
  • Owners can delete a workspace. The catalog reports deletion: true. Unclaimed workspaces are removed seven days after their trial ends.

API v1 refinement · October 2026

This refinement adds opt-in transport compression, compact expected-signal checks, explicit verification stages, release filtering, collection status, and public human/agent documentation. The API remains sufficient without an SDK or installed host agent.

Collection and verification

  • The catalog advertises identity/gzip ingestion. Both wire and decoded sizes are bounded. Older servers remain compatible with plain JSON.
  • The optional Rust SDK batches and compresses useful bodies, preserves retry identities, validates receipt IDs/counts, and bounds response reads.
  • CLI verification persists distinct runs. Uncertain runs resume; completed runs are historical when explicitly selected. Console verification names each proof stage.
  • Receipt status exposes asynchronous processing and SMTP acceptance without claiming application instrumentation or inbox receipt.

Checks and investigation

  • Service/environment heartbeats, completed jobs, and named application verifications share one small check model.
  • Checks use interval plus grace, separate included allowances, revision-checked configuration, bounded history, and existing email rules/budgets.
  • Missing signals, reported failures, paused checks, unavailable monitoring, and expired evidence are distinct states.
  • Investigation adds exact release filtering and collection/coverage visibility.
  • Automatic notification content is limited to condition metadata and protected links. Logout failures remain visible until server revocation succeeds.

Compatibility and rollout

Apply the database migration before starting the updated server and workers. Release the optional SDK and CLI through their normal publication process. A documentation entry does not establish that a particular installation has deployed the capability: read its live catalog.

Existing JSON ingestion, enrollment state, and ingest/read credential separation remain supported. New clients must tolerate absent optional capabilities on older installations. No remote probes, tracing backend, custom metrics engine, hosted test runner, cron scheduler, or on-call system is included.

Search documentation

Search guides, contracts, and agent playbooks.

Search runs in your browser over public documentation.