post https://api.postgrid.com/print-mail/v1/letters
Create a letter order using either of HTML, PDF, or a letter template.
Log in to see full request history
time | status | user agent | |
---|---|---|---|
Retrieving recent requests… |
Loading…
Response
Create a letter order using either of HTML, PDF, or a letter template.
time | status | user agent | |
---|---|---|---|
Retrieving recent requests… |
xxxxxxxxxx
28curl --request POST \
--url https://api.postgrid.com/print-mail/v1/letters \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--data '
{
"to": "contact_pxd7wnnD1xY6H6etKNvjb4",
"from": "contact_pxd7wnnD1xY6H6etKNvjb4",
"html": "<b>Hello</b>, {{to.firstName}}!",
"addressPlacement": "top_first_page",
"doubleSided": true,
"color": "false",
"perforatedPage": "1",
"extraService": "certified",
"envelopeType": "flat",
"returnEnvelope": "return_envelope_97Tcv1LxhWWLPUvn58CuVJ",
"sendDate": "2023-02-16T15:40:35.873Z",
"description": "My HTML letter",
"express": "false",
"mergeVariables": {
"language": "english"
},
"metadata": {
"company": "PostGrid"
},
"mailingClass": "first_class"
}
'
Try It!
to start a request and see the response here! Or choose an example: