v14

latestOpenAPI 3.0.0raw.githubusercontent.com2026-05-279719892.3 MB
SMTP Tokens

Create a SMTP API token.

Create a SMTP API token.

post/marketing/transactional/2026-03/smtp-tokens

Request body

campaignNamestring required

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

createContactboolean required

Indicates whether a contact should be created for email recipients.

Response

successful operation

campaignNamestring required

A name for the campaign tied to the token.

createContactboolean required

Indicates whether a contact should be created for email recipients.

createdAtstring date-time required

Timestamp generated when a token is created.

createdBystring required

Email address of the user that sent the token creation request.

emailCampaignIdstring required

Identifier assigned to the campaign provided in the token creation request.

idstring required

User name to log into the HubSpot SMTP server.

passwordstring

Password used to log into the HubSpot SMTP server.