There's a new version of the HubSpot API
We're also working on a new documentation website, you're invited to check it out and give us your feedback.
HTTP Methods:
POST
Response Format:
JSON
Requires Authentication?
Yes
Rate Limited?
Required Scope
Once you have an SMTP API, the List SMTP API Tokens endpoint can be used to list all SMTP API Tokens in the portal. However, for security reasons the password is only provided during the time of the token creation. This endpoint allows for the creation of a replacement password for a given Token, keyed by the userName field. Once the password is successfully reset, the old password for the token will be invalid.
Note that use of API requires the Transactional Email add-on.
Required Parameters | How to use | Description |
---|---|---|
OAuth Access Token | Authorization: Bearer {token} Used in the request headers |
Used to authenticate the request. Please see this page for more details about authentication. |
userName | Used in the request URL | The userName field of the SMTP API Token needing a password reset. |
Example URL: POST https://api.hubapi.com/email/public/v1/smtpapi/tokens/zh48wgsfld%4062515.smtp.hubspot.net/password-reset
{ "portalId": 62515, "userName": "aezckvh3hx@62515.smtp.hubspot.net", "password": "ItUuCc8h4I5MihiysY8HB6XSbWZmVZ", "passwordHash": null, "emailCampaignId": 14860979, "createdAt": 1415740569008, "deleted": false, "createdBy": "demo@hubspot.com", "appId": 22709, "campaignName": "test transactional email" }