APIs & Integrations

theferrett
Participant

marketing/v3/transactional/smtp-tokens is broken For API Authentication. When Will It Be Fixed?

Straight from your documentation at https://developers.hubspot.com/docs/api/marketing/transactional-emails: 

 

curl --request GET \
--url 'https://api.hubapi.com/marketing/v3/transactional/smtp-tokens/sampletokenId?hapikey=YOUR_HUBSPOT_API...'

Returns this: 
{"status":"error","message":"Authentication credentials not found. This API supports both API Key and OAuth 2.0 authentication and you can find more details at https://developers.hubspot.com/docs/methods/auth/oauth-overview","correlationId":"3ae631fc-9e97-49bd...

There's at least one other person reporting this in the forums: 
https://community.hubspot.com/t5/APIs-Integrations/SMTP-Token-Transactional-Mail-INVALID-AUTHENTICAT...

 

And to head off some questions: 
1)  Yes, I have transactional emails activated.
2)  Yes, the API key I am using is valid, it only breaks on this call.  

3)  You also have to escape the token, as it is not URL-encoded by default and usually ends in two ==s, and that's not noted either.  

 

 

0 Upvotes
7 Replies 7
dennisedson
HubSpot Product Team
HubSpot Product Team

marketing/v3/transactional/smtp-tokens is broken For API Authentication. When Will It Be Fixed?

Hey @theferrett ,

Thanks for the feedback here.  I will work with the team on this to figure out what is going on.

Just to confirm, when you say it only breaks on this call,  you are talking very specifically about this endpoint or more generally for this API? 

Does doing a get request for https://api.hubapi.com/marketing/v3/transactional/smtp-tokens work for you?

Just want to make sure I am very clear 😀

0 Upvotes
theferrett
Participant

marketing/v3/transactional/smtp-tokens is broken For API Authentication. When Will It Be Fixed?


Just to confirm, when you say it only breaks on this call,  you are talking very specifically about this endpoint or more generally for this API? 

Does doing a get request for https://api.hubapi.com/marketing/v3/transactional/smtp-tokens work for you?

Just want to make sure I am very clear 😀



This endpoint specifically, though the other endpoint you referenced doesn't work either.  However, I have used this same Api Token to hit every email end point, to create tickets, and to associate emails with tickets (such as your API allows), so I'm reasonably sure it's not the request.

 

https://api.hubapi.com/marketing/v3/transactional/smtp-tokens?hapikey=MY_API_KEY

To be clear, that fails with the same error, with a key I have already used in several other API end points successfully.  

 

dennisedson
HubSpot Product Team
HubSpot Product Team

marketing/v3/transactional/smtp-tokens is broken For API Authentication. When Will It Be Fixed?

Thank you for confirming.  Will look into this! 

0 Upvotes
theferrett
Participant

marketing/v3/transactional/smtp-tokens is broken For API Authentication. When Will It Be Fixed?

Any new news?  

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

marketing/v3/transactional/smtp-tokens is broken For API Authentication. When Will It Be Fixed?

@theferrett 

Apologies on the delay.  100% my mistake.  Verified  the issue and the engineering team is working on this now.  I will report back (I promise) when there is a resolution.  Thanks for the patience 😀

Rasped
Member

marketing/v3/transactional/smtp-tokens is broken For API Authentication. When Will It Be Fixed?

Any news on this?

I have the same problem. I cannot send transactional emails using this endpoint:

/marketing/v3/transactional/single-email/send
0 Upvotes
MEspinosa
Participant

marketing/v3/transactional/smtp-tokens is broken For API Authentication. When Will It Be Fixed?

This is still happening with /settings/v3/users/userId.

 

Even with hapikey= on queryparams or with Bearer authentication, the result is the same, a 401 error

0 Upvotes