Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. APIs Doc
  • Omni
  • Audit APIs
  • History
    GET
  1. APIs Doc

History

Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
GET
/history/
Last modified:2025-05-23 05:17:16

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
user_id
string 
optional
ip_address
string 
optional
action_type
string 
optional
create, update, delete
Example:
create
object_id
string 
optional

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://preprod.api.crego.io/history/?action_type=create'

Responses

🟢200Success
application/json
Body
count
integer 
required
total_pages
integer 
required
current_page
integer 
required
has_previous
boolean 
required
has_next
boolean 
required
previous_page
null 
required
next_page
null 
required
results
array[object (AuditLog) {11}] 
required
id
string <uuid>
required
Unique identifier for the audit log entry.
tenant_id
string <uuid>
required
Unique identifier for the tenant associated with the audit log.
created_by
string <uuid>
required
ID of the user who created this audit entry.
action_type
enum<string> 
required
Type of action performed (e.g., CREATE, UPDATE, DELETE).
Allowed values:
createupdatedeleteaccess
timestamp
string <date-time>
required
Timestamp of when the action occurred.
ip_address
string <ipv4> | null 
optional
IP address from which the action was performed.
user_agent
string 
required
User agent string of the browser/client used.
before_state
object  | null 
required
JSON representation of the object's state before the action was performed.
after_state
object  | null 
required
JSON representation of the object's state after the action was performed.
object_id
string <uuid>
required
ID of the object that was acted upon.
content_type
integer 
required
Reference to Django's ContentType model, indicating the type of object affected.
Example
{"count":2,"total_pages":1,"current_page":1,"has_previous":false,"has_next":false,"previous_page":null,"next_page":null,"results":[{"id":"01JQ8RREEM71MEZJXNECGE0ATA","tenant_id":"23067dbc-6c62-4203-9014-7100e4ffe811","user_id":"6da08401-b1f7-46ec-9013-2a9d7bc6185c","action_type":"create","timestamp":"2025-03-26T13:53:02.869449Z","ip_address":null,"user_agent":"","object_id":"01JQ8RRBB2XRSVTCG11Y6JKCKH","before_state":null,"after_state":{"id":"01JQ8RRBB2XRSVTCG11Y6JKCKH","name":"Sukumar","refs":{},"tags":["string"],"type":"individual","props":["01JQ8RRB3HN71YQWJK8QRWG80K"],"ref_id":"jijkdmkdoedmsaad","status":"active","branch_id":"","namespace":"Vayana","tenant_id":"23067dbc-6c62-4203-9014-7100e4ffe811","created_at":"2025-03-26T13:52:59.683345Z","created_by":"6da08401-b1f7-46ec-9013-2a9d7bc6185c","updated_at":"2025-03-26T13:52:59.683345Z","updated_by":""},"content_type":18},{"id":"01JQ8RFJPZWGEX9MXAX3FVBZB7","tenant_id":"23067dbc-6c62-4203-9014-7100e4ffe811","user_id":"6da08401-b1f7-46ec-9013-2a9d7bc6185c","action_type":"create","timestamp":"2025-03-26T13:48:12.320718Z","ip_address":null,"user_agent":"","object_id":"01JQ8RFE4BFQJ5G6TPDJT7N5KC","before_state":null,"after_state":{"id":"01JQ8RFE4BFQJ5G6TPDJT7N5KC","name":"Vayana","tenant_id":"23067dbc-6c62-4203-9014-7100e4ffe811","created_at":"2025-03-26T13:48:07.827748Z","created_by":"6da08401-b1f7-46ec-9013-2a9d7bc6185c","deleted_at":null,"is_deleted":false,"updated_at":"2025-03-26T13:48:07.827748Z","updated_by":""},"content_type":17}]}
Built with