POST
/
marketing
/
v3
/
transactional
/
smtp-tokens
SMTP-API-Token erstellen.
curl --request POST \
  --url https://api.hubapi.com/marketing/v3/transactional/smtp-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "createContact": true,
  "campaignName": "<string>"
}'
{
  "createdAt": "2023-11-07T05:31:56Z",
  "password": "<string>",
  "createdBy": "<string>",
  "createContact": true,
  "id": "<string>",
  "emailCampaignId": "<string>",
  "campaignName": "<string>"
}
Unterstützte Produkte
Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing HubProfessional
Sales HubSales HubKostenlos
Service HubService HubKostenlos
Content HubContent HubKostenlos

Erforderliche Bereiche

Diese API erfordert einen der folgenden Bereiche:
  • transactional-email

Authorizations

Authorization
string
header
required

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

Body

application/json

A request object that includes the campaign name tied to the token and whether contacts should be created for email recipients.

A request object to create a SMTP API token

Response

201
application/json

successful operation

A SMTP API token provides both an ID and password that can be used to send email through the HubSpot SMTP API.