Get PDF

Fetch metadata and a secure download URL for a specific PDF by its ID.

const pdfData = await client.get('xxxxxxxx-2a51-7551-af33-b0af9cefe1e7');
console.log(pdfData);
/*
{
  success: true,
  data: {
    id: 'xxxxxxxx-2a51-7551-af33-b0af9cefe1e7',
    generationType: 'payload',
    templateId: null,
    status: 'completed',
    createdAt: '20xx-xx-03T11:32:03.793Z',
    updatedAt: '20xx-xx-03T11:32:14.623Z',
    expiresAt: '20xx-xx-04T11:32:03.793Z',
    testResults: {}
  }
}
*/