{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Trigger up to 100 batch emails at once.","properties":{"headers":{"type":"object","properties":{"Idempotency-Key":{"type":"string","maxLength":256,"description":"A unique identifier for the request to ensure emails are only sent once. [Learn more](https://resend.com/docs/dashboard/emails/idempotency-keys)"}},"required":[],"additionalProperties":false},"body":{"type":"array","items":{"$ref":"#/definitions/SendEmailRequest"}}},"required":[],"additionalProperties":false,"definitions":{"SendEmailRequest":{"type":"object","required":["from","to","subject"],"properties":{"from":{"type":"string","description":"Sender email address. To include a friendly name, use the format \"Your Name <sender@domain.com>\"."},"to":{"description":"Recipient email address. For multiple addresses, send as an array of strings. Max 50.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":50}]},"subject":{"type":"string","description":"Email subject."},"bcc":{"description":"Bcc recipient email address. For multiple addresses, send as an array of strings.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"cc":{"description":"Cc recipient email address. For multiple addresses, send as an array of strings.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"reply_to":{"description":"Reply-to email address. For multiple addresses, send as an array of strings.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"html":{"type":"string","description":"The HTML version of the message."},"text":{"type":"string","description":"The plain text version of the message."},"template":{"allOf":[{"$ref":"#/definitions/EmailTemplateInput"},{"description":"Use a published template to send the email. If provided, do not include html or text."}]},"headers":{"type":"object","description":"Custom headers to add to the email."},"scheduled_at":{"type":"string","description":"Schedule email to be sent later. The date should be in ISO 8601 format."},"attachments":{"type":"array","items":{"$ref":"#/definitions/Attachment"}},"tags":{"type":"array","items":{"$ref":"#/definitions/Tag"}},"topic_id":{"type":"string","description":"The topic ID to scope the email to. If the recipient is a contact and opted-in to the topic, the email is sent. If opted-out, the email is not sent. If the recipient is not a contact, the email is sent if the topic's default subscription is opt_in."}}},"EmailTemplateInput":{"type":"object","properties":{"id":{"type":"string","description":"The id of the published email template."},"variables":{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Template variables object with key/value pairs.","examples":[{"variableName":"Sign up now","variableName2":123}]}},"required":["id"]},"Attachment":{"type":"object","properties":{"content":{"type":"string","format":"byte","description":"Content of an attached file."},"filename":{"type":"string","description":"Name of attached file."},"path":{"type":"string","description":"Path where the attachment file is hosted"},"content_type":{"type":"string","description":"Optional content type for the attachment, if not set it will be derived from the filename property"},"content_id":{"type":"string","description":"Content ID for embedding inline images using cid references (e.g., cid:image001)."}}},"Tag":{"type":"object","properties":{"name":{"type":"string","description":"The name of the email tag. It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). It can contain no more than 256 characters."},"value":{"type":"string","description":"The value of the email tag.It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). It can contain no more than 256 characters."}}}}},"name":"Trigger up to 100 batch emails at once.","id":"resend.emails.send-batch","example":{},"maxRequests":1,"summary":false}}