GET
/
email
/
public
/
v1
/
smtpapi
/
tokens
List SMTP API Tokens
curl --request GET \
  --url https://api.hubapi.com/email/public/v1/smtpapi/tokens
[
  {
    "portalId": 123,
    "userName": "<string>",
    "emailCampaignId": 123,
    "createdAt": 123,
    "deleted": true,
    "createdBy": "<string>",
    "appId": 123,
    "campaignName": "<string>"
  }
]

Required Scopes

This API requires one of the following scopes:
  • transactional-email

Response

List of SMTP API tokens

portalId
integer

The portal ID

userName
string

The SMTP username

emailCampaignId
integer

The email campaign ID

createdAt
integer

Creation timestamp

deleted
boolean

Whether the token is deleted

createdBy
string

Email address of the user who created the token

appId
integer

The application ID

campaignName
string

Name of the campaign