---
title: "Query SMTP API tokens by campaign name or an emailCampaignId."
method: GET
path: "/marketing/transactional/2026-09/smtp-tokens"
tags: ["SMTP Tokens"]
---

# Query SMTP API tokens by campaign name or an emailCampaignId.

`GET /marketing/transactional/2026-09/smtp-tokens`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/marketing/transactional/2026-09/smtp-tokens`
- Auth: OAuth 2
  - Authorization code: `https://app.hubspot.com/oauth/authorize`
  - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `transactional-email`

Query multiple SMTP API tokens by campaign name or a single token by emailCampaignId.

## Query parameters

- `after` string
- `campaignName` string
- `emailCampaignId` string
- `limit` integer

## Response `200`

successful operation

- CollectionResponseSmtpApiTokenViewForwardPaging
  - `paging` ForwardPaging: Paging information for forward-only pagination. Contains the next page reference when more results are available; omitted or empty on the last page.
    - `next` NextPage: Specifies the paging information needed to retrieve the next set of results in a paginated API response
      - `after` string, required: A string token used to retrieve the next page of results. It indicates the position after the last item on the current page.
      - `link` string: A string containing the URL link to the next page of results.
  - `results` SmtpApiTokenView[], required: An array of SMTP API token objects, each representing a token with its associated details.
    - `campaignName` string, required: A name for the campaign tied to the token.
    - `createContact` boolean, required: Indicates whether a contact should be created for email recipients.
    - `createdAt` string, date-time, required: Timestamp generated when a token is created.
    - `createdBy` string, required: Email address of the user that sent the token creation request.
    - `emailCampaignId` string, required: Identifier assigned to the campaign provided in the token creation request.
    - `id` string, required: User name to log into the HubSpot SMTP server.
    - `password` string: Password used to log into the HubSpot SMTP server.

## Other responses

- `default`: An error occurred.

## Changes

- **2026-09-03** (2026-09) `a04185df14f9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hubspot/apis/marketing-transactional-single-send/changes/marketing/transactional/2026-09/smtp-tokens/get.md)

---

[API](https://skmtc.dev/hubspot/apis/marketing-transactional-single-send.md) - [All operations](https://skmtc.dev/hubspot/apis/marketing-transactional-single-send/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/marketing-transactional-single-send/revisions/c1f17c6e69d3?raw)
