{{baseUrl}}/pec

POST {{baseUrl}}/pec

This method allows you to register a new certified mailbox.

If you do not have your own certified domain, the mailbox must necessarily consist of:

In Sandbox must be: 'boxname'@testcert.legalmail.it (Es. provapec@testcert.legalmail.it) or 'boxname'@test.domiciliodigitale.com (Es. provapec@test.domiciliodigitale.com).

Request Body

{"casella_pec"=>"<string>", "tipo_casella"=>"<string>", "tipo_cliente"=>"<string>", "nome_richiedente"=>"<string>", "cognome_richiedente"=>"<string>", "email"=>"<string>", "telefono"=>"<string>", "codice_fiscale_richiedente"=>"<string>", "data_nascita_richiedente"=>"<string>", "sesso_richiedente"=>"<string>", "nazione_nascita_richiedente"=>"<string>", "indirizzo_titolare"=>"<string>", "comune_titolare"=>"<string>", "cap_titolare"=>"<string>", "nazione_titolare"=>"<string>", "provincia_titolare"=>"<string>", "sottotipo_cliente"=>"<string>", "sottotipo_cliente_altro"=>"<string>", "cellulare"=>"<string>", "comune_nascita_richiedente"=>"<string>", "provincia_nascita_richiedente"=>"<string>", "denominazione_titolare"=>"<string>", "cf_piva_titolare"=>"<string>", "callback"=>{"method"=>"<string>", "field"=>"<string>", "url"=>"<string>", "data"=>"<object>"}, "autorinnovo"=>false, "tipo_documento"=>"<string>", "numero_documento"=>"<string>", "data_scadenza_documento"=>"<string>", "documento_rilasciato_da"=>"<string>", "data_rilascio_documento"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;casella_pec&quot;:&quot;yourpec@testcert.legalmail.it&quot;,&quot;tipo_casella&quot;:&quot;BRONZE&quot;,&quot;tipo_cliente&quot;:&quot;PV&quot;,&quot;sottotipo_cliente&quot;:&quot;&quot;,&quot;sottotipo_cliente_altro&quot;:&quot;&quot;,&quot;nome_richiedente&quot;:&quot;mario&quot;,&quot;cognome_richiedente&quot;:&quot;rossi&quot;,&quot;email&quot;:&quot;mail@domain.com&quot;,&quot;telefono&quot;:&quot;0548798569&quot;,&quot;codice_fiscale_richiedente&quot;:&quot;RSSXXXXXXXX56E&quot;,&quot;data_nascita_richiedente&quot;:&quot;11/04/1982&quot;,&quot;sesso_richiedente&quot;:&quot;M&quot;,&quot;nazione_nascita_richiedente&quot;:&quot;IT&quot;,&quot;provincia_nascita_richiedente&quot;:&quot;RM&quot;,&quot;denominazione_titolare&quot;:&quot;&quot;,&quot;cf_piva_titolare&quot;:&quot;&quot;,&quot;indirizzo_titolare&quot;:&quot;via verdi 20&quot;,&quot;comune_titolare&quot;:&quot;roma&quot;,&quot;cap_titolare&quot;:&quot;00042&quot;,&quot;nazione_titolare&quot;:&quot;IT&quot;,&quot;provincia_titolare&quot;:&quot;rm&quot;,&quot;callback&quot;:{&quot;url&quot;:&quot;https://your_domain.it/your_callback.php&quot;,&quot;field&quot;:&quot;data&quot;,&quot;method&quot;:&quot;POST&quot;,&quot;data&quot;:{}},&quot;dominio&quot;:&quot;testcert.legalmail.it&quot;,&quot;owner&quot;:&quot;mail@domain.com&quot;,&quot;timestamp&quot;:{&quot;registrazione&quot;:1615199724,&quot;ultima_modifica&quot;:1615199726},&quot;cellulare&quot;:&quot;&quot;,&quot;comune_nascita_richiedente&quot;:&quot;&quot;,&quot;cod_attivazione&quot;:&quot;10174594&quot;,&quot;uid&quot;:&quot;MA178634&quot;,&quot;conservazione&quot;:false,&quot;data_scadenza&quot;:&quot;&quot;,&quot;descrizione&quot;:&quot;prova.sviluppo@testcert.legalmail.it&quot;,&quot;sms&quot;:false,&quot;spazio_conservazione&quot;:0,&quot;spazio_disco&quot;:0,&quot;spazio_storico&quot;:0,&quot;stato&quot;:&quot;registrata&quot;,&quot;storico&quot;:false,&quot;id&quot;:&quot;6045fdee3a716847a978a471&quot;,&quot;autorinnovo&quot;:false},&quot;success&quot;:true,&quot;message&quot;:&quot;&quot;,&quot;error&quot;:null}