curl -X GET 'https://api.weir.ai/console/mail/status/email_123456789' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"data": {
"emailId": "email_123456789",
"to": "recipient@example.com",
"subject": "Welcome to the team",
"status": "delivered",
"sentAt": "2024-01-22T15:30:00Z",
"deliveredAt": "2024-01-22T15:30:15Z",
"opened": true,
"openedAt": "2024-01-22T16:00:00Z"
},
"message": "Email status retrieved successfully",
"status": "success"
}
Console APIs - Mail
Get Email Status
Check the delivery status of a sent email
GET
/
console
/
mail
/
status
/
:emailId
curl -X GET 'https://api.weir.ai/console/mail/status/email_123456789' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"data": {
"emailId": "email_123456789",
"to": "recipient@example.com",
"subject": "Welcome to the team",
"status": "delivered",
"sentAt": "2024-01-22T15:30:00Z",
"deliveredAt": "2024-01-22T15:30:15Z",
"opened": true,
"openedAt": "2024-01-22T16:00:00Z"
},
"message": "Email status retrieved successfully",
"status": "success"
}
Get Email Status
Check the delivery status and details of a previously sent email.curl -X GET 'https://api.weir.ai/console/mail/status/email_123456789' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"data": {
"emailId": "email_123456789",
"to": "recipient@example.com",
"subject": "Welcome to the team",
"status": "delivered",
"sentAt": "2024-01-22T15:30:00Z",
"deliveredAt": "2024-01-22T15:30:15Z",
"opened": true,
"openedAt": "2024-01-22T16:00:00Z"
},
"message": "Email status retrieved successfully",
"status": "success"
}
Path Parameters
Response Fields
Usage Examples
const getEmailStatus = async (emailId, accessToken) => {
const response = await fetch(`https://api.weir.ai/console/mail/status/${emailId}`, {
headers: {
'Authorization': `Bearer ${accessToken}`,
'x-source': 'console'
}
});
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
return await response.json();
};
import requests
def get_email_status(email_id, access_token):
response = requests.get(
f'https://api.weir.ai/console/mail/status/{email_id}',
headers={
'Authorization': f'Bearer {access_token}',
'x-source': 'console'
}
)
response.raise_for_status()
return response.json()
Was this page helpful?