EMAIL ARCHIVE
View an archived email
Changed onFetch an archived email using the email_id
post/archive/email
Request
- Base URLhttps://api.smtp2go.com/v3
- Auth
- API key in header X-Smtp2go-Api-Key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"email_id": "1u0SwL-B9zBpi9ffUq-JAB2"
}Response
Archived email
Example response
{
"request_id": "13dd3376-40fa-11ec-9fc6-f23c9216bf47",
"data": {
"byte_count": 1428,
"email_id": "1u0SwL-B9zBpi9ffUq-JAB2",
"envelope_from": "test@test.com",
"headers": "...",
"recipient": "test@test.com",
"sender": "test@test.com",
"sent": "2021-10-19T21:35:40Z",
"subject": "test",
"to": "test@test.com",
"url": "...",
"username": "api-12345678"
}
}Changes
- info
added the new optional request property
- info