← Problem log

HighLevel API returns 401

Last verified Oct 23
By the Bluhook team · Updated Dec 1, 2026
Version 2
Exact text to search:
The token is not authorized for this scope HighLevel medias upload-file

1What happened

We post social content for a business through the HighLevel API, using a Private Integration token. The exact message: The token is not authorized for this scope.

Every call to POST /medias/upload-file and to the social planner account calls came back 401: "The token is not authorized for this scope."

An upload tried with a session header instead returned 400 ALT_ID_REQUIRED.

The cause: a Private Integration token only gets the scopes ticked when it was made. Ours had 11 (conversations, contacts, Conversation AI, knowledge base). None covered media or the social planner.

What did not work: adding altId and altType=location to the query and the form. That answers the 400. The 401 stayed because the scope was still missing.

2What we did

  1. In the location, open Settings, then Private Integrations, then the integration.

  2. Open the three-dot menu, click Edit, then Next to reach Scopes.

  3. Add medias.readonly, medias.write, socialplanner/account.readonly, socialplanner/post.readonly and socialplanner/post.write. Click Update.

  4. Editing scopes keeps the same token. Do not click Rotate, which issues a new one and breaks everything using the old one.

  5. In the scope search box, backspace deletes the last tag you added. Clear only the letters you typed.

  6. Tip: the social post call takes accountIds and userId, not userIds. HighLevel explains token scopes in HighLevel private integration tokens. The HighLevel API docs cover the API this page uses. The OWASP authentication guide covers sign in and retry limits.

3How we know it worked

On Fri Oct 23, after a reload, the scope list showed 16 saved and the token value had not changed. With that token we read 6 social accounts, uploaded an image, and scheduled a post on Facebook and Instagram. Both posts read back.

4What you can take from it

A 401 that names "scope" means the token is missing a permission. Fix the token's scopes before you change the call. Another 401 fix is in Supabase 401 errors. A third is the Twilio 401 fix. For safe key handling, see one time key links.

highlevelgohighlevelapi scopesprivate integrationsocial plannerPublished Oct 24

Questions people ask

What does HighLevel "The token is not authorized for this scope" mean?

The Private Integration token is missing a permission. A token only has the scopes ticked on it. You can add more later without a new token. Ours had none for media or the social planner, so those calls came back 401.

How do I add scopes to a HighLevel Private Integration token?

In the location, open Settings, then Private Integrations, then the integration. Use the three-dot menu, click Edit, then Next to reach Scopes, add what you need and click Update. Editing scopes keeps the same token, so do not click Rotate.

Which HighLevel scopes are needed for media uploads and social posts?

We added medias.readonly, medias.write, socialplanner/account.readonly, socialplanner/post.readonly and socialplanner/post.write. After that we uploaded an image and scheduled a post on Facebook and Instagram.

Keep reading

Free newsletter

Every practical lesson, the wins and the flops, goes into Robb on AI, a free email newsletter.

We'll add you to Robb on AI, our free newsletter on Substack. Unsubscribe anytime. Privacy policy

Robb Lejuwaan

Robb Lejuwaanwriter of Robb on AI

Find your #1 job for AI.

It's free, with no card and no call.