The email size limit is 25 MB for each inbound email message (including attachments).
Overview
Tesouro automatically creates mailboxes for partners. These mailboxes are on Tesouro’s domain—tesouro.com; thus, the email address on all Tesouro emails is always noreply@tesouro.com by default. However, partners can opt to set up their email domain for better convenience.
Once a domain is created and verified, for example, mycompany.com, the emails Tesouro sends will also have noreply@mycompany.com in the from header by default. This custom domain will also be displayed in the email’s mailed-by and signed-by MIME headers.
You can customize the email sender name and username by updating your Tesouro partner settings.
Roles and permissions
The following endpoints must be accessed using a partner access token:/mailbox-domains*GET /mailboxes/search
mailbox permissions to access these endpoints.
GET /mailboxesPOST /mailboxesDELETE /mailboxes/{mailbox_id}
Manage domains
List all domains
To list all the domains registered in the system, send aGET request to the /mailbox-domains endpoint:
Create a domain
To create a new domain, send aPOST request to the /mailbox-domains endpoint:
Set up a domain’s DNS records
After receiving the required DNS records in the previous step, you have to enter these settings in the control panel of your domain provider.Verify a domain
The mail service provider used by Tesouro automatically verifies the associated domains on a regular basis (one or more times a day). However, you can also trigger domain verification manually by callingPOST /mailbox-domains/{domain_id}/verify:
status set to verified:
status set to waiting_to_be_verified. To resolve this issue, ensure the DNS records required for this mailbox domain match the records you provided in the control panel of your domain provider in the previous step.
Update a domain
It is not possible to update an existing domain. If some data has to be changed, you need to delete the domain and then create it again. To delete a domain, callDELETE /mailbox-domains/{domain_id}:
Manage mailboxes
After you have added your custom domain to Tesouro, you can associate specific mailboxes within this domain with specific organizations. These organization mailboxes are not created by default and, thus, need to be created by the partners. The domain should be verified.The mailbox name can contain only lowercase letters (from
a to z), digits (from 0 to 9), and
the characters ., _, +, and -.Associate a mailbox with an organization
To associate a mailbox with an organization, callPOST /mailboxes as shown below. The mailbox_name field represents the part of the email address before the @ and the mailbox_domain_id field represents the ID of the domain that you previously added:
mailbox_full_address) associated with this organization:
List all mailboxes
To retrieve all the mailboxes used to process payables of the connected organization, callGET /mailboxes:
Partners can list all the mailboxes of a given list of organization IDs by calling
POST /mailboxes/search.Update a mailbox
It is not possible to update an existing mailbox. If some data has to be changed, you need to delete the mailbox and then create it again. To delete a mailbox, callDELETE /mailboxes/{mailbox_id}: