---
id: events-events-create
title: "events_events_create"
description: "Event Read-Only Viewset"
sidebar_label: "events_events_create"
hide_title: true
hide_table_of_contents: true
api: eJztV91v2zYQ/1cMPsuW7bZo56dlhTEEaNcgSfuwIhBo6WyzpkiNH048Q//77kjalh07GLZuT31ILFL3+bvfHakt0w0Y7oRW1xWbMFiDcrZIP6UB7oBlrAJbGtGQGApN6W3vFnjV/6TkpvdFwKMFh3KOLyybfE1m2EPGDPzhwbpfdLVhky0rtXL4ih5500hRBtf5N0uGt8yWS6g5PblNA+hKz75B6S5EcAdGcCn+BIMCjaFMnABL6t7i5mTbZoyXUWfLQPmagpN6IRRqhN9izoWEKi61J1ekWzwaETK33jaiFNrbIqVCvri1j9pURczaAgLlijXCcFgZ7SJ2Qq2FC2kWaJk8ce+W2mDcRQcD0tTelFBIoVZBTtSYESITla3jxp3ZB1WF3bnUjwU8QemTuUaj7c35rRKa3VbEbVPUGIxQi6OXdmMd1IXjdnVk53j/mXx3Cys+FwtvUrDGaKpWrSuQiV/Vfu2b6miNfxDXyAohEW4VChTECr7GPT6TBHLprdN1QYxLzLHOYDbESeEk7DhzFdhgGRGjaTpE24vXQn0AtXBLNhm1WSTsk4tcKqVAG4U4q6i8jNFMnPHwzBA8NcJEcp5qzrWpObpglFbfiRoovpnhqiK/bewi1K6IvonQMYGHk/xuE0fbYy2KqA3U9Mhr7MSv28BC1BArXD20oVVtg9jEGMfD0f/Zr83qRWC8F8QCpEtFE2cH8VHqvSDUZj96/0fv/6Pe/xfdTtIpn7/X36dc/s8GxCGwjJrsdF7EQXHcrGT79XD4Hdv/C3Z9FVR700SC4/ZXSI+5AFlFknRB4MbwDREfyXUGnDZUrYLzb3hVCXLL5U3XX3tA4RBajOwiHq++Ix6/gsJRWPaubq4vAFKBQ4Jf4OilbLskSAY69U5OX0gTt2rA8UQXwUanaUfnF8vjhW73EyadWQMVCk8SbyTJ8Ebk61c5o7Nkd9LcESIxpc55sw9+6RxRNOBG6xlwAyZEQpjeHi6P0ydeNxLO3+32Yz309aFvLrXzQWLfdHjgjV/3h2/745/uR28mb0aT8bvB8O3od3bcaELNdUggoXrIKmMESIyHjA3eDcbPKv+Rr9Bxb6cV+dOzgnIbpIgxq3Bk1YEBbAlS6p8Xeu9pIDTxANkHeFqH9uEBvY/X9zQhQzUIWTvJ84VwSz8blLrOOybyw9NM6lmOrlT+4fr99Le7aUCfyl9z1TEeS99LP+e/DDoN8tJHQqw9VSZvJHoOh7YJbI98239AZIcHovKSSIlvt9sZt/DZyLalbSSJoTsNPq45XjHCWMY7DSqgeyILknQFKMLex/j69xQDiUsfqnjazG2207gq6Tx7Ufah0zc3n+6oCLP0vVOHZmWG0+2A/mOfZfjNFU8iFAh7Wya5Wni+INloM0wvT2DsmyU1R7Z7oKx2Q1JtOhEiPEHiXq9AIURZSsXRGsNF438Be1nmwg==
sidebar_class_name: "post api-method"
info_path: docs/developer-docs/api/reference/authentik
custom_edit_url: null
hide_send_button: true
---

import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"events_events_create"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/events/events/"}
>
  
</MethodEndpoint>



Event Read-Only Viewset

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<MimeTabs
  className={"openapi-tabs__mime"}
>
  <TabItem
    label={"application/json"}
    value={"application/json-schema"}
  >
    <details
      style={{}}
      className={"openapi-markdown__details mime"}
      data-collapsed={false}
      open={true}
    >
      <summary
        style={{}}
        className={"openapi-markdown__details-summary-mime"}
      >
        <h3
          className={"openapi-markdown__details-summary-header-body"}
        >
          Body
        </h3><strong
          className={"openapi-schema__required"}
        >
          required
        </strong>
      </summary><div
        style={{"textAlign":"left","marginLeft":"1rem"}}
      >
        
      </div><ul
        style={{"marginLeft":"1rem"}}
      >
        <SchemaItem
          collapsible={false}
          name={"user"}
          required={false}
          schemaName={""}
          qualifierMessage={undefined}
          schema={{}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"action"}
          required={true}
          schemaName={"EventActions (string)"}
          qualifierMessage={"**Possible values:** [`login`, `login_failed`, `logout`, `user_write`, `suspicious_request`, `password_set`, `secret_view`, `secret_rotate`, `invitation_used`, `authorize_application`, `source_linked`, `impersonation_started`, `impersonation_ended`, `flow_execution`, `policy_execution`, `policy_exception`, `property_mapping_exception`, `system_task_execution`, `system_task_exception`, `system_exception`, `configuration_error`, `model_created`, `model_updated`, `model_deleted`, `email_sent`, `update_available`, `custom_`]"}
          schema={{"enum":["login","login_failed","logout","user_write","suspicious_request","password_set","secret_view","secret_rotate","invitation_used","authorize_application","source_linked","impersonation_started","impersonation_ended","flow_execution","policy_execution","policy_exception","property_mapping_exception","system_task_execution","system_task_exception","system_exception","configuration_error","model_created","model_updated","model_deleted","email_sent","update_available","custom_"],"type":"string","title":"EventActions"}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"app"}
          required={true}
          schemaName={"string"}
          qualifierMessage={"**Possible values:** `non-empty`"}
          schema={{"type":"string","minLength":1}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"context"}
          required={false}
          schemaName={""}
          qualifierMessage={undefined}
          schema={{}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"client_ip"}
          required={false}
          schemaName={"string"}
          qualifierMessage={"**Possible values:** `non-empty`"}
          schema={{"type":"string","nullable":true,"minLength":1}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"expires"}
          required={false}
          schemaName={"date-time"}
          qualifierMessage={undefined}
          schema={{"type":"string","format":"date-time"}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"brand"}
          required={false}
          schemaName={""}
          qualifierMessage={undefined}
          schema={{}}
        >
          
        </SchemaItem>
      </ul>
    </details>
  </TabItem>
</MimeTabs><div>
  <div>
    <ApiTabs
      label={undefined}
      id={undefined}
    >
      <TabItem
        label={"201"}
        value={"201"}
      >
        <div>
          
          
          
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={false}
                        name={"pk"}
                        required={true}
                        schemaName={"uuid"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","format":"uuid","readOnly":true,"title":"Event uuid"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"user"}
                        required={false}
                        schemaName={""}
                        qualifierMessage={undefined}
                        schema={{}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"action"}
                        required={true}
                        schemaName={"EventActions (string)"}
                        qualifierMessage={"**Possible values:** [`login`, `login_failed`, `logout`, `user_write`, `suspicious_request`, `password_set`, `secret_view`, `secret_rotate`, `invitation_used`, `authorize_application`, `source_linked`, `impersonation_started`, `impersonation_ended`, `flow_execution`, `policy_execution`, `policy_exception`, `property_mapping_exception`, `system_task_execution`, `system_task_exception`, `system_exception`, `configuration_error`, `model_created`, `model_updated`, `model_deleted`, `email_sent`, `update_available`, `custom_`]"}
                        schema={{"enum":["login","login_failed","logout","user_write","suspicious_request","password_set","secret_view","secret_rotate","invitation_used","authorize_application","source_linked","impersonation_started","impersonation_ended","flow_execution","policy_execution","policy_exception","property_mapping_exception","system_task_execution","system_task_exception","system_exception","configuration_error","model_created","model_updated","model_deleted","email_sent","update_available","custom_"],"type":"string","title":"EventActions"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"app"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"context"}
                        required={false}
                        schemaName={""}
                        qualifierMessage={undefined}
                        schema={{}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"client_ip"}
                        required={false}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","nullable":true}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"created"}
                        required={true}
                        schemaName={"date-time"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","format":"date-time","readOnly":true}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"expires"}
                        required={false}
                        schemaName={"date-time"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","format":"date-time"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"brand"}
                        required={false}
                        schemaName={""}
                        qualifierMessage={undefined}
                        schema={{}}
                      >
                        
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"pk\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n  \"user\": {},\n  \"action\": \"login\",\n  \"app\": \"string\",\n  \"context\": {},\n  \"client_ip\": \"string\",\n  \"created\": \"2024-07-29T15:51:28.071Z\",\n  \"expires\": \"2024-07-29T15:51:28.071Z\",\n  \"brand\": {}\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem><TabItem
        label={"400"}
        value={"400"}
      >
        <div>
          
          
          
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={false}
                        name={"non_field_errors"}
                        required={false}
                        schemaName={"string[]"}
                        qualifierMessage={undefined}
                        schema={{"type":"array","items":{"type":"string"}}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"code"}
                        required={false}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        name={"property name*"}
                        required={false}
                        schemaName={"any"}
                        qualifierMessage={undefined}
                        schema={{"type":"object","description":"Validation Error","properties":{"non_field_errors":{"type":"array","items":{"type":"string"}},"code":{"type":"string"}},"additionalProperties":{},"title":"ValidationError"}}
                        collapsible={false}
                        discriminator={false}
                      >
                        
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"non_field_errors\": [\n    \"string\"\n  ],\n  \"code\": \"string\"\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem><TabItem
        label={"403"}
        value={"403"}
      >
        <div>
          
          
          
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={false}
                        name={"detail"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"code"}
                        required={false}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"detail\": \"string\",\n  \"code\": \"string\"\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem>
    </ApiTabs>
  </div>
</div>
      