Discussions
PDF Attachement issue
Please refer to the latest question below under the line.
Hi
Can I know which API can we use to retrieve the pdf attachment in the job history of any client?
Thanks
K
about 1 month ago by Cody
Hi Karan,
To retrieve PDF attachments from job history, you'll need to use the /attachment endpoint. Here's how it works:
First, query the /jobactivity endpoint to get the attachment UUID from the job history.
- Then use the /attachment endpoint with that UUID to download the actual PDF file.
The attachment endpoint supports both retrieving attachment metadata and downloading the actual file content. Make sure your OAuth scope or API key includes 'read_attachments' permission.
Thanks,
Cody
Hi Cody
I tried using the above method and there seems to be a bit of confusion, I attached a PDF report on the job card of the client which shows on the left side panel of the work order and now I want to know in order for me to download or view that pdf file on my web based client portal, how can I achieve this, is there any Specific API or a better way to do that?
Thanks