---
title: "Trigger moment"
method: POST
path: "/moments/{momentId}/trigger"
tags: ["Moments"]
---

# Trigger moment

`POST /moments/{momentId}/trigger`

## Request

- Base URL: `https://api.awtomic.com`
- URL: `https://api.awtomic.com/moments/{momentId}/trigger`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/awtomic/apis/awtomic-api/docs/moments/:momentId/trigger/post.ts> (a function with typed inputs; its response is checked against the schema)

Trigger a moment for a specific subscription or customer.
This endpoint is only available for moments with a trigger type of API.
Note: unearning a moment is not yet supported.

## Path parameters

- `momentId` string, required

## Request body

- object
  - `subscriptionContractGId` string: Subscription id, required if customerGid is not provided
  - `customerGId` string: Customer id, required if subscriptionContractGId is not provided
  - `triggerResult` boolean: Whether the moment should be earned or unearned

## Response `204`

Moment triggered

## Other responses

- `400`: Validation error

---

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