rest-api.md
| source_path | references/rest-api.md |
|---|---|
| source_sha256 | b3c512d0e76a30dd51c6f131488c438cd3975aa0f14f42bad00ef2d442721083 |
| source_url | https://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare-email-service/references/rest-api.md |
| supporting_skill_id | 40181 |
| upstream_revision | 47dfc2ce969bf62acf8bc231198ade4bb02712e0 |
Sending Emails — REST API
Use the REST API for HTTP integrations from external applications, or when the user explicitly requests it inside a Worker. Otherwise prefer the Workers binding.
Read the relevant page before building the request. Keep credentials in the project's existing secret or environment-variable mechanism, and inspect the installed client SDK version if one is used.
| Task | Read |
|---|---|
| Authenticate, send an email, or find the complete request schema | REST API and its linked Email Sending API reference |
| Set multiple recipients, CC/BCC, or named addresses | Specify recipients (REST examples) |
| Encode attachments | REST attachments |
| Add custom headers | Email headers |
| Check recipient, message-size, or sending quotas | Limits |
| Interpret delivery outcomes | REST response |
| Diagnose errors and decide whether to retry | REST error handling |
Do not reuse a Workers binding payload or response parser unchanged: verify field names, attachment encoding, response shape, and error handling for the chosen API. Validate both successful responses and failures through the project's existing checks; distinguish retryable service failures from requests that need correction.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.