For agents

AI Agents

Give your coding agent one prompt and it sends its first real email through weir. Three steps, two minutes.

1. Add your API key

Create a key in the dashboard (Keys), then add it to your project's .env. In production, set the same value as an environment variable on your host.

WEIR_API_KEY=sk_live_...

Test keys (sk_test_) never touch SMTP. Use a live key for a real inbox.

2. Name the sender

Tell the agent which of your sender identities to send from. The value is the display name the agent puts on the message.

WEIR_APP=<your-application-senders-name>

3. Paste this prompt into your agent

Replace the highlighted placeholder with an address you control, copy the card, and hand it to your agent (Claude Code, Codex, Cursor, anything that can read a URL and run a command):

Prompt

Use the instruction at https://weir.itcass.net/llms.txt and the WEIR_API_KEY in .env to send a test email to <your-email>. Use the WEIR_APP .env value as the sender's name.

The agent reads llms.txt, builds the POST /v1/send call itself, and reports the message id and status back to you.