---
title: "Ingest Events"
method: POST
path: "/api/v1/temple/events"
tags: ["temple", "temple"]
---

# Ingest Events

`POST /api/v1/temple/events`

## Request

- Base URL: `https://teraads.co` (the document declares no server; this is the origin it was published from)
- URL: `https://teraads.co/api/v1/temple/events`
- Auth: none declared. Required headers: `X-Internal-Key`

Receive commerce events from Temple (orders, carts, products).

Events are stored in the temple_events table and processed by the
Tera Ads pipeline on the next cycle. Idempotent via event_id.

## Headers

- `X-Internal-Key` string, required

## Request body

- EventBatchRequest: Batch of events from Temple.
  - `brand_id` string, required
  - `events` EventPayload[], required
    - `event_type` string, required: order_placed | order_fulfilled | order_cancelled | cart_abandoned | product_created | product_updated | customer_created
    - `event_id` string, required: Idempotency key — Temple's event ID
    - `timestamp` string, required: ISO 8601 timestamp of the event
    - `data` object, required: Event-specific payload

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/teraads/apis/tera-ads-api.md) · [All operations](https://skmtc.dev/teraads/apis/tera-ads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/teraads/apis/tera-ads-api/revisions/fb2526b5cf3c?raw)
