Logo
Openapi.it Public API Documentation

{{baseUrl}}/send

POST {{baseUrl}}/send

Send a PEC to the recipient sent and return the identification code of the shipment which can be used to return the information on the confirmation of receipt and delivery emails.
Recipients can be one or many: you can either specity a single address or an array of recipients

Please note that the this endpoint can handle up to 1 request/second.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status Created

{ "success": true, "sent": 1, "message": "", "message_id": "2020082610003492" }



Curl
curl -X POST 'baseUrl/send' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"sender":"\u003cstring\u003e","recipient":"\u003cstring\u003e","subject":"\u003cstring\u003e","body":"\u003cstring\u003e","attachments":{"name":"\u003cstring\u003e","file":"\u003cbase64encode\u003e"},"username":"\u003cstring\u003e","password":"\u003cstring\u003e"}'

ENDPOINTS