POST
/
email
/
public
/
v1
/
smtpapi
/
tokens
Create SMTP API Tokens
curl --request POST \
  --url https://api.hubapi.com/email/public/v1/smtpapi/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "createdBy": "<string>",
  "campaignName": "<string>"
}'
{
  "portalId": 123,
  "userName": "<string>",
  "emailCampaignId": 123,
  "createdAt": 123,
  "deleted": true,
  "createdBy": "<string>",
  "appId": 123,
  "campaignName": "<string>",
  "password": "<string>",
  "passwordHash": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

201
application/json

SMTP API token created successfully

The response is of type object.