APIs & Integrations

McKenzieMurphy
Member

Transactional Email: Invalid Scope

I am receiving the following error when I try to gain authorized access to the API: Uh oh!
An invalid scope name was provided. Please contact the integrator.

I am using the following call:
https://app.hubspot.com/oauth/authorize?client_id={private app client Id}&scope=transactional-emails&redirect_uri=https://www.stayalfred.com/

0 Upvotes
4 Replies 4
zwolfson
HubSpot Employee
HubSpot Employee

Transactional Email: Invalid Scope

Hi @McKenzieMurphy,

This looks like it might be a simple typo here. The scope name is transactional-email (singular) and it looks like you have an "s" on the end of the scope name.

Would you mind trying that and seeing if it works? If not there might be something else going on.

-Zack

0 Upvotes
McKenzieMurphy
Member

Transactional Email: Invalid Scope

Hey Zack,

You're 100% correct, the typo was the problem. However, in order to make it work, I had to remove all of the "Read from and write to my" selections. Is that normal?

Thanks for your help,

McKenzie

0 Upvotes
zwolfson
HubSpot Employee
HubSpot Employee

Transactional Email: Invalid Scope

Hey @McKenzieMurphy,

In this case, yes that is normal. Checking those would require you to request those scopes in the OAuth flow. It's a kind of a check on your own app to make sure you request the scopes you actually need.

-Zack

0 Upvotes
McKenzieMurphy
Member

Transactional Email: Invalid Scope

Zack,

Thanks for all your help. I was able to get everything to work!

-McKenzie

0 Upvotes