---
title: "Publish a triggered campaign for real-time customer validation"
method: POST
path: "/v1/campaigns/publishTriggeredCampaign"
tags: ["PublisherCommand"]
---

# Publish a triggered campaign for real-time customer validation

`POST /v1/campaigns/publishTriggeredCampaign`

Validates customer eligibility for a triggered campaign in real-time. Processes trigger context, user data, and campaign occurrence. Authentication via x-api-key header. Tenant ID is derived from the API key.

## Request body

- ServicePublishTriggeredCampaignRequest
  - `triggerContext` CommandTriggerContext
    - `id` integer
    - `name` string
    - `events` CommandTriggerEvent[]
      - `key` string
      - `timestamp` string, int64
      - `parameters` object
  - `user` CommandTriggeredCampaignUser
    - `userId` string
    - `personalization` object
  - `requestUid` string
  - `occurrence` CommandOccurrence
    - `action` CommandTriggeredCampaignAction
      - `id` integer
      - `promotions` CommandTriggeredCampaignPromotion[]
        - `name` string
        - `code` string
    - `seriesId` string
    - `occurenceId` string

## Response `200`

A successful response.

- ServicePublishTriggeredCampaignResponse
  - `success` boolean
  - `message` string

## Other responses

- `default` — An unexpected error response.

---

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