- Omni
- Audit APIs
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
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
tenant_id
string <uuid>
required
created_by
string <uuid>
required
action_type
enum<string>
required
Allowed values:
createupdatedeleteaccess
timestamp
string <date-time>
required
ip_address
string <ipv4> | null
optional
user_agent
string
required
before_state
object | null
required
after_state
object | null
required
object_id
string <uuid>
required
content_type
integer
required
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}]}