Email ›
Get email
GET
/v1/emailThe account's mail: the handle every address of its sandboxes carries, what its plan allows, and what it has had of that today.
RequestTypeScript
- import { Agental } from "agental-sdk";
- const agental = new Agental();
- const email = await agental.email();
Answer200 OK · AccountEmail
- {
- "handle": string | null,
- "domain": string | null,
- "limits": {
- "receivedPerDay": integer,
- "receivedBytesPerDay": integer,
- "keptBytes": integer,
- "sentPerHour": integer,
- "sentPerDay": integer,
- "sentBytesPerDay": integer,
- },
- "today": {
- "received": integer,
- "receivedBytes": integer,
- "sent": integer,
- "sentBytes": integer,
- },
- "keptBytes": integer,
- }
The account's handle, limits and use.
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 The account's handle, limits and use.
AccountEmail5 fields
handlestringnull
The account's part of every address.
More
It is generated, never chosen, and never given to another account. Null where no mail is offered.domainstringnull
What every sandbox's mail domain of this account ends in.
limitsobject6 fields
receivedPerDayinteger
receivedBytesPerDayinteger
keptBytesinteger
Stored mail is free up to this.
More
Past it, new mail is refused until some is deleted or is 7 days old.sentPerHourinteger
sentPerDayinteger
sentBytesPerDayinteger
todayobject4 fields
What the account has had of its limits in the UTC day it is now, across all its sandboxes.
More
Deleting a message gives none of it back.receivedinteger
receivedBytesinteger
sentinteger
sentBytesinteger
keptBytesinteger
Bytes of mail the account has stored now.