message_id metadata.
If you want to reply to an email, you should add the In-Reply-To header set to the message_id of the received email. We also recommend setting the subject to start with Re: so that email clients can group the replies together.
Here’s how you can implement this:
message_ids to the References header, separated by spaces.
This helps email clients maintain the correct threading structure.