Mailboxes
List mailboxes
List the mailboxes of one domain: sender name, address, the order it is on and, if you ask for it, the password.
https://server.scaledmail.com/api/v1/mailboxes/:domain- Token access
- Read
- Rate limit
- 120 read calls per minute per token
Passwords are only sent when you ask with ?password=true. Treat the answer as a secret: don't log it or store it in plain text.
A domain you only point to us for domain masking has no mailboxes: the list is empty.
Path parameters
domainstringrequiredat most 253 charactersThe domain name, like
demo-domain-1.(case is ignored), or the domain'scom idfromGET /domains. Expired and released domains are not found.
Headers
AuthorizationstringrequiredBearer <your API token>. The token needs Read access.
Query parameters
organization_idstringrequiredYour workspace id (
org_). Must be a workspace this token was made for.. . . passwordstringoptionalSend
trueto getmailbox_on every mailbox. Left out (or any other value), no passwords are sent. Every workspace role (owner, admin, member) may see passwords.password
Response (200)
totalintegerrequiredHow many mailboxes are listed.
mailboxesobject[]requiredThe domain's mailboxes, sorted by address. Cancelled mailboxes are left out. Empty when the domain has none yet.
ShowHide child fields
first_namestringrequiredSender first name.
last_namestringrequiredSender last name.
aliasstringrequiredThe part of the address before the
@.domain_idstringrequiredId of the domain (the
idinGET /domains).payment_idstringrequiredThe order this mailbox is on (
sub_, the. . . idinGET /orders).statusstringrequiredStatus of that order, in words:
Pending Form,Submitted,Provisioning,Active,CancellingorCancelled.tagstringrequiredThe tag of the order. Empty text when there is none.
mailbox_passwordstringoptionalOnly with
?password=true. The password of the domain's mailboxes (they share one). Empty text if it can't be read right now.emailstringrequiredFull address,
alias@domain.order_typeenum | nullrequiredThe kind of mailbox.
Responses
- 200OK. The domain was found. Without
?password=true. - 200OK, with passwords. The same call with
?password=true. - 404Domain not found. No such domain in this workspace. A domain of another workspace looks the same.
- 401No token. The
Authorizationheader is missing or notBearer <token>. - 429Rate limited. More than 120 read calls in a minute. Wait for the
Retry-Afterseconds. - 500Server error. Something went wrong on our side. Try again.
