Get started

AI onboarding

Let coding assistants and agents work with Sendtern safely.

Cursor
You are Cursor. Integrate Sendtern transactional email into the repository currently open. Explain the result to me in en.

Read the Agent Skill at https://sendtern.com/SKILL.md and setup instructions at https://sendtern.com/setup.md. Use https://sendtern.com/llms.txt to discover docs and https://sendtern.com/agent.md for the complete HTTP contract.

Inspect the existing server-side email code, runtime, configuration examples, and tests. Reuse project conventions. If the app already uses the Resend Node.js SDK, keep it and point baseUrl to the Sendtern endpoint; for Supabase Auth, follow /docs/supabase-smtp.md to configure Custom SMTP and raise Supabase rate limits.

Verify Playground-first using POST https://sendtern.com/test/emails or Resend SDK baseUrl https://sendtern.com/test. For production, use POST https://sendtern.com/emails or Resend SDK baseUrl https://sendtern.com/resend. Capture one email in Email Playground using an example.com recipient. Do not send live email without my explicit approval.

Read SENDTERN_API_KEY from server-side secrets only. Never paste a key into chat, print it, bundle it into client code, or commit it. Keep a stable Idempotency-Key per logical business event and check the response status before treating an email as queued.

Make the code changes and run relevant tests. If a key or DNS access is missing, finish the code and mock verification. Report changed files, test results, an actual capture ID if captured, and any remaining DNS or dashboard actions.

Copy a setup prompt for Codex, Claude Code or OpenCode. Paste it into an agent that has access to your repository. The agent can implement the integration and use the Playground to test it.

Give your agent the docs

FileContains
/setup.mdRepository integration, test capture and migration
/llms.txtA concise index of the setup and API resources
/docs/llms.txtA Markdown article index grouped by topic
/llms-full.txtA bundle of core guides and reference links

Rules for agents

  1. Use a Sending only key. Never give an agent Full access.
  2. Read the key from SENDTERN_API_KEY. Never write it into source files.
  3. Always send an Idempotency-Key header so retries don't duplicate email.
  4. Ask the workspace operator to check delivery status in the dashboard. The sending key only queues mail.
  5. On 429, wait for the seconds in Retry-After before retrying.

Check the integration

Use POST /test/emails first, then inspect the capture in Email Playground. Switch to production once the sender domain is verified and the recipient has been approved.

Questions sent for AI answers are processed by DeepSeek. Leave out credentials and personal data.