Endpoints
Post events
Creates a new event
POST
/
events
curl --request POST \
--url https://auditr.io/api/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"org_id": "<string>",
"action": "<string>",
"action_result": "success",
"actor_id": "<string>",
"actor_type": "user",
"actor_email": "jsmith@example.com",
"actor_name": "<string>",
"client_ip": "<string>",
"request_method": "<string>",
"request_path": "<string>",
"response_status": 123,
"occurred_at": "2023-11-07T05:31:56Z"
}'
{
"id": "<string>",
"sha256": "<string>",
"parent_org_id": "<string>",
"client_geo_lat": 123,
"client_geo_lon": 123,
"client_city": "<string>",
"client_region_code": "<string>",
"client_subdivision_1_code": "<string>",
"user_agent_name": "<string>",
"user_agent_version": "<string>",
"org_id": "<string>",
"action": "<string>",
"action_result": "success",
"actor_id": "<string>",
"actor_type": "user",
"actor_email": "jsmith@example.com",
"actor_name": "<string>",
"client_ip": "<string>",
"request_method": "<string>",
"request_path": "<string>",
"response_status": 123,
"occurred_at": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
successful response
The response is of type object
.
curl --request POST \
--url https://auditr.io/api/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"org_id": "<string>",
"action": "<string>",
"action_result": "success",
"actor_id": "<string>",
"actor_type": "user",
"actor_email": "jsmith@example.com",
"actor_name": "<string>",
"client_ip": "<string>",
"request_method": "<string>",
"request_path": "<string>",
"response_status": 123,
"occurred_at": "2023-11-07T05:31:56Z"
}'
{
"id": "<string>",
"sha256": "<string>",
"parent_org_id": "<string>",
"client_geo_lat": 123,
"client_geo_lon": 123,
"client_city": "<string>",
"client_region_code": "<string>",
"client_subdivision_1_code": "<string>",
"user_agent_name": "<string>",
"user_agent_version": "<string>",
"org_id": "<string>",
"action": "<string>",
"action_result": "success",
"actor_id": "<string>",
"actor_type": "user",
"actor_email": "jsmith@example.com",
"actor_name": "<string>",
"client_ip": "<string>",
"request_method": "<string>",
"request_path": "<string>",
"response_status": 123,
"occurred_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.