List Custom Envelopes
GET/print-mail/v1/custom_envelopes
Gets a list of custom envelopes for the user.
Query Parameters
search: optional string
You can supply any string to help narrow down the list of resources. For example, if you pass "New York" (quoted), it will return resources that have that string present somewhere in their response. Alternatively, you can supply a structured search query. See the documentation on StructuredSearchQuery for more details.
List Custom Envelopes
curl https://api.postgrid.com/print-mail/v1/custom_envelopes \
-H "X-API-Key: $POSTGRID_PRINT_MAIL_API_KEY"{
"object": "list",
"limit": 10,
"skip": 0,
"totalCount": 1,
"data": [
{
"id": "custom_envelope_iPu6EaCbSUjZN7bEW8Qhee",
"object": "custom_envelope",
"live": false,
"description": "Spring campaign envelope",
"envelopeType": "standard_single_window",
"available": 5000,
"status": "approved",
"url": "https://pg-prod-bucket-1.s3.amazonaws.com/test/custom_envelope_iPu6EaCbSUjZN7bEW8Qhee.pdf?AWSAccessKeyId=AKIA&Expires=1736870000&Signature=abc",
"createdAt": "2021-12-16T03:06:17.419Z",
"updatedAt": "2021-12-16T03:06:17.419Z"
}
]
}Returns Examples
{
"object": "list",
"limit": 10,
"skip": 0,
"totalCount": 1,
"data": [
{
"id": "custom_envelope_iPu6EaCbSUjZN7bEW8Qhee",
"object": "custom_envelope",
"live": false,
"description": "Spring campaign envelope",
"envelopeType": "standard_single_window",
"available": 5000,
"status": "approved",
"url": "https://pg-prod-bucket-1.s3.amazonaws.com/test/custom_envelope_iPu6EaCbSUjZN7bEW8Qhee.pdf?AWSAccessKeyId=AKIA&Expires=1736870000&Signature=abc",
"createdAt": "2021-12-16T03:06:17.419Z",
"updatedAt": "2021-12-16T03:06:17.419Z"
}
]
}