---
title: "Records SDK events for analytics and debugging."
method: POST
path: "/v1/sdk/events"
tags: ["Server SDK"]
---

# Records SDK events for analytics and debugging.

`POST /v1/sdk/events`

## Request

- Base URL: `https://eval.featureflip.io`
- URL: `https://eval.featureflip.io/v1/sdk/events`
- Auth: API key in header `Authorization`

## Request body

- RecordEventsRequest
  - `events` SdkEventDto[], nullable, required
    - `type` 'Evaluation' | 'Impression' | 'Identify' | 'Custom', required
    - `flagKey` string, nullable, required
    - `userId` string, nullable
    - `variation` string, nullable
    - `timestamp` string, date-time
    - `metadata` object, nullable
    - `prerequisiteKey` string, nullable

## Response `202`

Events were accepted for processing.

## Other responses

- `401`: SDK key is missing or invalid.

---

[API](https://skmtc.dev/featureflip/apis/featureflip-evaluation-api.md) · [All operations](https://skmtc.dev/featureflip/apis/featureflip-evaluation-api/llms.txt) · [OpenAPI document](https://skmtc.dev/featureflip/apis/featureflip-evaluation-api/revisions/1f5311d7fc25?raw)
