Records SDK events for analytics and debugging.
const url = 'https://eval.featureflip.io/v1/sdk/events';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"events":[{"type":"Evaluation","flagKey":"example","userId":"example","variation":"example","timestamp":"2026-04-15T12:00:00Z","metadata":{"additionalProperty":"example"},"prerequisiteKey":"example","reason":"example","ruleId":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://eval.featureflip.io/v1/sdk/events \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "events": [ { "type": "Evaluation", "flagKey": "example", "userId": "example", "variation": "example", "timestamp": "2026-04-15T12:00:00Z", "metadata": { "additionalProperty": "example" }, "prerequisiteKey": "example", "reason": "example", "ruleId": "example" } ] }'Authorizations
Section titled “ Authorizations ”Request Body
Section titled “ Request Body ”Batch of events to record.
object
object
object
Optional. Why the evaluation served its variation: rule-match, fallthrough,
flag-disabled, prerequisite-failed, error or flag-not-found.
Used to attribute evaluation traffic in flag analytics; events without it count as an
unknown source.
Optional. The id of the targeting rule that matched, when reason is
rule-match.
object
object
object
Optional. Why the evaluation served its variation: rule-match, fallthrough,
flag-disabled, prerequisite-failed, error or flag-not-found.
Used to attribute evaluation traffic in flag analytics; events without it count as an
unknown source.
Optional. The id of the targeting rule that matched, when reason is
rule-match.
object
object
object
Optional. Why the evaluation served its variation: rule-match, fallthrough,
flag-disabled, prerequisite-failed, error or flag-not-found.
Used to attribute evaluation traffic in flag analytics; events without it count as an
unknown source.
Optional. The id of the targeting rule that matched, when reason is
rule-match.
Responses
Section titled “ Responses ”Events were accepted for processing.
SDK key is missing or invalid.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}