€17.36 + VAT
Manage the activation and renewal of one or more Legalmail PEC mailboxes via API. Ideal for individuals and freelancers who don’t need to send or receive large volumes of PEC messages.
With the Legalmail Registered Electronic Mail (REM) API you can verify, activate, manage and renew InfoCert Legalmail mailboxes directly from your software. Legalmail is the Italian certified email (PEC), now aligned with the European REM standard. You can activate mailboxes for your own company or on behalf of third parties, for example by integrating the sale and activation of REM mailboxes for individuals, professionals and businesses into your portal or management software.
REM has the same legal value as a registered letter with return receipt: it certifies sending and delivery, guarantees the integrity of the content and records the date and time of transmission. With a single integration you can manage every type of Legalmail mailbox, from Standard to Gold.
All Legalmail mailboxes include:
The entry-level solution for those who don't need to send or receive large volumes of certified messages. Suitable for individuals, freelancers and SMEs.
More space for regular users, still without large sending volumes. Suitable for individuals, freelancers and SMEs.
For those who need more space and want an easier way to manage electronic invoices received by certified email.
The most complete solution, for those who need large storage space and high security levels. Includes all Silver features.
The activation process is the same for all mailboxes: only the value of the tipo_casella parameter changes.
The first step is to check that the desired address is available, using the GET /verifica_pec/{pec} endpoint.
GET /verifica_pec/{pec}
GET https://pec.openapi.it/verifica_pec/[email protected]
GET /verifica_pec/{pec}
If the address is available, the available field returns true:
{
"data": {
"available": true
},
"success": true,
"message": "",
"error": null
}
Once availability is confirmed, register the mailbox using the POST /pec endpoint. The request body must include:
To choose the mailbox to activate, enter one of these values in the tipo_casella parameter:
By setting the optional "autorinnovo" parameter to true, you also enable automatic renewal (the default is false).
POST /pec
This is a simplified payload example for a Standard mailbox. The full list of fields is available in the documentation.
{
"casella_pec": "[email protected]",
"tipo_casella": "standard",
"tipo_cliente": "PV",
"nome_richiedente": "mario",
"cognome_richiedente": "rossi",
"email": "[email protected]",
"codice_fiscale_richiedente": "RSSXXXXXXXX56E",
"indirizzo_titolare": "via verdi 20",
"comune_titolare": "roma",
"cap_titolare": "00042",
"provincia_titolare": "rm",
"autorinnovo": true,
"callback": {
"url": "https://your_domain.it/your_callback.php",
"field": "data"
}
}
POST /pec
The response summarizes the mailbox features and shows its status and ID. You will need the ID to complete activation, check the status and manage the mailbox over time.
{
"data": {
"casella_pec": "[email protected]",
"tipo_casella": "STANDARD",
"dominio": "legalmail.it",
"cod_attivazione": "10173956",
"stato": "registrata",
"id": "6040e4613a716838dc4eee0e",
"autorinnovo": true
},
"success": true,
"message": "",
"error": null
}
To complete activation, download the required forms using GET /pec/{id}/modulo_attivazione. Then send the completed and signed form, together with the applicant's identity document, using PATCH /pec/{id}/attivazione and the ID obtained during registration.
PATCH /pec/{id}/attivazione
The mailbox status changes to in_evasione (processing) and the response lists the uploaded activation documents:
{
"data": {
"casella_pec": "[email protected]",
"tipo_casella": "standard",
"stato": "in_evasione",
"documenti_attivazione": [
"6040e4613a716838dc4eee0e_0_attivazione.pdf",
"6040e4613a716838dc4eee0e_1_attivazione.pdf"
],
"id": "6040e4613a716838dc4eee0e"
},
"success": true,
"message": "",
"error": null
}
Once activation is complete, InfoCert sends the access credentials for the new mailbox directly to the applicant.
You can check the mailbox status at any time using the GET /pec/{id} endpoint.
GET /pec/{id}
GET https://pec.openapi.it/pec/6040e4613a716838dc4eee0e
GET /pec/{id}
{
"data": {
"casella_pec": "[email protected]",
"tipo_casella": "standard",
"stato": "registrata",
"data_attivazione": "04/03/2021",
"timestamp": {
"registrazione": 1614865504,
"evasione": 1614865504,
"scadenza": 1614868403,
"revoca": null
},
"spazio_disco": 1024,
"spazio_storico": 1024,
"conservazione": false,
"id": "6040e4613a716838dc4eee0e",
"autorinnovo": true
},
"success": true,
"message": "",
"error": null
}
After activation, your mailbox can grow with your needs through a single endpoint: PATCH /pec/{id}. With this call you can:
Alternatively, renewal can happen automatically if you set the "autorinnovo" parameter to true during registration.
The REM service also offers:
The Legalmail Registered Electronic Mail (REM) API is used by software houses, banks and financial institutions, accounting portals, public administrations and large companies. It's designed for those who want to offer their clients the activation of any type of Legalmail mailbox, or manage their own organization's mailboxes in an automated, secure and certified way.
Do you need help?
Haven't found the answer you're looking for?
Fill in all the details, we will get back to you as soon as possible!
The Legalmail REM API lets you verify, activate, manage, renew and upgrade InfoCert Legalmail mailboxes via API. Legalmail lets you send messages and documents securely, with the same legal value as a registered letter with return receipt. Through the API you can activate mailboxes for your own company or on behalf of third parties, for example by offering mailbox activation to your clients directly from your portal or management software.
Through the API you can activate four types of Legalmail mailbox, from the simplest to the most complete:
Legalmail Standard is the entry-level solution, designed for those who don’t need to send or receive large volumes of certified messages. It’s suitable for individuals, freelancers and SMEs. It offers 2 GB of total space (1 GB of inbox space and 1 GB of security archive) and includes:
Legalmail Bronze offers more space than Standard, for those who use certified email regularly but without large sending volumes. It’s suitable for individuals, freelancers and SMEs. It offers 5 GB of total space (2 GB of inbox space and 3 GB of security archive), has no cost per message sent and includes all Standard features.
Legalmail Silver is designed for those who need more space and want an easier way to manage electronic invoices received by certified email. It offers 8 GB of total space (2 GB of inbox space and 6 GB of security archive). In addition to all Bronze features, it includes:
Legalmail Gold is the most complete solution, for those who handle large volumes of messages and need ample storage space and high security levels. It offers 18 GB of total space (5 GB of inbox space and 13 GB of security archive). It includes all Silver features, plus the Phishing Protection and Password Protection cybersecurity services.
The Security Archive is the automatic backup of your mailbox messages. It saves a copy of incoming and outgoing messages, along with attachments and receipts, so nothing is lost even if you delete a message or your mailbox fills up. From webmail you can choose which types of messages to archive, search saved messages and, if needed, restore a copy to your mailbox.
The Bulk Sending feature lets you send the same certified message to many recipients in a single operation, directly from Legalmail webmail. Simply upload the recipient list from a CSV file, personalize the message for each recipient and receive a final report with the outcome of each delivery. Every message retains the full legal value of certified email.
All Legalmail mailboxes, from Standard to Gold, are activated for one year and can be renewed each time for a period of 1 to 3 years. Renewal is done through the PATCH /pec/{id} endpoint, using the ID obtained during registration. Alternatively, you can enable automatic renewal at registration, so your mailbox stays active without having to request renewal each time.
Yes. Once activated, you can modify the mailbox at any time through the PATCH /pec/{id} endpoint, using the ID obtained during registration. With a single call you can:
In addition to the included features, you can enhance Legalmail mailboxes with some add-on options:
Yes, REM has full legal validity and the same value as a registered letter with return receipt. This applies to all Legalmail mailboxes, from Standard to Gold. Certified messages guarantee:
Yes. Through the REM service you can activate a custom certified domain, so your organization’s addresses carry your company name. Two types of customization are available:
A Legalmail mailbox can be activated by both Italian and foreign individuals and companies, provided that foreign applicants have an Italian tax code (codice fiscale) or an Italian VAT number.
Yes, all Legalmail mailboxes (Standard, Bronze, Silver and Gold) are already set up for the free upgrade to the new European standards.
The API is designed for software houses, banks and financial institutions, accounting portals, public administrations and large companies. It lets you activate any type of Legalmail mailbox to manage communications securely and with certified value, for yourself or for your clients.
The service is delivered within 2 hours for all types of Legalmail mailbox.
The cost depends on the type of mailbox: