I’m testing a private HubSpot project app on platform version 2026.09 with isUserLevel: true.
The OAuth authorization and token exchange succeed. Read requests to the Deals and Companies APIs return HTTP 200. The app also has the crm.objects.notes.write scope, though I haven’t tested note creation yet.
When I add files.write to the app’s required scopes, deployment fails with this error:
The scope files.write isn't available to this app. If your app needs it, contact HubSpot support to request access.
Our use case is to upload a PDF using POST /files/v3/files with access: PRIVATE, then attach it to a CRM note associated with a deal. In the same development portal, a Service Key with files.write successfully uploaded a PRIVATE test PDF and returned HTTP 201.
Does HubSpot support uploading PRIVATE files with a User-Level OAuth token? If so, how can files.write be enabled for the app? If not, does account-level OAuth support this use case, or is a Service Key required?
@a.kulitsa1012 The catch is that the Files API isn’t on HubSpot’s list of APIs supported for user-level apps. The user-level apps doc lists the 2026-09 CRM, Automation/Sequences and Sales/Email templates APIs (plus Meetings and Reporting in 2027-03-beta), and says the scopes for those endpoints work apart from a short exclusion list. Files isn’t mentioned anywhere, which lines up with your “files.write isn’t available to this app” deploy error. files.write on its own is a normal scope available to all accounts, so it’s the isUserLevel: true part blocking you, not your portal.
So on your three questions: I wouldn’t count on PRIVATE uploads with a user-level token right now. An account-level OAuth app (isUserLevel false or left out) should be able to request files.write like any other scope, but test that in your dev portal before you build on it, and plan on it being a separate app.
What I’d do for your PDF flow: upload with the account-level app or the Service Key (you already got the 201 there), then create the note with your user-level token, associate it to the deal and pass the file ID in the note’s hs_attachment_ids property (worth double checking on the Notes API page). If you need user-level files access confirmed for your use case, the error itself points you to HubSpot support.