# Does User-Level OAuth support uploading PRIVATE files through the Files API?

**URL:** <https://community.hubspot.com/t/does-user-level-oauth-support-uploading-private-files-through-the-files-api/165962>\
**Category:** Develop, Build & Integrate\
**Tags:** integrations\
**Created:** [November 27, 2026, 11:09am UTC](https://community.hubspot.com/t/does-user-level-oauth-support-uploading-private-files-through-the-files-api/165962 "2026-11-27T11:09:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.kulitsa1012](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@a.kulitsa1012](https://community.hubspot.com/u/a.kulitsa1012)\
**Post date:** [November 27, 2026, 11:09am UTC](https://community.hubspot.com/t/does-user-level-oauth-support-uploading-private-files-through-the-files-api/165962/1 "2026-11-27T11:09:10Z")

</div>

Hi everyone,

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?

---

<div class="post-metadata">

**Author:** ![CGrove5](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cgrove5/32/80838_2.png) [@CGrove5](https://community.hubspot.com/u/CGrove5)\
**Post date:** [November 27, 2026, 11:40am UTC](https://community.hubspot.com/t/does-user-level-oauth-support-uploading-private-files-through-the-files-api/165962/2 "2026-11-27T11:40:11Z")

</div>

@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.
