use resend_rs::{types::GetInboundEmailOptions, Resend, Result};#[tokio::main]async fn main() -> Result<()> { let resend = Resend::new("re_xxxxxxxxx"); let _email = resend .receiving .get( "37e4414c-5e25-4dbc-a071-43552a4bd53b", GetInboundEmailOptions::default(), ) .await?; Ok(())}
import com.resend.Resend;import com.resend.core.exception.ResendException;import com.resend.services.receiving.model.ReceivedEmail;public class Main { public static void main(String[] args) throws ResendException { Resend resend = new Resend("re_xxxxxxxxx"); ReceivedEmail email = resend.receiving().get("37e4414c-5e25-4dbc-a071-43552a4bd53b"); }}
using Resend;IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DIvar resp = await resend.ReceivedEmailRetrieveAsync( new Guid( "4ef9a417-02e9-4d39-ad75-9611e0fcc33c" ) );Console.WriteLine( "Subject={0}", resp.Content.Subject );
curl -X GET 'https://api.resend.com/emails/receiving/4ef9a417-02e9-4d39-ad75-9611e0fcc33c' \ -H 'Authorization: Bearer re_xxxxxxxxx'
resend emails receiving get 4ef9a417-02e9-4d39-ad75-9611e0fcc33c
use resend_rs::{types::GetInboundEmailOptions, Resend, Result};#[tokio::main]async fn main() -> Result<()> { let resend = Resend::new("re_xxxxxxxxx"); let _email = resend .receiving .get( "37e4414c-5e25-4dbc-a071-43552a4bd53b", GetInboundEmailOptions::default(), ) .await?; Ok(())}
import com.resend.Resend;import com.resend.core.exception.ResendException;import com.resend.services.receiving.model.ReceivedEmail;public class Main { public static void main(String[] args) throws ResendException { Resend resend = new Resend("re_xxxxxxxxx"); ReceivedEmail email = resend.receiving().get("37e4414c-5e25-4dbc-a071-43552a4bd53b"); }}
using Resend;IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DIvar resp = await resend.ReceivedEmailRetrieveAsync( new Guid( "4ef9a417-02e9-4d39-ad75-9611e0fcc33c" ) );Console.WriteLine( "Subject={0}", resp.Content.Subject );
curl -X GET 'https://api.resend.com/emails/receiving/4ef9a417-02e9-4d39-ad75-9611e0fcc33c' \ -H 'Authorization: Bearer re_xxxxxxxxx'
resend emails receiving get 4ef9a417-02e9-4d39-ad75-9611e0fcc33c
Controls how inline images are returned inside html. The response echoes
the form actually served as html_format on the body.By default (or when set to data_uri), inline images appear in html as base64 data: URIs. Set html_format=cid to keep the original <img src="cid:..." /> references instead. Each cid: matches the content_id of an attachment, so you can correlate inline images with entries in the attachments array and fetch them via the attachment download endpoint.Emails whose inlined HTML would exceed 100 MB, typically long reply chains that quote the same inline image hundreds of times, are always stored and returned with cid: references. For those emails the response reports html_format: "cid" regardless of the requested format, so check the html_format field on the body rather than assuming the format you asked for.
How inline images are referenced in html. Usually matches the requested
format, but is cid when the email is too large to inline (see the query
parameter above).
The SPF, DKIM, and DMARC results computed when the email was received. These
come from the receiving mail server, not from the message headers, so the
sender cannot forge them. null for emails received before this field was
introduced.
use resend_rs::{types::GetInboundEmailOptions, Resend, Result};#[tokio::main]async fn main() -> Result<()> { let resend = Resend::new("re_xxxxxxxxx"); let _email = resend .receiving .get( "37e4414c-5e25-4dbc-a071-43552a4bd53b", GetInboundEmailOptions::default(), ) .await?; Ok(())}
import com.resend.Resend;import com.resend.core.exception.ResendException;import com.resend.services.receiving.model.ReceivedEmail;public class Main { public static void main(String[] args) throws ResendException { Resend resend = new Resend("re_xxxxxxxxx"); ReceivedEmail email = resend.receiving().get("37e4414c-5e25-4dbc-a071-43552a4bd53b"); }}
using Resend;IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DIvar resp = await resend.ReceivedEmailRetrieveAsync( new Guid( "4ef9a417-02e9-4d39-ad75-9611e0fcc33c" ) );Console.WriteLine( "Subject={0}", resp.Content.Subject );
curl -X GET 'https://api.resend.com/emails/receiving/4ef9a417-02e9-4d39-ad75-9611e0fcc33c' \ -H 'Authorization: Bearer re_xxxxxxxxx'
resend emails receiving get 4ef9a417-02e9-4d39-ad75-9611e0fcc33c