Every API here is available over the APIs.io API and to AI agents over MCP.
{"info":{"title":"Workwae API","version":"1.0.0","description":"Email, calendar and contacts sync for Gmail and Microsoft 365 accounts, and email sync for\nany IMAP/SMTP mailbox.\n\nAuthenticate with `Authorization: Bearer wk_...` (an API key with read, write, send or admin\nscope) or, for `GET /v1/accounts/{accountId}` and the account's mail, calendar and contacts\nroutes (`/v1/accounts/{accountId}/...` under Mail, Identities, Calendar and Contacts), a\nshort-lived account token (`Bearer wat_...`) that acts with every scope on that one account.\n\nErrors answer with `{ defined, code, status, message, data? }`. `code` is the error's\nstable reason (snake_case, e.g. `plan_limit_accounts`); each reason always comes with the\nsame HTTP status; `message` is for people; `data` is present only for the reasons that\ncarry structured details (e.g. `invalid_input` lists `data.issues`). Each operation's\nresponses list the reasons it answers with, each with the condition it is answered on.\nEvery operation can also answer `invalid_input` (400), `unauthenticated` (401),\n`missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`\nand `mcp_only_key` (403), `payload_too_large` (413), `rate_limited` and\n`too_many_requests` (429),\n`internal_error` (500) and `overloaded` (503).\n\nCalendar routes answer `calendar_disabled` while the account's calendar sync is off\n(`settings.calendarEnabled`), contacts routes `contacts_disabled` while its contacts sync\nis off (`settings.contactsEnabled`), and mail routes `mail_disabled` while its mail is off\n(`settings.mailEnabled`); IMAP accounts have calendar and contacts only through their CalDAV\nand CardDAV settings.\n\nEvery response carries `X-Request-Id`. Send your own (1 to 128 of `A-Z a-z 0-9 . _ : -`)\nand it is echoed back; otherwise, or when it does not fit, the API generates one. Quote it\nwhen you contact support: it names the request in our logs and in the audit log.\n\nAuthenticated `POST` operations take an `Idempotency-Key` header (1 to 255 printable ASCII\ncharacters without spaces, e.g. a UUID). The first answer to a key is kept for 24 hours for\nyour tenant: sending the same key, method, path, query and body again answers it again,\nwith `Idempotent-Replayed: true`, instead of acting twice. The fingerprint is the method,\npath, query string and body, so the same key with another method, path, query or body\nanswers `idempotency_key_reused` (422); while the first request still runs,\n`idempotency_key_in_progress` (409). A 5xx or 429 answer is not kept, so retrying with the\nsame key runs the request again. Other methods ignore the header.\n\nEvery tenant runs under a plan (`GET /v1/usage` shows it). Requests over its API rate,\ncounted per minute for the tenant and for each credential, answer `rate_limited` with a\n`Retry-After` header. Every call counted against the rate answers `RateLimit-Limit`,\n`RateLimit-Remaining` and `RateLimit-Reset` (seconds until the window ends), for whichever\nof the two windows has fewer requests left. Creations beyond its limits answer\n`plan_limit_accounts`, `plan_limit_sends`, `plan_limit_validations`, `plan_limit_webhooks`\nor `plan_limit_storage`; a connect flow stopped by the account limit returns to your\n`redirectUri` with `status=error&error=plan_limit_accounts`.\n\nA plan also names its modules (`plan.limits.modules`): calendar, contacts, tracking, ai,\nmeetings and sharedMailboxes; mail is not a module. Routes of a module the plan lacks\n(Calendar, Contacts, meeting apps and connections, shared mailboxes, AI drafts, and\ntracking asked for on a send) answer `plan_module_unavailable`. Without\nthe module its settings have no effect: no calendar or contacts sync, no calendar or\ncontacts scopes on connect, no tracking defaults on sends, no reply classification.\nShared-mailbox accounts added before the plan lost sharedMailboxes keep syncing and\nsending like any other account; only adding new ones (and asking for the shared mailbox\nscope on connect) is refused.\n\nBeyond the plan, each API process limits how much of it one caller takes. Past 16\nrequests in flight for one credential (a download counts until its body is sent), a\nrequest answers `too_many_requests`; when the process is overloaded, `overloaded`. Both\ncarry `Retry-After`, and neither did anything, so retrying after it is safe. A client\naddress that fails authentication too often in a minute has its bearer tokens refused\nwith `rate_limited` until the minute ends, except API keys that authenticated recently.\nDownloads are sent chunked, without `Content-Length`: sizes are in the message's `size`,\neach attachment's `size` and an export's `bytes`.\n\nOAuth redirect URI: register\n`https://api.workwae.com/connect/callback/google` and `https://api.workwae.com/connect/callback/microsoft`\nwith your own OAuth apps (one Microsoft app per cloud). The same callbacks serve the\nplatform apps. After sign-in the user returns to your `redirectUri` (which must be listed\nin `settings.redirectUris`) with `status=success&account_id=...&state=...` or\n`status=error&error=<code>&state=...`. A hosted session without one ends on Workwae's own\nconfirmation page; read its outcome with `GET /v1/connect-sessions/{sessionId}`."},"servers":[{"url":"https://api.workwae.com"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key or account token"}},"schemas":{"EventId":{"type":"string","pattern":"^[0-9]{1,19}$"},"Address":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["name","address"]},"AddressInput":{"type":"object","properties":{"name":{"type":"string","maxLength":256},"address":{"type":"string","maxLength":320,"format":"email"}},"required":["address"]},"BodyStorage":{"enum":["none","cache","full"],"type":"string"},"EffectiveSettings":{"type":"object","properties":{"bodyStorage":{"$ref":"#/components/schemas/BodyStorage"},"syncWindowDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"mailEnabled":{"type":"boolean"},"calendarEnabled":{"type":"boolean"},"contactsEnabled":{"type":"boolean"},"undoSendSeconds":{"type":"integer","minimum":0,"maximum":60},"trackOpens":{"type":"boolean"},"trackClicks":{"type":"boolean"},"trackingHoneypot":{"type":"boolean"}},"required":["bodyStorage","syncWindowDays","mailEnabled","calendarEnabled","contactsEnabled","undoSendSeconds","trackOpens","trackClicks","trackingHoneypot"]},"SettingsOverride":{"type":"object","properties":{"bodyStorage":{"$ref":"#/components/schemas/BodyStorage"},"syncWindowDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"mailEnabled":{"type":"boolean"},"calendarEnabled":{"type":"boolean"},"contactsEnabled":{"type":"boolean"},"undoSendSeconds":{"type":"integer","minimum":0,"maximum":60},"trackOpens":{"type":"boolean"},"trackClicks":{"type":"boolean"},"trackingHoneypot":{"type":"boolean"}}},"OptOutHandling":{"enum":["off","review","suppress"],"type":"string"},"McpSendMode":{"enum":["allow","confirm","drafts_only"],"type":"string"},"McpSendPolicy":{"type":"object","properties":{"mode":{"$ref":"#/components/schemas/McpSendMode"},"allowedRecipientDomains":{"anyOf":[{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","pattern":"^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9-]{2,63}$"}},{"type":"null"}]},"dailySendLimit":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000},{"type":"null"}]},"externalRecipientConfirmation":{"type":"boolean"}},"required":["mode","allowedRecipientDomains","dailySendLimit","externalRecipientConfirmation"]},"McpSendPolicyPatch":{"type":"object","properties":{"mode":{"$ref":"#/components/schemas/McpSendMode"},"allowedRecipientDomains":{"anyOf":[{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","pattern":"^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9-]{2,63}$"}},{"type":"null"}]},"dailySendLimit":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000},{"type":"null"}]},"externalRecipientConfirmation":{"type":"boolean"}}},"TenantSettings":{"type":"object","properties":{"bodyStorage":{"$ref":"#/components/schemas/BodyStorage"},"syncWindowDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"mailEnabled":{"type":"boolean"},"calendarEnabled":{"type":"boolean"},"contactsEnabled":{"type":"boolean"},"undoSendSeconds":{"type":"integer","minimum":0,"maximum":60},"trackOpens":{"type":"boolean"},"trackClicks":{"type":"boolean"},"trackingHoneypot":{"type":"boolean"},"optOutHandling":{"$ref":"#/components/schemas/OptOutHandling"},"eventRetentionDays":{"type":"integer","minimum":7,"maximum":30},"redirectUris":{"type":"array","maxItems":50,"items":{"type":"string","format":"uri"}},"aiReplyClassification":{"type":"boolean"},"mcpSendPolicy":{"$ref":"#/components/schemas/McpSendPolicy"}},"required":["bodyStorage","syncWindowDays","mailEnabled","calendarEnabled","contactsEnabled","undoSendSeconds","trackOpens","trackClicks","trackingHoneypot","optOutHandling","eventRetentionDays","redirectUris","aiReplyClassification","mcpSendPolicy"]},"UpdateTenantSettings":{"type":"object","properties":{"bodyStorage":{"$ref":"#/components/schemas/BodyStorage"},"syncWindowDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"mailEnabled":{"type":"boolean"},"calendarEnabled":{"type":"boolean"},"contactsEnabled":{"type":"boolean"},"undoSendSeconds":{"type":"integer","minimum":0,"maximum":60},"trackOpens":{"type":"boolean"},"trackClicks":{"type":"boolean"},"trackingHoneypot":{"type":"boolean"},"optOutHandling":{"$ref":"#/components/schemas/OptOutHandling"},"eventRetentionDays":{"type":"integer","minimum":7,"maximum":30},"redirectUris":{"type":"array","maxItems":50,"items":{"type":"string","format":"uri"}},"aiReplyClassification":{"type":"boolean"},"mcpSendPolicy":{"$ref":"#/components/schemas/McpSendPolicyPatch"}}},"OAuthProvider":{"enum":["google","microsoft"],"type":"string"},"MicrosoftCloud":{"enum":["global","gcc-high","dod","china"],"type":"string"},"AccountProvider":{"enum":["gmail","graph","imap"],"type":"string"},"AccountStatus":{"enum":["active","paused","reauth_required","disabled"],"type":"string"},"SettableAccountStatus":{"enum":["active","paused"],"type":"string"},"RuntimeState":{"enum":["pending","connecting","connected","error","stopped"],"type":"string"},"AccountRuntime":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/RuntimeState"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerInstanceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["state","detail","ownerInstanceId","updatedAt"]},"MailSecurity":{"enum":["tls","starttls","none"],"type":"string"},"MailServer":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"security":{"$ref":"#/components/schemas/MailSecurity"},"user":{"type":"string"}},"required":["host","port","security","user"]},"DavAuth":{"enum":["imap_password","dav_password"],"type":"string"},"DavSettings":{"type":"object","properties":{"calendarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"user":{"type":"string"},"auth":{"$ref":"#/components/schemas/DavAuth"}},"required":["calendarUrl","contactsUrl","user","auth"]},"ImapAuth":{"enum":["password","google","microsoft"],"type":"string"},"ImapSettings":{"type":"object","properties":{"imap":{"$ref":"#/components/schemas/MailServer"},"smtp":{"anyOf":[{"$ref":"#/components/schemas/MailServer"},{"type":"null"}]},"auth":{"$ref":"#/components/schemas/ImapAuth"},"appendSent":{"type":"boolean"},"dav":{"anyOf":[{"$ref":"#/components/schemas/DavSettings"},{"type":"null"}]}},"required":["imap","smtp","auth","appendSent","dav"]},"AccountAuthMethod":{"enum":["oauth","password","google_delegation","microsoft_app","shared_mailbox","google_group"],"type":"string"},"AccountAuth":{"type":"object","properties":{"method":{"$ref":"#/components/schemas/AccountAuthMethod"},"orgConnectionId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"delegateAccountId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"relayEmail":{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"type":"null"}]}},"required":["method","orgConnectionId","delegateAccountId","relayEmail"]},"Account":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"externalRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider":{"$ref":"#/components/schemas/AccountProvider"},"email":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"oauthAppId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"cloud":{"anyOf":[{"$ref":"#/components/schemas/MicrosoftCloud"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/AccountStatus"},"statusReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"settings":{"$ref":"#/components/schemas/EffectiveSettings"},"settingsOverride":{"$ref":"#/components/schemas/SettingsOverride"},"runtime":{"anyOf":[{"$ref":"#/components/schemas/AccountRuntime"},{"type":"null"}]},"imap":{"anyOf":[{"$ref":"#/components/schemas/ImapSettings"},{"type":"null"}]},"auth":{"$ref":"#/components/schemas/AccountAuth"},"initializedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"calendarInitializedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"contactsInitializedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","externalRef","provider","email","displayName","oauthAppId","cloud","status","statusReason","settings","settingsOverride","runtime","imap","auth","initializedAt","calendarInitializedAt","contactsInitializedAt","createdAt","updatedAt"]},"SyncKind":{"enum":["mail","calendar","contacts"],"type":"string"},"AccountSyncQueued":{"type":"object","properties":{"kinds":{"type":"array","items":{"$ref":"#/components/schemas/SyncKind"}}},"required":["kinds"]},"AccountPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Account"}},"nextCursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":512},{"type":"null"}]}},"required":["items","nextCursor"]},"CreateAccount":{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/OAuthProvider"},"microsoftCloud":{"$ref":"#/components/schemas/MicrosoftCloud","default":"global"},"refreshToken":{"type":"string","minLength":1},"oauthAppId":{"type":"string","format":"uuid"},"externalRef":{"type":"string","maxLength":255},"settings":{"$ref":"#/components/schemas/SettingsOverride"},"sharedMailboxesEnabled":{"type":"boolean"}},"required":["provider","refreshToken"]},"AccountToken":{"type":"object","properties":{"token":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["token","expiresAt"]},"MailServerInput":{"type":"object","properties":{"host":{"type":"string","minLength":1,"maxLength":253},"port":{"type":"integer","minimum":1,"maximum":65535},"security":{"$ref":"#/components/schemas/MailSecurity"},"user":{"type":"string","minLength":1,"maxLength":320}},"required":["host","port","security"]},"DavInput":{"type":"object","properties":{"calendarUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"contactsUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"user":{"type":"string","minLength":1,"maxLength":320},"password":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]}}},"CreateImapAccount":{"type":"object","properties":{"email":{"type":"string","maxLength":320,"format":"email"},"displayName":{"type":"string","maxLength":255},"password":{"type":"string","minLength":1,"maxLength":1024},"smtpPassword":{"type":"string","minLength":1,"maxLength":1024},"imap":{"$ref":"#/components/schemas/MailServerInput"},"smtp":{"anyOf":[{"$ref":"#/components/schemas/MailServerInput"},{"type":"null"}]},"appendSent":{"type":"boolean"},"dav":{"$ref":"#/components/schemas/DavInput"},"externalRef":{"type":"string","maxLength":255},"settings":{"$ref":"#/components/schemas/SettingsOverride"}},"required":["email","password"]},"DavDiscoverySource":{"enum":["provider","well-known","srv"],"type":"string"},"DiscoveredDav":{"type":"object","properties":{"source":{"$ref":"#/components/schemas/DavDiscoverySource"},"calendarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["source","calendarUrl","contactsUrl"]},"AutoconfigSource":{"enum":["provider","autoconfig","ispdb","srv","mx"],"type":"string"},"DiscoveredSettings":{"type":"object","properties":{"source":{"$ref":"#/components/schemas/AutoconfigSource"},"imap":{"$ref":"#/components/schemas/MailServer"},"smtp":{"anyOf":[{"$ref":"#/components/schemas/MailServer"},{"type":"null"}]},"oauth":{"anyOf":[{"$ref":"#/components/schemas/OAuthProvider"},{"type":"null"}]},"dav":{"anyOf":[{"$ref":"#/components/schemas/DiscoveredDav"},{"type":"null"}]}},"required":["source","imap","smtp","oauth","dav"]},"TemplateSource":{"enum":["handlebars","react-email"],"type":"string"},"TemplateFormat":{"enum":["html","markdown"],"type":"string"},"TemplateField":{"enum":["subject","html","text","previewText"],"type":"string"},"TemplateSummary":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accountId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"$ref":"#/components/schemas/TemplateSource"},"externalRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","accountId","name","description","source","externalRef","createdAt","updatedAt"]},"Template":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accountId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"$ref":"#/components/schemas/TemplateSource"},"externalRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"subject":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"html":{"anyOf":[{"type":"string","maxLength":1000000},{"type":"null"}]},"text":{"anyOf":[{"type":"string","maxLength":1000000},{"type":"null"}]},"previewText":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"format":{"$ref":"#/components/schemas/TemplateFormat"}},"required":["id","accountId","name","description","source","externalRef","createdAt","updatedAt","subject","html","text","previewText","format"]},"TemplateSummaryPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TemplateSummary"}},"nextCursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":512},{"type":"null"}]}},"required":["items","nextCursor"]},"RenderParams":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"RenderedTemplate":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"html":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewText":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["subject","html","text","previewText"]},"CreateTemplate":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string","maxLength":1000},"subject":{"type":"string","maxLength":2000},"html":{"type":"string","maxLength":1000000},"text":{"type":"string","maxLength":1000000},"previewText":{"type":"string","maxLength":2000},"format":{"$ref":"#/components/schemas/TemplateFormat","default":"html"},"source":{"$ref":"#/components/schemas/TemplateSource","default":"handlebars"},"externalRef":{"type":"string","maxLength":255}},"required":["name"]},"RenderTemplateRequest":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"subject":{"type":"string","maxLength":2000},"html":{"type":"string","maxLength":1000000},"text":{"type":"string","maxLength":1000000},"previewText":{"type":"string","maxLength":2000},"format":{"$ref":"#/components/schemas/TemplateFormat"},"params":{"$ref":"#/components/schemas/RenderParams","default":{}}}},"InputIssue":{"type":"object","properties":{"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","message"]},"InvalidInputData":{"type":"object","properties":{"issues":{"type":"array","items":{"$ref":"#/components/schemas/InputIssue"}}},"required":["issues"]},"UnknownIdsData":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["ids"]},"SyncKindsData":{"type":"object","properties":{"kinds":{"type":"array","items":{"$ref":"#/components/schemas/SyncKind"}}},"required":["kinds"]},"TemplateFieldData":{"type":"object","properties":{"field":{"$ref":"#/components/schemas/TemplateField"}},"required":["field"]},"MailboxRole":{"enum":["inbox","sent","drafts","trash","junk","archive","all","important","custom"],"type":"string"},"MailboxKind":{"enum":["folder","label"],"type":"string"},"Mailbox":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"path":{"type":"string"},"parentId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"role":{"$ref":"#/components/schemas/MailboxRole"},"kind":{"$ref":"#/components/schemas/MailboxKind"},"totalCount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"unreadCount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","name","path","parentId","role","kind","totalCount","unreadCount"]},"MailboxList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Mailbox"}}},"required":["items"]},"MailboxChangedField":{"enum":["name","path","parentId","role","kind"],"type":"string"},"MessageDirection":{"enum":["inbound","outbound"],"type":"string"},"MessagePriority":{"enum":["high","normal","low"],"type":"string"},"MessageSummary":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"threadId":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"internetMessageId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mailboxIds":{"type":"array","items":{"type":"string","format":"uuid"}},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"from":{"anyOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"to":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"cc":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"receivedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"isRead":{"type":"boolean"},"isFlagged":{"type":"boolean"},"isDraft":{"type":"boolean"},"hasAttachments":{"type":"boolean"},"categories":{"type":"array","items":{"type":"string"}},"direction":{"$ref":"#/components/schemas/MessageDirection"},"outboxId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"importance":{"anyOf":[{"$ref":"#/components/schemas/MessagePriority"},{"type":"null"}]}},"required":["id","threadId","internetMessageId","mailboxIds","subject","from","to","cc","snippet","receivedAt","sentAt","isRead","isFlagged","isDraft","hasAttachments","categories","direction","outboxId","reference","importance"]},"MessageChangedField":{"enum":["threadId","internetMessageId","subject","from","to","cc","bcc","replyTo","snippet","receivedAt","sentAt","isRead","isFlagged","isDraft","hasAttachments","categories","mailboxIds","direction","outboxId","importance"],"type":"string"},"MessageSummaryPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MessageSummary"}},"nextCursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":512},{"type":"null"}]}},"required":["items","nextCursor"]},"Attachment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":1024},"filename":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"type":"string"},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"isInline":{"type":"boolean"},"contentId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","filename","contentType","size","isInline","contentId"]},"ReplyKind":{"enum":["opt_out","auto_reply","bounce","human_reply"],"type":"string"},"AutoReplyCategory":{"enum":["out_of_office","left_company","address_changed","ticket_acknowledgment","challenge_response","other"],"type":"string"},"MessageClassification":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/ReplyKind"},"probabilities":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"optOutProbability":{"type":"number"},"autoReplyCategory":{"anyOf":[{"$ref":"#/components/schemas/AutoReplyCategory"},{"type":"null"}]},"returnDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"alternateContacts":{"type":"array","items":{"type":"string"}},"outboxId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"model":{"type":"string"},"classifiedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["kind","probabilities","optOutProbability","autoReplyCategory","returnDate","alternateContacts","outboxId","model","classifiedAt"]},"MessageBody":{"type":"object","properties":{"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"html":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["text","html"]},"Message":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"threadId":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"internetMessageId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mailboxIds":{"type":"array","items":{"type":"string","format":"uuid"}},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"from":{"anyOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"to":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"cc":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"receivedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"isRead":{"type":"boolean"},"isFlagged":{"type":"boolean"},"isDraft":{"type":"boolean"},"hasAttachments":{"type":"boolean"},"categories":{"type":"array","items":{"type":"string"}},"direction":{"$ref":"#/components/schemas/MessageDirection"},"outboxId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"importance":{"anyOf":[{"$ref":"#/components/schemas/MessagePriority"},{"type":"null"}]},"bcc":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"replyTo":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"body":{"$ref":"#/components/schemas/MessageBody"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}},"classification":{"anyOf":[{"$ref":"#/components/schemas/MessageClassification"},{"type":"null"}]}},"required":["id","threadId","internetMessageId","mailboxIds","subject","from","to","cc","snippet","receivedAt","sentAt","isRead","isFlagged","isDraft","hasAttachments","categories","direction","outboxId","reference","importance","bcc","replyTo","body","attachments","classification"]},"SearchSource":{"enum":["auto","index","provider"],"type":"string"},"SearchResultSource":{"enum":["index","provider"],"type":"string"},"SearchHit":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"threadId":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"internetMessageId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mailboxIds":{"type":"array","items":{"type":"string","format":"uuid"}},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"from":{"anyOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"to":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"cc":{"type":"array","items":{"$ref":"#/components/schemas/Address"}},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"receivedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"isRead":{"type":"boolean"},"isFlagged":{"type":"boolean"},"isDraft":{"type":"boolean"},"hasAttachments":{"type":"boolean"},"categories":{"type":"array","items":{"type":"string"}},"direction":{"$ref":"#/components/schemas/MessageDirection"},"outboxId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"importance":{"anyOf":[{"$ref":"#/components/schemas/MessagePriority"},{"type":"null"}]}},"required":["id","threadId","internetMessageId","mailboxIds","subject","from","to","cc","snippet","receivedAt","sentAt","isRead","isFlagged","isDraft","hasAttachments","categories","direction","outboxId","reference","importance"]},"SearchPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SearchHit"}},"nextCursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":512},{"type":"null"}]},"source":{"$ref":"#/components/schemas/SearchResultSource"}},"required":["items","nextCursor","source"]},"PlanModules":{"type":"object","properties":{"calendar":{"type":"boolean"},"contacts":{"type":"boolean"},"tracking":{"type":"boolean"},"ai":{"type":"boolean"},"meetings":{"type":"boolean"},"sharedMailboxes":{"type":"boolean"}},"required":["calendar","contacts","tracking","ai","meetings","sharedMailboxes"]},"PlanIncluded":{"type":"object","properties":{"accounts":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"sendsPerMonth":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"aiCallsPerMonth":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"storageBytes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["accounts","sendsPerMonth","aiCallsPerMonth","storageBytes"]},"PlanStripePrices":{"type":"object","properties":{"basePrice":{"anyOf":[{"type":"string","maxLength":255,"pattern":"^price_[A-Za-z0-9]+$"},{"type":"null"}]},"accountPrice":{"anyOf":[{"type":"string","maxLength":255,"pattern":"^price_[A-Za-z0-9]+$"},{"type":"null"}]},"sendsPrice":{"anyOf":[{"type":"string","maxLength":255,"pattern":"^price_[A-Za-z0-9]+$"},{"type":"null"}]},"aiCallsPrice":{"anyOf":[{"type":"string","maxLength":255,"pattern":"^price_[A-Za-z0-9]+$"},{"type":"null"}]},"storagePrice":{"anyOf":[{"type":"string","maxLength":255,"pattern":"^price_[A-Za-z0-9]+$"},{"type":"null"}]}},"required":["basePrice","accountPrice","sendsPrice","aiCallsPrice","storagePrice"]},"PlanPricing":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[a-z]{3}$"},"baseMonthly":{"type":"integer","minimum":0,"maximum":9007199254740991},"perAccountMonthly":{"type":"integer","minimum":0,"maximum":9007199254740991},"sendsPer1k":{"type":"integer","minimum":0,"maximum":9007199254740991},"aiCallsPer1k":{"type":"inte
# --- truncated at 32 KB (1727 KB total) ---
# Full source: https://artifacts.apis.io/workwae-com/openapi/_original/workwae-com-v1-openapi.json