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

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

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

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

- MarketingTransactionalCollectionResponseSmtpApiTokenViewForwardPaging
  - `paging` ForwardPaging
    - `next` NextPage — Specifies the paging information needed to retrieve the next set of results in a paginated API response
      - `after` string, required — A paging cursor token for retrieving subsequent pages.
      - `link` string — A URL that can be used to retrieve the next page results.
  - `results` MarketingTransactionalSmtpApiTokenView[], required
    - `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.

---

[API](https://skmtc.net/hubspot/apis/hubspot-api-specification.md) · [All operations](https://skmtc.net/hubspot/apis/hubspot-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hubspot/hubspot-api-specification/revisions/f9c7181056c5/schema)
