---
title: "Record a subscriber state by contact email"
method: POST
path: "/marketing/marketing-events/2026-09/events/{externalEventId}/{subscriberState}/email-upsert"
tags: ["Subscriber State Changes"]
---

# Record a subscriber state by contact email

`POST /marketing/marketing-events/2026-09/events/{externalEventId}/{subscriberState}/email-upsert`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/marketing/marketing-events/2026-09/events/{externalEventId}/{subscriberState}/email-upsert`
- Auth: OAuth 2
  - Authorization code: `https://app.hubspot.com/oauth/authorize`
  - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `crm.objects.marketing_events.write`

Record a subscriber state between multiple HubSpot contacts and a marketing event, using contact email addresses. Note that the contact must already exist in HubSpot; a contact will not be created. The contactProperties field is used only when creating a new contact. These properties will not update existing contacts.

## Path parameters

- `externalEventId` string, required
- `subscriberState` string, required

## Query parameters

- `externalAccountId` string, required

## Request body

- BatchInputMarketingEventEmailSubscriber
  - `inputs` MarketingEventEmailSubscriber[], required: List of marketing event details to create or update
    - `contactProperties` object, required: The key-value set that contains properties of the contact.
    - `email` string, required: The email address of the contact in HubSpot to associate with the event.
    - `interactionDateTime` integer, required: Timestamp in milliseconds at which the contact subscribed to the event.
    - `properties` object, required: The key-value set that contains properties of the marketing event.

## Response `default`

An error occurred.

## Changes

- **2026-09-03** (2026-09) `e62ad9a49a20`: 1 info
  - the endpoint scheme security `private_apps` was removed from the API

[Operation history](https://skmtc.dev/hubspot/apis/marketing-marketing-events/changes/marketing/marketing-events/2026-09/events/:externalEventId/:subscriberState/email-upsert/post.md)

---

[API](https://skmtc.dev/hubspot/apis/marketing-marketing-events.md) - [All operations](https://skmtc.dev/hubspot/apis/marketing-marketing-events/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/marketing-marketing-events/revisions/3afcf69ad1b4?raw)
