Get Thumbnails
GET/print-mail/v1/thumbnails
Gets the thumbnails of up to 100 resources.
IDs that have no thumbnail yet, and IDs of resources that are deleted,
don’t exist, or belong to another organization or mode, are left out of
data without an error. Poll until an ID appears with status of
generated.
This endpoint is limited to 10 requests per minute.
Get Thumbnails
curl https://api.postgrid.com/print-mail/v1/thumbnails \
-H "X-API-Key: $POSTGRID_PRINT_MAIL_API_KEY"{
"object": "list",
"data": [
{
"id": "template_pxd7wnnD1xY6H6etKNvjb4",
"object": "thumbnail",
"status": "generated",
"medium": "https://pg-prod-bucket-1.s3.amazonaws.com/thumbnails/org_123/test/template_pxd7wnnD1xY6H6etKNvjb4_medium.jpg?X-Amz-Expires=900&X-Amz-Signature=..."
},
{
"id": "template_7mhJUt25TnagyYzy1N81SJ",
"object": "thumbnail",
"status": "generating"
}
]
}Returns Examples
{
"object": "list",
"data": [
{
"id": "template_pxd7wnnD1xY6H6etKNvjb4",
"object": "thumbnail",
"status": "generated",
"medium": "https://pg-prod-bucket-1.s3.amazonaws.com/thumbnails/org_123/test/template_pxd7wnnD1xY6H6etKNvjb4_medium.jpg?X-Amz-Expires=900&X-Amz-Signature=..."
},
{
"id": "template_7mhJUt25TnagyYzy1N81SJ",
"object": "thumbnail",
"status": "generating"
}
]
}