GET
/
marketing
/
v3
/
transactional
/
smtp-tokens
Query SMTP API tokens by campaign name or an emailCampaignId.
curl --request GET \
  --url https://api.hubapi.com/marketing/v3/transactional/smtp-tokens \
  --header 'Authorization: Bearer <token>'
{
  "paging": {
    "next": {
      "link": "",
      "after": ""
    }
  },
  "results": [
    {
      "createdAt": "2023-11-07T05:31:56Z",
      "password": "<string>",
      "createdBy": "<string>",
      "createContact": true,
      "id": "<string>",
      "emailCampaignId": "<string>",
      "campaignName": "<string>"
    }
  ]
}
Supported products
Requires one of the following products or higher.
Marketing HubMarketing HubProfessional
Sales HubSales HubFree
Service HubService HubFree
Content HubContent HubFree

Required Scopes

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

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

campaignName
string

A name for the campaign tied to the SMTP API token.

emailCampaignId
string

Identifier assigned to the campaign provided during the token creation.

after
string

Starting point to get the next set of results.

limit
integer

Maximum number of tokens to return.

Response

200
application/json

successful operation

The response is of type object.