Saltar al contenido principal
POST
/
marketing
/
v3
/
transactional
/
smtp-tokens
Crea un token de API SMTP.
curl --request POST \
  --url https://api.hubapi.com/marketing/v3/transactional/smtp-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "campaignName": "<string>",
  "createContact": true
}
'
{
  "campaignName": "<string>",
  "createContact": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "emailCampaignId": "<string>",
  "id": "<string>",
  "password": "<string>"
}

Productos compatibles

Se requiere uno de los siguientes productos o productos de ediciones superiores.
Marketing HubMarketing Hub -Pro
Sales HubSales Hub -Gratuito
Service HubService Hub -Gratuito
Content HubContent Hub -Gratuito

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

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

campaignName
string
requerido

Un nombre para la campaña vinculada al token de la API SMTP.

createContact
boolean
requerido

Indica si se debe crear un registro de contacto para los destinatarios de correo.

Respuesta

successful operation

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

campaignName
string
requerido

Un nombre para la campaña vinculada al token.

createContact
boolean
requerido

Indica si se debe crear un registro de contacto para los destinatarios de correo.

createdAt
string<date-time>
requerido

Marca de tiempo generada cuando se crea un token.

createdBy
string
requerido

Dirección de correo del usuario que envió la solicitud de creación de token.

emailCampaignId
string
requerido

Identificador asignado a la campaña especificado en la solicitud de creación de token.

id
string
requerido

Nombre de usuario para iniciar sesión en el servidor SMTP de HubSpot.

password
string

Contraseña utilizada para iniciar sesión en el servidor SMTP de HubSpot.

Last modified on December 8, 2025