{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Sends the draft from the inbox address. A reply draft is sent in its thread. A draft without a thread starts a new thread. The draft must have at least one `to` recipient and `html` or `text`, or the request returns a 422. A standalone draft also needs a non-empty `subject`. A reply draft with an empty `subject` is sent with the thread subject, prefixed with `Re:` when it does not already start with it. A draft that was already sent returns a 409. The request body is optional and takes only `headers`. The whole email, encoded, can be at most 40 MB, or the request returns a 422.","properties":{"headers":{"type":"object","properties":{"Idempotency-Key":{"type":"string","minLength":1,"maxLength":256,"description":"A unique key for the request, so the draft is sent only once. A retry with the same key within 24 hours returns the first successful (2xx) response, with the `idempotent-replayed: true` header. A failed request is not stored, so it can be retried with the same key. Reusing the key with a different body, or while the first request is still running, returns a 409. An empty key, or one longer than 256 characters, returns a 400 `invalid_idempotency_key`. [Learn more](https://resend.com/docs/dashboard/emails/idempotency-keys)"}},"required":[],"additionalProperties":false},"path":{"type":"object","properties":{"inbox_id":{"type":"string","examples":["b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"],"description":"The Inbox ID or the inbox email address, such as `support@acme.com`. A value that contains `@` must be a valid email address, and any other value must be a UUID, or the request returns a 422. The address match is case-insensitive and never falls back to the inbox `name`. An address that matches no inbox returns a 404."},"draft_id":{"type":"string","format":"uuid","description":"The Draft ID."}},"required":["inbox_id","draft_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/SendInboxDraftOptions"}},"required":["path"],"additionalProperties":false,"definitions":{"SendInboxDraftOptions":{"type":"object","properties":{"headers":{"type":["object","null"],"additionalProperties":{"type":"string"},"description":"Custom headers to add to the email. The `In-Reply-To`, `References` and `Reply-To` headers are set by Resend and cannot be set here. Sending one of them, in any letter case, returns a 422. Header names cannot be empty, and names and values cannot contain line breaks or null characters, or the request returns a 422. `null` means no custom headers.","examples":[{"X-Ticket-Id":"4821"}]}}}}},"name":"Send a draft","id":"resend.inboxes.send-draft","example":{"path":{"inbox_id":"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1","draft_id":"00000000-0000-4000-8000-000000000000"}},"maxRequests":1,"summary":false}}