While it's possible to create timeline events on contact, company, and deal records which contain links to the files or PDFs you have uploaded to HubSpot (or another content platform), these files will not show up as nice attachments on the timeline like the screenshots in this article.
If you want something like that, I have good news — the files will appear on the timeline and it's easier to set up in your app than using the Timeline API:
Upload the desired files to your file manager using the CMS Files API.
When successful, the endpoint above will return a file id which you can then use in the next step.
Create NOTE engagements on the desired contact, company, or deal record with the file id in the attachments array.
If done successfully, your app will create notes with files attached to them on any contact, company, or deal record timeline. These files will also appear in the record's Attachments card, as shown in this article.
While it's possible to create timeline events on contact, company, and deal records which contain links to the files or PDFs you have uploaded to HubSpot (or another content platform), these files will not show up as nice attachments on the timeline like the screenshots in this article.
If you want something like that, I have good news — the files will appear on the timeline and it's easier to set up in your app than using the Timeline API:
Upload the desired files to your file manager using the CMS Files API.
When successful, the endpoint above will return a file id which you can then use in the next step.
Create NOTE engagements on the desired contact, company, or deal record with the file id in the attachments array.
If done successfully, your app will create notes with files attached to them on any contact, company, or deal record timeline. These files will also appear in the record's Attachments card, as shown in this article.
I'm uploading file using CMS Files API but in the response I'm getting just the value 1 when successful file uploaded. I get all upload data including ID but not in the response. How can I read and use the file ID?