Get Hops
Parse the message's `Received` headers into delivery hops.
Parse the message's Received headers into delivery hops.
Scope: email_testing.messages.read
Path Parameters
idstringrequiredThe ID of the captured message, for example d5949378-3069-4d8f-a8f3-6e5edf5d6060. You get it from List Messages or the message.received webhook. It isn't the email's Message-ID header.
Sample Request
Request
curl "https://api.maileroo.com/v1/email-testing/messages/d5949378-3069-4d8f-a8f3-6e5edf5d6060/hops" \
-H "Authorization: Bearer roo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"Sample Response
The response is wrapped in a data object.
Response
{
"data": {
"hops": [
{
"hop": 1,
"protocol": "ESMTP",
"from_host": "mail.example.com",
"from_ip": "192.0.2.10",
"received_by": "mx.example.net",
"for": [
"[email protected]"
],
"date": "2025-01-01T12:00:00Z",
"raw": "Received: from mail.example.com (mail.example.com [192.0.2.10]) by mx.example.net with ESMTP; Wed, 1 Jan 2025 12:00:00 +0000"
}
]
}
}Errors
404 Not Found— the resource does not exist or is not owned by the account.