adobeadobe-pdfservicesadobe-documentgeneration

AssetID auto deleting somehow | Adobe PDF Services API


I'm having issue where my assestID of a file uploaded via the assets api, deletes/expires somehow?

I'm using the Adobe pdf services api (https://pdf-services-ue1.adobe.io) to upload a .docx file to then perform the document generation.

At first the entire journey works perfectly fine - I can upload a .docx, retrieve its metadata, use the assetID of the uploaded .docx file to generate a .pdf by injecting json data, however, after a day or two, the assetID somehow auto deletes and the document generation api returns message: Asset Not Found.

The first time I thought it was a mistake on my end, the second and third time I was 100% sure I didn't action anything, the assetID just disappeared.

A few things to note:

If the free tier causes the assets to only live for a certain period, please point me to the documentation where this is noted - I must have missed that part if this is the case.

Thanks in advance for the help!

I also posted on the forum: Link to post on the Adobe forum

Ps. I'm aware of this questions asked here, however, it's not the same as my journey works fine, it's only a day or two after where the assetID can no longer be found.


Solution

  • This is expected. The Asset endpoint is only for temporary storage when using the API. We tell folks 24 hours. So it's fine to use it more than once in a script, so for example, upload the asset and run N further API calls with it, but you should not expect it to last past the day.

    It's not very well defined in the main docs, but the technical faq covers it: https://developer.adobe.com/document-services/faq/tech-support/#data-security--privacy-how-does-adobe-document-services-use-or-store-file-content