---
title: "Log Gate Event"
method: POST
path: "/api/v1/billing/gate-events"
tags: ["billing-gate-events"]
---

# Log Gate Event

`POST /api/v1/billing/gate-events`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/billing/gate-events`
- Auth: none declared

Log a feature gate event for conversion analytics.

## Headers

- `Authorization` string

## Request body

- GateEventRequest: Request body for logging a gate event.
  - `event_type` 'gate_impression' | 'gate_upgrade_click' | 'gate_checkout_complete', required: Event type
  - `feature` string, required: PlanFeatureKey value
  - `current_plan` string, required: User's current plan name
  - `target_plan` string, nullable: Target upgrade plan

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
