We are using marketing-emails/v1/emails/with-statistics endpoint, and generally it work fine.
In the last days the request in throwing an error of missing scopes:
{ category: 'MISSING_SCOPES',
correlationId: 'cfb4790f-b162-4c6c-ab00-ec5361596b9c',
errors:
[ { context: { requiredScopes: [ 'content' ] },
message: 'One or more of the following scopes are required.' } ],
links: { scopes: 'https://developers.hubspot.com/scopes' },
message:
'This app hasn\'t been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.',
status: 'error' }
Verified that the access token actually contain the 'content' scope (with the endpoint oauth/v1/access-tokens/<accessToken>).
Have the same issue now while trying to create marketing email by API. With test account everything works as expected, but with usual free account we got error about missing scopes(in my case it's scope content). When I connected my app hubspot is asking me about content scope and even after granting permission on free account I got error about missing scope