@@ -438,6 +438,86 @@ def reply_all(
438438 )
439439 return _response .data
440440
441+ def forward (
442+ self ,
443+ inbox_id : InboxId ,
444+ message_id : MessageId ,
445+ * ,
446+ labels : typing .Optional [MessageLabels ] = OMIT ,
447+ reply_to : typing .Optional [SendMessageReplyTo ] = OMIT ,
448+ to : typing .Optional [SendMessageTo ] = OMIT ,
449+ cc : typing .Optional [SendMessageCc ] = OMIT ,
450+ bcc : typing .Optional [SendMessageBcc ] = OMIT ,
451+ subject : typing .Optional [MessageSubject ] = OMIT ,
452+ text : typing .Optional [MessageText ] = OMIT ,
453+ html : typing .Optional [MessageHtml ] = OMIT ,
454+ attachments : typing .Optional [SendMessageAttachments ] = OMIT ,
455+ headers : typing .Optional [SendMessageHeaders ] = OMIT ,
456+ request_options : typing .Optional [RequestOptions ] = None ,
457+ ) -> SendMessageResponse :
458+ """
459+ Parameters
460+ ----------
461+ inbox_id : InboxId
462+
463+ message_id : MessageId
464+
465+ labels : typing.Optional[MessageLabels]
466+
467+ reply_to : typing.Optional[SendMessageReplyTo]
468+
469+ to : typing.Optional[SendMessageTo]
470+
471+ cc : typing.Optional[SendMessageCc]
472+
473+ bcc : typing.Optional[SendMessageBcc]
474+
475+ subject : typing.Optional[MessageSubject]
476+
477+ text : typing.Optional[MessageText]
478+
479+ html : typing.Optional[MessageHtml]
480+
481+ attachments : typing.Optional[SendMessageAttachments]
482+
483+ headers : typing.Optional[SendMessageHeaders]
484+
485+ request_options : typing.Optional[RequestOptions]
486+ Request-specific configuration.
487+
488+ Returns
489+ -------
490+ SendMessageResponse
491+
492+ Examples
493+ --------
494+ from agentmail import AgentMail
495+
496+ client = AgentMail(
497+ api_key="YOUR_API_KEY",
498+ )
499+ client.inboxes.messages.forward(
500+ inbox_id="inbox_id",
501+ message_id="message_id",
502+ )
503+ """
504+ _response = self ._raw_client .forward (
505+ inbox_id ,
506+ message_id ,
507+ labels = labels ,
508+ reply_to = reply_to ,
509+ to = to ,
510+ cc = cc ,
511+ bcc = bcc ,
512+ subject = subject ,
513+ text = text ,
514+ html = html ,
515+ attachments = attachments ,
516+ headers = headers ,
517+ request_options = request_options ,
518+ )
519+ return _response .data
520+
441521 def update (
442522 self ,
443523 inbox_id : InboxId ,
@@ -945,6 +1025,94 @@ async def main() -> None:
9451025 )
9461026 return _response .data
9471027
1028+ async def forward (
1029+ self ,
1030+ inbox_id : InboxId ,
1031+ message_id : MessageId ,
1032+ * ,
1033+ labels : typing .Optional [MessageLabels ] = OMIT ,
1034+ reply_to : typing .Optional [SendMessageReplyTo ] = OMIT ,
1035+ to : typing .Optional [SendMessageTo ] = OMIT ,
1036+ cc : typing .Optional [SendMessageCc ] = OMIT ,
1037+ bcc : typing .Optional [SendMessageBcc ] = OMIT ,
1038+ subject : typing .Optional [MessageSubject ] = OMIT ,
1039+ text : typing .Optional [MessageText ] = OMIT ,
1040+ html : typing .Optional [MessageHtml ] = OMIT ,
1041+ attachments : typing .Optional [SendMessageAttachments ] = OMIT ,
1042+ headers : typing .Optional [SendMessageHeaders ] = OMIT ,
1043+ request_options : typing .Optional [RequestOptions ] = None ,
1044+ ) -> SendMessageResponse :
1045+ """
1046+ Parameters
1047+ ----------
1048+ inbox_id : InboxId
1049+
1050+ message_id : MessageId
1051+
1052+ labels : typing.Optional[MessageLabels]
1053+
1054+ reply_to : typing.Optional[SendMessageReplyTo]
1055+
1056+ to : typing.Optional[SendMessageTo]
1057+
1058+ cc : typing.Optional[SendMessageCc]
1059+
1060+ bcc : typing.Optional[SendMessageBcc]
1061+
1062+ subject : typing.Optional[MessageSubject]
1063+
1064+ text : typing.Optional[MessageText]
1065+
1066+ html : typing.Optional[MessageHtml]
1067+
1068+ attachments : typing.Optional[SendMessageAttachments]
1069+
1070+ headers : typing.Optional[SendMessageHeaders]
1071+
1072+ request_options : typing.Optional[RequestOptions]
1073+ Request-specific configuration.
1074+
1075+ Returns
1076+ -------
1077+ SendMessageResponse
1078+
1079+ Examples
1080+ --------
1081+ import asyncio
1082+
1083+ from agentmail import AsyncAgentMail
1084+
1085+ client = AsyncAgentMail(
1086+ api_key="YOUR_API_KEY",
1087+ )
1088+
1089+
1090+ async def main() -> None:
1091+ await client.inboxes.messages.forward(
1092+ inbox_id="inbox_id",
1093+ message_id="message_id",
1094+ )
1095+
1096+
1097+ asyncio.run(main())
1098+ """
1099+ _response = await self ._raw_client .forward (
1100+ inbox_id ,
1101+ message_id ,
1102+ labels = labels ,
1103+ reply_to = reply_to ,
1104+ to = to ,
1105+ cc = cc ,
1106+ bcc = bcc ,
1107+ subject = subject ,
1108+ text = text ,
1109+ html = html ,
1110+ attachments = attachments ,
1111+ headers = headers ,
1112+ request_options = request_options ,
1113+ )
1114+ return _response .data
1115+
9481116 async def update (
9491117 self ,
9501118 inbox_id : InboxId ,
0 commit comments