---
title: "Record Participants by ContactId with Marketing Event External Ids"
method: POST
path: "/marketing/marketing-events/2026-03/attendance/{externalEventId}/{subscriberState}/create"
tags: ["Event Attendees"]
---

# Record Participants by ContactId with Marketing Event External Ids

`POST /marketing/marketing-events/2026-03/attendance/{externalEventId}/{subscriberState}/create`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/marketing/marketing-events/2026-03/attendance/{externalEventId}/{subscriberState}/create`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `hapikey`
  - none

Records the participation of multiple HubSpot contacts in a Marketing Event using their HubSpot contact IDs.

Additional Functionality:
- Adds a timeline event to the contacts.

Allowed Properties:
For the state "attend":
- joinedAt
- leftAt

## Path parameters

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

## Query parameters

- `externalAccountId` string

## Request body

- MarketingMarketingEventsBatchInputMarketingEventSubscriber
  - `inputs` MarketingMarketingEventsMarketingEventSubscriber[], required: List of HubSpot contacts to subscribe to the marketing event
    - `interactionDateTime` integer, required: Timestamp in milliseconds at which the contact subscribed to the event.
    - `properties` object, required: The key-value set of the properties of the contact
    - `vid` integer, required: The ID of the contact in HubSpot

## Response `200`

successful operation

- MarketingMarketingEventsBatchResponseSubscriberVidResponse
  - `completedAt` string, date-time, required: Timestamp that represents when the request finished processing
  - `errors` StandardError[]
    - `category` string, required: Error category.
    - `context` object, required: Error context.
    - `errors` ErrorDetail[], required: List of error details.
      - `code` string: The status code associated with the error detail
      - `context` object: Context about the error condition
      - `in` string: The name of the field or parameter in which the error was found.
      - `message` string, required: A human readable message describing the error along with remediation steps where appropriate
      - `subCategory` string: A specific category that contains more specific detail about the error
    - `id` string: Error ID.
    - `links` object, required: Error links.
    - `message` string, required: Error message.
    - `status` string, required: Error status.
    - `subCategory` object: Error subcategory.
  - `links` object: Result of the request
  - `numErrors` integer: The number of errors that occurred during the processing
  - `requestedAt` string, date-time: Timestamp that represents when the request was made
  - `results` MarketingMarketingEventsSubscriberVidResponse[], required
    - `vid` integer, required: The internal ID of the contact
  - `startedAt` string, date-time, required: Timestamp that represents when the request started processing
  - `status` 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING', required: The status of the request processing

## Other responses

- `default`: An error occurred.

## Changes

> 14 revisions in range; 1 not diffed, 2 could not be searched.

- **2026-04-08** `b0d8bc008db9`: 1 info
  - api operation id `post-/marketing/marketing-events/2026-03/attendance/{externalEventId}/{subscriberState}/create_recordByContactIds` removed and replaced with `post-/marketing/marketing-events/2026-03/attendance/{externalEventId}/{subscriberState}/create`
- **2026-03-25** `62586336cea2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hubspot/apis/hubspot-api-specification/changes/marketing/marketing-events/2026-03/attendance/:externalEventId/:subscriberState/create/post.md)

---

[API](https://skmtc.dev/hubspot/apis/hubspot-api-specification.md) - [All operations](https://skmtc.dev/hubspot/apis/hubspot-api-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/hubspot-api-specification/revisions/f9c7181056c5?raw)
