NewThe MCP server for AI agents is live

Everything you need to build on Workwae.

One REST API for Gmail, Microsoft 365 and IMAP mailboxes, calendars and contacts. Connect accounts, read and send mail, manage events, and hear about every change by webhook or change feed.

connect.ts
import { createClient } from "@workwae/sdk";

const workwae = createClient({ apiKey: process.env.WORKWAE_API_KEY });

// One link: Google, Microsoft or any IMAP mailbox.
const session = await workwae.connectSessions.create({
  redirectUri: "https://app.example.com/mail/connected",
  providers: ["google", "microsoft", "imap"],
  externalRef: user.id,
});

// Once the account is connected, read its mail.
const { items } = await workwae.search.messages({ accountId, q: "invoice" });
account.connected
{
  "id": "1849203",
  "type": "account.connected",
  "accountId": "6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b",
  "createdAt": "2026-05-04T09:30:00.000Z",
  "data": {
    "provider": "google",
    "externalRef": "user_42"
  }
}

Reference

Every operation, with its examples.

The API reference is generated from the same contract the API and the SDK are built on, so it cannot drift from what the API does.

Ready to connect your first mailbox?

Workwae is onboarding early-access teams.