---
title: "Trigger Event"
method: POST
path: "/api/admin/trigger"
tags: ["Admin"]
---

# Trigger Event

`POST /api/admin/trigger`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/admin/trigger`
- Auth: none declared

Simulate any app event for a specific user on demand.
Bypasses timing windows and dedup so events fire immediately.
Protected by X-Cron-Secret header (same as cron endpoints).

## Headers

- `X-Cron-Secret` string
- `x-cron-secret` string

## Request body

- TriggerRequest
  - `user_id` string, required
  - `event` string, required
  - `params` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
