Command

nylas audit logs show

The nylas audit logs show command displays recorded CLI activity with filters for date range, command name, exit status, grant ID, request ID, invoker (claude-code, cursor, terminal), and source (cli, mcp, sdk). Use it to trace what an AI agent did, investigate errors, or generate compliance reports. Supports JSON output for piping into dashboards.

Written by Qasim Muhammad Staff SRE

What does nylas audit logs show do?

The nylas audit logs show command displays recorded CLI activity with filters for date range, command name, exit status, grant ID, request ID, invoker (claude-code, cursor, terminal), and source (cli, mcp, sdk). Use it to trace what an AI agent did, investigate errors, or generate compliance reports. Supports JSON output for piping into dashboards.

Usage

nylas audit logs show [--since DATE] [--until DATE] [--command CMD] [--invoker NAME]

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations
--limit(-n)Number of entries to show (default: 50)
--sinceShow entries after this date/time
--untilShow entries before this date/time
--commandFilter by command name
--statusFilter by exit status (success, error)
--grantFilter by grant ID
--request-idLook up a specific request ID
--invokerFilter by invoker (e.g. claude-code, cursor, terminal)
--sourceFilter by source (e.g. cli, mcp, sdk)

Examples

Show recent logs

nylas audit logs show -n 20

Filter by AI invoker

nylas audit logs show --invoker claude-code --since 2024-01-01

Filter by date range

nylas audit logs show --since "2024-01-01" --until "2024-01-31"

Look up a specific request

nylas audit logs show --request-id req_abc123

JSON output piped to jq

nylas audit logs show --json -n 100 | jq '.[] | select(.status == "error")'

Troubleshooting

No logs found

Ensure audit logging is enabled with `nylas audit logs status`. If recently initialized, run a few commands first.

Date filter not working

Use ISO 8601 format (YYYY-MM-DD) or relative formats like '7d', '24h'.

Recommended guides

Email Auth: OAuth vs API Key vs App Password

Compare OAuth 2.0, API keys, and app-specific passwords for email API authentication. Security trade-offs, token lifetimes, provider support, and setup guides.

Email to Slack Alerts from Terminal

Forward important emails to Slack channels automatically. Poll for new messages, filter by sender or subject, and post formatted alerts via incoming webhooks.

Automate Meeting Notes to Email

Record meetings, generate AI summaries from transcripts, and email notes to attendees automatically. Combines notetaker bots with scheduled email sends.

Summarize Email Threads with AI

Summarize long email threads with an LLM from the command line. Extract action items, decisions, and deadlines from threaded conversations in one pipeline.

Build an AI Email Auto-Responder

Build an AI auto-responder that reads incoming email, drafts context-aware replies with an LLM, and sends after human approval. Python and CLI pipeline.

Gmail Labels API: Create and Manage

Manage Gmail labels with the Gmail API. Create, list, modify, and apply labels to messages. Batch label operations, system vs user labels, and CLI alternatives.

Email Templates from the CLI

Create, manage, and send email templates from the command line. Variable substitution, HTML rendering, and reusable message patterns for outbound sends.

Schedule Emails from Terminal

Schedule email sends for future delivery from the command line. Time-zone-aware scheduling, business-hours delivery, and batch queuing across Gmail and Outlook.

Build a Human-in-the-Loop Email Agent

Build an AI email agent with human approval gates. Classify messages, draft responses, queue for review, and send only after a human confirms each action.

Automate Email Reports from Terminal

Build automated daily and weekly email reports with cron, JSON output, jq pipelines, and shell scripts. Schedule inbox summaries and deliver by email.

AgentMail vs Nylas vs Cloudflare Email

Compare AgentMail, Cloudflare Email for Agents, and Nylas Agent Accounts. Feature matrix, pricing, MCP support, and a decision guide for AI agent email in 2026.

Cron Job Email Without Postfix

Send email alerts from cron jobs without Postfix, msmtp, or ssmtp. One CLI command replaces MAILTO plus a local MTA daemon. Disk, backup, and schedule examples.

Email Prompt Injection Defense

Defend AI email agents against prompt injection attacks. Input separation, capability sandboxing, human-in-the-loop approvals, and audit logging patterns.

Set Up an MCP Email Server in 5 Minutes

Connect AI agents to real email accounts through MCP. Install, configure, and verify an email MCP server for Claude Code, Cursor, and other AI coding tools.

How Apple's New CEO Can Automate iCloud Email

John Ternus takes over as Apple CEO in September 2026. Connect iCloud to AI agents that triage email, draft replies, optimize calendar across 25 time zones, and protect focus time.

MCP vs API for AI Agents

Compare MCP, direct API, and skills for AI agent integrations. Benchmarks show 33% token efficiency gaps and 30x batch speed differences. Decision matrix.

GitHub Actions Email Notifications

Send GitHub Actions email notifications on failed builds, deploys, and test runs with Nylas CLI and encrypted workflow secrets.

Parse Inbound Email Webhooks

Register inbound email webhooks, verify signatures, and parse message.created payloads into JSON your app can process.

Check Calendar Availability from Terminal

Check calendar availability and free/busy windows from the terminal with Nylas CLI before creating meetings or booking rooms.

Best Email Infrastructure for AI Agents

Compare Agent Accounts, provider APIs, IMAP, SMTP, MCP, and CLI tools for agent email. Choose a stack for reads, sends, audits, and scale.

Send Email from Python Without SMTP

Send email from Python without SMTP passwords or Postfix. Use one CLI command for OAuth-backed delivery or app-owned Agent Account sends.

Gmail API Quotas in 2026

Gmail API quota limits changed May 1, 2026. New per-minute limits, method costs, billing threshold, and CLI patterns for sync jobs and agents.

Secure OpenClaw Email Access

Secure OpenClaw email access with plugin allowlists, scoped Nylas credentials, policy rules, send approvals, and local MCP or exec boundaries.

MCP Email Server Security Checklist

Secure MCP email servers with least privilege, local server checks, token boundaries, webhook verification, and write-action controls.

Outlook MCP Server for AI Agents

Compare Outlook MCP options for AI agents: Microsoft 365 connectors, Graph API tools, and local CLI MCP for email and calendar workflows.

ChatGPT Gmail Connector vs MCP

Compare ChatGPT Gmail apps, custom MCP apps, and local CLI MCP for Gmail workflows. Pick the right path for search, sync, and write actions.

Gmailify and POP3 Alternatives

Gmailify and Gmail POP fetching are ending for new users after Q1 2026. Compare forwarding, IMAP, mobile Gmail, and CLI inbox access.

Google Workspace MCP for AI Agents

Compare Google Workspace MCP with multi-provider CLI commands and Agent Accounts for AI agents that need user mail or app-owned inboxes.

Agent-to-Agent Email Communication

Two AI agents, two managed inboxes, one protocol. Create agent accounts with Nylas CLI and exchange structured JSON messages — no shared database needed.

Stop Your AI Agent From Going Rogue

Terminate rogue AI agent sessions at the connector layer. Outbound blocks, auto-reply kill switches, and prompt-injection containment — all before SMTP.

Install Nylas Skills for AI Coding Agents

Install nylas-cli and nylas-api skills in Claude Code, Cursor, Codex CLI, Windsurf, and 30+ AI coding agents. One command adds email and calendar tools.

Create an AI Agent Email Identity

Set up a managed email identity for an AI agent. Create a dedicated inbox, send and receive in 2 minutes — no OAuth setup or third-party mailbox needed.

Build an AI Email Triage Agent

Build an AI agent that reads your inbox, classifies emails by urgency, drafts replies, and archives noise. Python + Nylas CLI + any LLM. Full code included.

Recall.ai vs Nylas for AI Agent Email

Compare Recall.ai and Nylas CLI for AI agent communication. One handles meeting recordings, the other handles email and calendar. Pick the right tool.

Email APIs for AI Agents Compared

Compare Gmail API, Microsoft Graph, SendGrid, Mailgun, Nylas, and raw IMAP for giving AI agents email access. Includes a 14-criteria feature comparison.

Receive Email Without an SMTP Server

Create a managed agent email account and process incoming messages via webhooks — no Postfix, no MX records. Uses nylas agent create and monitor commands.

Extract OTP Codes from Email — Skip the Inbox

Pull 2FA verification codes from email without opening your inbox. The nylas otp get command copies the latest code to your clipboard across all providers.

Give Your AI Coding Agent an Email Address

Connect Claude Code, Cursor, OpenAI Codex CLI, Windsurf, and OpenClaw to a real email account via MCP. Step-by-step setup for each tool using Nylas CLI.

Add Nylas as a Manus MCP Server (manus-mcp-cli)

Register Nylas as an MCP server in manus-mcp-cli so your Manus agents can send email, search the inbox, and manage calendar events inside the sandbox.

Send Email from Linux/Manus Sandbox Without SMTP

Send email from a Linux or Manus sandbox over HTTPS when SMTP ports 25, 465, and 587 are blocked. No Postfix or sendmail — Nylas CLI handles delivery.

Draft Personalized Emails with Manus AI

Use Manus AI to draft personalized emails at scale with Nylas CLI. Feed a CSV contact list, review each AI-generated draft, then approve and batch-send.

Sync Email to CRM with Manus AI

Use Manus AI and Nylas CLI to extract contacts from your inbox, enrich them, and sync to Salesforce, HubSpot, or Pipedrive. No code, no manual data entry.

Email Analytics with Manus AI

Analyze email patterns with Manus AI and Nylas CLI. Break down volume by sender, track response times, find your peak hours, and generate weekly reports.

Manus AI Email Research Agent

Use Manus AI to deep-search your inbox, summarize long email threads, extract decisions and action items, and compile research reports with Nylas CLI.

Manus AI Meeting Scheduler

Schedule meetings via natural language with Manus AI and Nylas CLI. Check participant availability, find mutual open slots, and create events automatically.

Automate Email with Manus AI: Beginner Guide

Five-minute quickstart for Manus + Nylas CLI. Install the Skill, authenticate one mailbox, send a test email, list recent mail, and run your first search.

Manus AI vs Claude Code for Email Automation

Side-by-side comparison of Manus AI Skills and Claude Code MCP for email and calendar automation. Same Nylas CLI backend, different agent runtimes used.

Build an Email Support Agent with Manus AI

Build a Manus AI support agent that polls a shared inbox, matches tickets to knowledge base articles, drafts context-aware replies, and escalates risk.

Reach Inbox Zero with Manus AI

Reach inbox zero with Manus AI and Nylas CLI. Triage unread messages by urgency, auto-categorize threads, draft replies, and bulk-archive noise in one go.

Mail Manus: Automate Email from CLI

Compare Mail Manus forwarding with direct inbox access. Learn when to add the Nylas CLI Skill for search, sending, follow-ups, and calendar workflows.

Automate Email Draft Creation and Review

Generate pre-filled email drafts from templates with conditional logic. Batch-create follow-ups, route drafts for review, and schedule approved sends.

CRM Email Workflows — Organize, Enrich, Act

Turn your inbox into CRM intelligence. Group emails by company, build contact hierarchies, enrich profiles, and automate outbound — all from terminal.

Automated Email Reports with PowerShell

Build automated email reporting with Nylas CLI and PowerShell. Query messages, aggregate with Group-Object, generate HTML reports, and schedule with cron.

Automate Email and Calendar in PowerShell

Cross-provider email and calendar automation in PowerShell using Nylas CLI. Read emails, create events, check availability, and schedule meetings from scripts.

Connect Voice Agents to Email and Calendar

Bridge LiveKit, Vapi, or any voice agent framework to email and calendar using Nylas CLI as a subprocess. Complete Python examples for send, read, and schedule.

Secure CLI Email: API Keys and Audit Logging

Manage Nylas CLI credentials securely. Rotate API keys, configure audit logging, enforce data policies, and meet SOC 2 requirements for email automation.

Design Email Systems for AI Agents: Structured Formats and Machine-Readable Templates

Design email workflows that AI agents parse reliably. Structured JSON output, machine-readable templates, agent-friendly headers, and MCP integration.

Gmail API Limits for AI Agents

Gmail API quotas changed in 2026. OAuth consent setup, token refresh, method costs, MIME encoding, and safer CLI patterns for agent email tools.

Email as Memory for AI Agents

Use email as persistent memory for AI agents — semantic, episodic, and procedural. Search, retrieve, and reason over conversation history with Nylas CLI.

Why AI Agents Need Email Addresses: Identity, Verification, and Agent-to-Agent Communication

AI agents use email as their primary identity on the internet. Covers signups, OTP verification, agent-to-agent messaging, and building identity trust chains.

Why AI Agents Need Email

AI agents need email for authentication, two-way communication, and audit trails. See how Nylas CLI gives agents full inbox access in a single command.

Audit AI Agent Activity (Claude, Copilot, MCP)

Audit logs for AI agent actions across Claude Code, GitHub Copilot, and MCP servers. Filter by source, export for compliance, trace every agent command.

Create a Manus Skill: Email & Calendar Workflow

Create a Manus Skill that installs Nylas CLI in the sandbox and teaches your agent email, calendar, and contact workflows via SKILL.md and setup scripts.

Connect OpenClaw to Nylas for Email and Calendar

Use OpenClaw exec to run Nylas CLI for inbox access, email sending, and calendar scheduling. Covers TOOLS.md configuration, exec approvals, and PATH setup.

Manage Calendar Events from Terminal

Create, list, update, and delete calendar events from your terminal with Nylas CLI. DST-aware scheduling, timezone conversion, and AI-powered meeting finder.

Send GPG Encrypted Email from CLI

Send and receive GPG/PGP encrypted email from your terminal using Nylas CLI. Auto-fetches keys from keyservers. Sign, encrypt, or both via RFC 3156 PGP/MIME.

Email MCP Server for AI Agents

Set up an email MCP server so Claude, Cursor, Windsurf, and VS Code Copilot can read, send, and schedule email and calendar events locally in one command.

Run nylas audit logs show --help for full help output.