{"uid":"cap_8i4aOGDMvCjlbC5X702hv","slug":"codepulse-api-send-email-notification-84f860a1","name":"CodePulse API – Send Email Notification","description":"Sends automated email notifications using the Resend API.","url":"https://codepulse-api.hahavoid0.workers.dev/notify/email","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["to","subject","body"],"properties":{"to":{"type":"string","description":"Recipient email address"},"body":{"type":"string","description":"Email body text (HTML supported)"},"api_key":{"type":"string","description":"Optional Resend API key (if empty, uses worker config)"},"subject":{"type":"string","description":"Email subject line"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{"emailId":"id_123","success":true},"warnings":[],"supported":true,"confidence":"high","data_as_of":"2026-06","disclaimer":"Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.00","successRate":"1.00","reviews":1,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v9ridSpfIh41i5FCa4fyj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a transactional email to a specified recipient with a custom subject and body (HTML supported) via Resend, paid per-call with USDC on Base.","exampleAgentPrompt":"Send an email to alice@example.com with the subject 'Your order has shipped' and the body 'Hi Alice, your package is on its way and will arrive by Friday. Thanks for your order!'","exampleUseCases":[{"title":"Order confirmation alert to customer","prompt":"Email bob@shoppers.io with the subject 'Order #4821 Confirmed' and the body 'Hi Bob, we've received your order and it will be processed within 24 hours. Thank you!'"},{"title":"Agent task completion notification","prompt":"Send an email to myteam@company.com with the subject 'Scraping job finished' and body '<p>The web scraping task you scheduled has completed successfully. Results are ready for review.</p>'"},{"title":"Password reset or account notice","prompt":"Send a password reset email to jane.doe@gmail.com — subject should be 'Reset your password' and the body should say 'Click <a href=\"https://example.com/reset?token=abc123\">here</a> to reset your password. This link expires in 1 hour.'"}],"resultDescription":"A JSON object containing a success boolean, a unique emailId string confirming delivery was queued, a confidence rating, an optional warnings array, and a disclaimer note. Returns supported:true when the operation was handled correctly.","failureModes":["Invalid recipient email address format causes failure","Missing required fields (to, subject, body) returns a validation error","Invalid or missing Resend API key if worker config is not set up","Network or Resend service outage causes delivery failure","Insufficient USDC balance to cover the $0.02 per-call fee"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call email delivery capability with no subscription or API key management — ideal for AI agents that need to send transactional or notification emails on demand, billed per use in USDC via the x402 protocol on Base. Prefer over full email platforms when sending low-volume, event-driven emails without infrastructure overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-07-28T22:06:17.560Z","lastSuccessfullyRanAt":"2026-07-28T22:06:17.560Z","lastHealthCheckAt":"2026-09-14T00:41:35.180Z","isFirstParty":false}