Create Self-Mailer Profile
POST/print-mail/v1/order_profiles/self_mailers
Creates a new Self-Mailer Profile. Provide either insideTemplate and outsideTemplate IDs, or upload a 2-page pdf.
If providing a pdf, the request Content-Type must be multipart/form-data.
Create Self-Mailer Profile
curl https://api.postgrid.com/print-mail/v1/order_profiles/self_mailers \
-H 'Content-Type: application/json' \
-H "X-API-Key: $POSTGRID_PRINT_MAIL_API_KEY" \
-d '{
"size": "8.5x11_bifold"
}'{
"id": "self_mailer_profile_101",
"object": "self_mailer_profile",
"live": false,
"description": "Marketing Self-Mailer",
"size": "8.5x11_bifold",
"insideTemplate": "template_123",
"outsideTemplate": "template_456",
"mailingClass": "standard_class",
"createdAt": "2023-04-25T13:00:00Z",
"updatedAt": "2023-04-25T13:00:00Z"
}Returns Examples
{
"id": "self_mailer_profile_101",
"object": "self_mailer_profile",
"live": false,
"description": "Marketing Self-Mailer",
"size": "8.5x11_bifold",
"insideTemplate": "template_123",
"outsideTemplate": "template_456",
"mailingClass": "standard_class",
"createdAt": "2023-04-25T13:00:00Z",
"updatedAt": "2023-04-25T13:00:00Z"
}