{"id":106399,"plugin_id":"plugin_asdk_app_6ace1c60487c819196039819d0922880","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-19T18:15:59.749Z","digest":"873d12b040d0cca53760ee5606fbdd04f6e8ca1827d9d299f7b31a54feaef544","against":null,"payload":{"description":"Integrate SendWhale from server code using the repository Node SDK, hosted MCP, local Deno adapter or existing transactional-send endpoint, with real current authentication and idempotency contracts.","included_files":[{"relative_path":"references/contracts.md","size_in_bytes":4919}],"name":"sendwhale-public-api","skill_md_contents":"---\r\nname: sendwhale-public-api\r\ndescription: Integrate SendWhale from server code using the repository Node SDK, hosted MCP, local Deno adapter or existing transactional-send endpoint, with real current authentication and idempotency contracts.\r\n---\r\n\r\nChoose the integration around the actual task:\r\n\r\n- An AI client drafting branded emails: hosted MCP at `https://www.gosendwhale.com/mcp`, with browser OAuth and workspace-scoped draft permissions.\r\n- Node/TypeScript backend: the repository `packages/sendwhale-sdk` package builds ESM/CommonJS and declarations. It is not yet an npm-published package. Install its reviewed local archive only when needed and authorized.\r\n- Command-based MCP clients: the repository `mcp/` Deno adapter. Read its README and use a real Supabase user session and publishable key. It has a different credential from hosted OAuth. Do not invent `sendwhale login` or `npx @sendwhale/mcp`.\r\n- Authorized transactional product triggers: POST the project's `/functions/v1/transactional-send` using a purpose-bound workspace `email:send` key. Marketing campaigns use the native campaign review flow.\r\n\r\nRead [API contracts](references/contracts.md) before coding. Verify current schemas through the hosted tool catalog, repository SDK types and `https://www.gosendwhale.com/docs/mcp-setup.md`. This skill is not a new endpoint specification. There is no implied `/v1/projects/emails/generate`, claim-code auth, local OAuth CLI, managed-domain purchase or provider export API.\r\n\r\nKeep credentials and sends server-side. Preserve tenant scope and consent/suppression status. Add a stable idempotency key for draft saves and transactional delivery. Never automatically repeat an uncertain send with a new key. The SDK returns `{data,error}`; local invalid configuration throws. SMTP acceptance, remote delivery and inbox placement are separate outcomes.\r\n\r\nFor operating drafts use `sendwhale`. For auditing an existing app's triggers and wiring its backend use `sendwhale-setup`. Report changed files, chosen surface, actual IDs, test results and any unsupported operation clearly.\r\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}