# Audit Events

## GET /audit-events/

> This method returns details about an audit event, including the event's UUID, user information (email, name), timestamp, IP address, accessed URL, query parameters, post data, and request headers. Audit events are used to track user actions and system changes for security and compliance purposes.

```json
{"openapi":"3.0.3","info":{"title":"Data Warehouse","version":"1.0.0"},"servers":[{"description":"Server base URL with dynamic channel_id.","url":"https://{omnitron_url}/api/v1/remote/{channel_id}/data-warehouse","variables":{"channel_id":{"default":"1","description":"Unique identifier for the sales channel."},"omnitron_url":{"default":"sandbox.akinon.com"}}},{"description":"Server base URL with Commerce URL.","url":"https://{commerce_url}/api/v1/data-warehouse","variables":{"commerce_url":{"default":"sandbox.commerce.akinon.com"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"description":"Token-based authentication with required prefix \"Token\"","in":"header","name":"Authorization","type":"apiKey"}},"schemas":{"PaginatedEventList":{"properties":{"count":{"description":"Numerical value representing quantity or total amount.","type":"integer"},"next":{"description":"This field defines the URL of the next page.","format":"uri","nullable":true,"type":"string"},"previous":{"description":"This field defines the URL of the previous page.","format":"uri","nullable":true,"type":"string"},"results":{"description":"This field returns a list of results.","items":{"$ref":"#/components/schemas/Event"},"type":"array"}},"type":"object"},"Event":{"properties":{"content":{"description":"This field defines the content or details of the event, typically the data or change made."},"content_type":{"description":"The classification or type related to this field.","type":"integer"},"headers":{"description":"This field defines the HTTP headers sent along with the request, which can include metadata about the request.","nullable":true},"object_id":{"description":"This field defines the unique identifier of the object being affected by the event.","maximum":2147483647,"minimum":0,"type":"integer"},"post_data":{"description":"This field defines the data sent by the client in the HTTP POST request.","nullable":true},"query_params":{"description":"This field defines the query parameters included in the URL during the request.","nullable":true},"remote_addr":{"description":"This field defines the IP address of the client making the request.","nullable":true,"title":"IP adresi","type":"string"},"timestamp":{"description":"This field defines the exact date and time when the event occurred.","format":"date-time","type":"string"},"url":{"description":"This field defines the URL that the client accessed during the event.","format":"uri","maxLength":1000,"nullable":true,"type":"string"},"user":{"$ref":"#/components/schemas/User","description":"This field defines the user who triggered the event."},"uuid":{"description":"Unique identifier for the record.","format":"uuid","title":"ID","type":"string"}},"type":"object"},"User":{"properties":{"attributes":{"description":"This field defines a dictionary containing the user's attributes.","type":"string"},"attributes_kwargs":{"description":"This field defines a dictionary containing the user's attributes.","type":"string"},"avatar":{"description":"This field defines the user's photo.","type":"string"},"call_allowed":{"description":"This field defines the user's call communication consent.","type":"string"},"date_joined":{"description":"This field defines the creation date.","type":"string"},"date_of_birth":{"description":"This field defines the user's birthday.","type":"string"},"email":{"description":"Email address of the user or entity.","format":"email","maxLength":254,"title":"E-posta adresi","type":"string"},"email_allowed":{"description":"This field defines the user's email communication consent.","type":"string"},"first_name":{"description":"The full name or label associated with the record.","maxLength":150,"title":"Adı","type":"string"},"gender":{"description":"This field defines the user's gender. Possible values are: **male**, **female**","type":"string"},"groups":{"description":"This field defines the permission groups to which the user is added.","type":"string"},"id":{"description":"This field defines the database ID of the record.","type":"string"},"is_active":{"description":"This field defines whether the user is active.","type":"string"},"is_anonymized":{"description":"This field defines whether the user has been anonymized.","type":"string"},"is_staff":{"description":"This field defines whether the user is a staff.","type":"string"},"is_superuser":{"description":"This field defines whether the user is a super user.","type":"string"},"language_code":{"description":"This field defines the user's local language.","type":"string"},"last_login":{"description":"This field defines the date of the user's last login.","type":"string"},"last_name":{"description":"The full name or label associated with the record.","maxLength":150,"title":"Soyadı","type":"string"},"localized_attributes":{"description":"This field defines a dictionary containing translations of the user's attributes based on the language.","type":"string"},"localized_attributes_kwargs":{"description":"This field defines a dictionary containing translations of the user's attributes based on the language.","type":"string"},"modified_date":{"description":"This field defines the last updated date.","type":"string"},"phone":{"description":"This field defines the user's phone number.","type":"string"},"pk":{"title":"ID","type":"integer"},"sms_allowed":{"description":"This field defines the user's SMS communication consent.","type":"string"},"user_permissions":{"description":"This field defines the user’s permissions.","type":"string"},"user_type":{"description":"This field defines the user type. Possible values are: **guest**, **registered**","type":"string"},"username":{"description":"This field defines the username.","type":"string"}},"type":"object"}}},"paths":{"/audit-events/":{"get":{"description":"This method returns details about an audit event, including the event's UUID, user information (email, name), timestamp, IP address, accessed URL, query parameters, post data, and request headers. Audit events are used to track user actions and system changes for security and compliance purposes.","operationId":"audit_events_list","parameters":[{"description":"Query parameter `content_type` used to filter results based on specific conditions.","in":"query","name":"content_type","schema":{"type":"integer"}},{"description":"Limits the number of results returned in the response.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}},{"description":"Query parameter `object_id` used to filter results based on specific conditions.","in":"query","name":"object_id","schema":{"type":"integer"}},{"description":"Query parameter `page` used to filter results based on specific conditions.","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"Query parameter `sort` used to filter results based on specific conditions.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Query parameter `timestamp` used to filter results based on specific conditions.","in":"query","name":"timestamp","schema":{"format":"date-time","type":"string"}},{"description":"Filters records where `timestamp` is greater than the given value.","in":"query","name":"timestamp__gt","schema":{"format":"date-time","type":"string"}},{"description":"Filters records where `timestamp` is greater than or equal to the given value.","in":"query","name":"timestamp__gte","schema":{"format":"date-time","type":"string"}},{"description":"Filters records where `timestamp` is less than the given value.","in":"query","name":"timestamp__lt","schema":{"format":"date-time","type":"string"}},{"description":"Filters records where `timestamp` is less than or equal to the given value.","in":"query","name":"timestamp__lte","schema":{"format":"date-time","type":"string"}},{"description":"Query parameter `user` used to filter results based on specific conditions.","in":"query","name":"user","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedEventList"}}},"description":"Successful response for status code 200."}},"tags":["audit-events"]}}}}
```

## GET /audit-events/{uuid}/

> This method returns details about an audit event, including the event's UUID, user information (email, name), timestamp, IP address, accessed URL, query parameters, post data, and request headers. Audit events are used to track user actions and system changes for security and compliance purposes. This endpoint retrieves a specific record by its unique identifier.

```json
{"openapi":"3.0.3","info":{"title":"Data Warehouse","version":"1.0.0"},"servers":[{"description":"Server base URL with dynamic channel_id.","url":"https://{omnitron_url}/api/v1/remote/{channel_id}/data-warehouse","variables":{"channel_id":{"default":"1","description":"Unique identifier for the sales channel."},"omnitron_url":{"default":"sandbox.akinon.com"}}},{"description":"Server base URL with Commerce URL.","url":"https://{commerce_url}/api/v1/data-warehouse","variables":{"commerce_url":{"default":"sandbox.commerce.akinon.com"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"description":"Token-based authentication with required prefix \"Token\"","in":"header","name":"Authorization","type":"apiKey"}},"schemas":{"Event":{"properties":{"content":{"description":"This field defines the content or details of the event, typically the data or change made."},"content_type":{"description":"The classification or type related to this field.","type":"integer"},"headers":{"description":"This field defines the HTTP headers sent along with the request, which can include metadata about the request.","nullable":true},"object_id":{"description":"This field defines the unique identifier of the object being affected by the event.","maximum":2147483647,"minimum":0,"type":"integer"},"post_data":{"description":"This field defines the data sent by the client in the HTTP POST request.","nullable":true},"query_params":{"description":"This field defines the query parameters included in the URL during the request.","nullable":true},"remote_addr":{"description":"This field defines the IP address of the client making the request.","nullable":true,"title":"IP adresi","type":"string"},"timestamp":{"description":"This field defines the exact date and time when the event occurred.","format":"date-time","type":"string"},"url":{"description":"This field defines the URL that the client accessed during the event.","format":"uri","maxLength":1000,"nullable":true,"type":"string"},"user":{"$ref":"#/components/schemas/User","description":"This field defines the user who triggered the event."},"uuid":{"description":"Unique identifier for the record.","format":"uuid","title":"ID","type":"string"}},"type":"object"},"User":{"properties":{"attributes":{"description":"This field defines a dictionary containing the user's attributes.","type":"string"},"attributes_kwargs":{"description":"This field defines a dictionary containing the user's attributes.","type":"string"},"avatar":{"description":"This field defines the user's photo.","type":"string"},"call_allowed":{"description":"This field defines the user's call communication consent.","type":"string"},"date_joined":{"description":"This field defines the creation date.","type":"string"},"date_of_birth":{"description":"This field defines the user's birthday.","type":"string"},"email":{"description":"Email address of the user or entity.","format":"email","maxLength":254,"title":"E-posta adresi","type":"string"},"email_allowed":{"description":"This field defines the user's email communication consent.","type":"string"},"first_name":{"description":"The full name or label associated with the record.","maxLength":150,"title":"Adı","type":"string"},"gender":{"description":"This field defines the user's gender. Possible values are: **male**, **female**","type":"string"},"groups":{"description":"This field defines the permission groups to which the user is added.","type":"string"},"id":{"description":"This field defines the database ID of the record.","type":"string"},"is_active":{"description":"This field defines whether the user is active.","type":"string"},"is_anonymized":{"description":"This field defines whether the user has been anonymized.","type":"string"},"is_staff":{"description":"This field defines whether the user is a staff.","type":"string"},"is_superuser":{"description":"This field defines whether the user is a super user.","type":"string"},"language_code":{"description":"This field defines the user's local language.","type":"string"},"last_login":{"description":"This field defines the date of the user's last login.","type":"string"},"last_name":{"description":"The full name or label associated with the record.","maxLength":150,"title":"Soyadı","type":"string"},"localized_attributes":{"description":"This field defines a dictionary containing translations of the user's attributes based on the language.","type":"string"},"localized_attributes_kwargs":{"description":"This field defines a dictionary containing translations of the user's attributes based on the language.","type":"string"},"modified_date":{"description":"This field defines the last updated date.","type":"string"},"phone":{"description":"This field defines the user's phone number.","type":"string"},"pk":{"title":"ID","type":"integer"},"sms_allowed":{"description":"This field defines the user's SMS communication consent.","type":"string"},"user_permissions":{"description":"This field defines the user’s permissions.","type":"string"},"user_type":{"description":"This field defines the user type. Possible values are: **guest**, **registered**","type":"string"},"username":{"description":"This field defines the username.","type":"string"}},"type":"object"}}},"paths":{"/audit-events/{uuid}/":{"get":{"description":"This method returns details about an audit event, including the event's UUID, user information (email, name), timestamp, IP address, accessed URL, query parameters, post data, and request headers. Audit events are used to track user actions and system changes for security and compliance purposes. This endpoint retrieves a specific record by its unique identifier.","operationId":"audit_events_retrieve","parameters":[{"description":"A UUID string identifying this Audit event.","in":"path","name":"uuid","required":true,"schema":{"format":"uuid","title":"ID","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}},"description":"Successful response for status code 200."}},"tags":["audit-events"]}}}}
```
