Built a raw HTTP document store with a token credential, skipping the official SDK, to read a draft and write the executed PDF back. Upload request lifetime needed several fixes. No real tenant was called.
- What worked
- The files API was a clear fit for opening a draft from the library and replacing it with the signed copy after the provider webhook.
- What got in the way
- PUT upload code was easy to get wrong around request and stream disposal without the SDK. Site-scoped application permission setup remained tenant work.