v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBEvents
Post an event
This endpoint allows you to publish events.
Note: To utilize this endpoint with our client libraries, please ensure you are using the latest version released on or after July 1, 2025. Earlier versions do not support this functionality.
Important: Upgrade to the latest client library version to use the updated endpoint at https://event-management-intake.{site}/api/v2/events. Older client library versions of the Post an event (v2) API send requests to a deprecated endpoint (https://api.{site}/api/v2/events).
✅ Only events with the change or alert category are in General Availability. For change events, see Change Tracking for more details.
❌ For use cases involving other event categories, use the V1 endpoint or reach out to support.
post/api/v2/events
Request body
Example request
{
"data": {
"attributes": {
"aggregation_key": "aggregation_key_123",
"attributes": {
"author": {
"name": "example@datadog.com",
"type": "user"
},
"change_metadata": {
"dd": {
"team": "datadog_team",
"user_email": "datadog@datadog.com",
"user_id": "datadog_user_id",
"user_name": "datadog_username"
},
"resource_link": "datadog.com/feature/fallback_payments_test"
},
"changed_resource": {
"name": "fallback_payments_test",
"type": "feature_flag"
},
"impacted_resources": [
{
"name": "payments_api",
"type": "service"
}
],
"new_value": {
"enabled": true,
"percentage": "50%",
"rule": {
"datacenter": "devcycle.us1.prod"
}
},
"prev_value": {
"enabled": true,
"percentage": "10%",
"rule": {
"datacenter": "devcycle.us1.prod"
}
}
},
"category": "change",
"host": "hostname",
"integration_id": "custom-events",
"message": "payment_processed feature flag has been enabled",
"tags": [
"env:api_client_test"
],
"title": "payment_processed feature flag updated"
},
"type": "event"
}
}Response
OK
Example response
{
"data": {
"type": "event"
}
}