Method
func (s *ReceivingSvcImpl) List() (ListReceivedEmailsResponse, error)
func (s *ReceivingSvcImpl) ListWithContext(ctx context.Context) (ListReceivedEmailsResponse, error)
func (s *ReceivingSvcImpl) ListWithOptions(ctx context.Context, options *ListOptions) (ListReceivedEmailsResponse, error)
Access via: client.Emails.Receiving.List()
Parameters
Pagination options (only available in ListWithOptions)Maximum number of emails to return
Cursor for forward pagination
Cursor for backward pagination
Response
Whether there are more results available
Array of received email objectsThe unique identifier of the email
Array of recipient email addresses
The sender’s email address
ISO 8601 timestamp of when the email was received
Array of BCC recipient addresses
Array of CC recipient addresses
Array of reply-to addresses
Array of attachment metadata (without download URLs)
Example
client := resend.NewClient("re_123456789")
response, err := client.Emails.Receiving.List()
if err != nil {
panic(err)
}
for _, email := range response.Data {
fmt.Printf("Email: %s\n", email.Subject)
fmt.Printf(" From: %s\n", email.From)
fmt.Printf(" To: %v\n", email.To)
fmt.Printf(" Received: %s\n", email.CreatedAt)
}
fmt.Println("Has More:", response.HasMore)