Gmail: Investigation request for missing incoming emails

Hi team,

We are using the Gmail API to fetch inbound emails for our account: ffa-inbox-emea@flexport.com. Our system correctly receives the history.list response with newly received messageId, but gets a 404 Not Found when trying to fetch the raw message using the exact messageId moments later when calling messages.get. We can confirm that no email is permanently deleted from the inbox by human operations. Can you please check if Google hard-deleted these emails for some reasons? Thanks!

Gmail Message IDs: 19d874c46d0cea05, 19d8af404e3c80a8, 19d8c406be8efbd0, 19d90068cd8cb430, 19d901fb2ac74702, 19d90330fe652b31, 19d9104d58d9ae9e, 19d910ce516d8f5a, 19d96264c5434709

Sample Error Log:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
GET https://www.googleapis.com/gmail/v1/users/me/messages/19d96264c5434709?format=raw
{
"code": 404,
"errors": [
{
"domain": "global",
"message": "Requested entity was not found.",
"reason": "notFound"
}
],
"message": "Requested entity was not found.",
"status": "NOT_FOUND"
}
at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:146)
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:118)
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:37)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:428)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1111)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:514)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:455)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:565)

If you are a Google Workspace Admin, run an Email Log Search for those specific IDs (e.g., 19d96264c5434709). This might offer insight into what happened to the message (e.g., “Delivered to Spam,” “Deleted by Rule,” or “Quarantined”).