GET
/
api
/
v2
/
documents
/
pdf-template
/
{slug}
/
metadata
import SampleHealthcare from 'samplehc';

const client = new SampleHealthcare({
  apiKey: process.env['SAMPLEHC_API_KEY'], // This is the default and can be omitted
});

const response = await client.v2.documents.pdfTemplate.retrieveMetadata('slug');

console.log(response.id);
{
  "id": "<string>",
  "fileName": "<string>",
  "presignedUrl": "<string>"
}

Path Parameters

slug
string
required

The slug of the PDF template.

Response

200
application/json

Successfully retrieved PDF template document metadata.