Create Event
POST {{base_url}}/audit_logs/events
Request Body
{"organization_id"=>"<Organization ID>", "event"=>{"action"=>"<Identitifer of what happened>", "occurred_at"=>"<ISO-8601 value of when the action occurred>", "version"=>1, "actor"=>{"type"=>"<Actor type>", "id"=>"<Actor ID>", "name"=>"<Optional actor name>", "metadata"=>{"role"=>"<Additional data associated with the event>"}}, "targets"=>[{"type"=>"<Target type>", "id"=>"<Target ID>", "name"=>"<Optional target name>"}], "context"=>{"location"=>"<IP Address or some other geolocation identifie>", "user_agent"=>"<User agent string>"}, "metadata"=>{"extra"=>"<Additional data associated with the event>"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Idempotency-Key | string |