---
id: events-transports-create
title: "events_transports_create"
description: "NotificationTransport Viewset"
sidebar_label: "events_transports_create"
hide_title: true
hide_table_of_contents: true
api: eJztVk1v2zgQ/SsCz7KV2Inb9Wm7hVEYSNogH70UgUFJY4s1RWpJKq7X8H/fGVK25NhJeijQSy8Gac0MZx7fm+GG6QoMd0Krac7GDJ5AOTtzhitbaYPLzAB3wGKWg82MqMgUDT9rJ+Yi8573O+voq4CVBYfWji8sG39rArLHmBn4twbr/tH5mo03LNPK4Sda8qqSTajku6XwG2azAkpOK7euAA/U6XfI3E/mcQdGcCn+A4MOlaEanQBL4RQvoRPWOiPUAq1Koa5ALVzBxudb3Orcm4GqS6pD6oxLNFtBWmi9bFczK3lGe0xXSCr0eWQnnISXUr3GcyZ0xraNWBt5KsO5NiVHwFhtRNe8RPzI4lWXWuS4V7WUPKVsnKkBY1hQ+UyrrAtJqrUEro6g/qLkOiKHSHUqicg7jvCkCH7wspIQrQpQ3hCTiHjU5BkJ5TRus4I7+lEKZJ9tt4EZwkBOOPvreXwDtNtAJXQ+8N7XlCFCDln2DblVO8zGiSXuHreehhhC2UCGwdn57+RitfyZS0MB5oR9KLCF5oE+Y72nGf2bOExnzp7ApNqelNkhYrfgakNckYgn5BF5RyvhCuTJwzS64inIIwT+KMUr5QDphgUxUeot9QTZHGZMKF2cnf1CMXxFzueh7okx+kQj1mo2FyDzGdB32wnJjeFrdBAOSnuC2phs1nD7+AvPc0HHcnnTPW/botKmFjJ7EY/hL8TjEyhsBFn04Wb6AiA5OFLfKSW/XG2XEU2Azv03h75SJkkWXKFp+FfaUt4VpyHIkjC6k/YtkDCSgUHOWd9bvfpYwiuRPA0TRt1113vvCJVQVqcD7wsonKsomLciIQE3YHw2hOtt+1SYBKW0k7szsT0oz7ta6Amt1ZH22XDO31/ORxe9y3fn73oXl6NBLx3Os94g+2s0nI9GfM5H7EDwTQsQaq59EQ26bWUxI1ACpoOzwUX/fX9wxIBrvvQyb7yapmAF1ddnsScazzzRQh9GnEBK/fdC70/qC018QBaCsl1Urqf3GCLUTujacZIssJHWaT/TZdIJkbSrVOo0waNUcjX9OPl8N/E3QDQoueoED0yIWiZEp1+FHbG8/UAMTHDwwyWVxByorqafBwbuH49ovD8ZN0TwgqiKFptNyi08GLnd0t9IG0NzH5dPHMeub+A499EBRwgyjGi7BDRhH0OmvXvKg8xl7e/0ucS38c7jQ5ZB5V61feyo6ebLHV1J2rx3G7YavqKBhr+ovhhf3+TtdeL/2zDJ1aLmC7INMX1PqwmQdu4EucS7BVW1a51q3ckQ4fEW93oJCiGKm1Ic7TFdDP4/7UsuZg==
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_transports_create"}
>
</Heading>

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



NotificationTransport 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={"name"}
          required={true}
          schemaName={"string"}
          qualifierMessage={"**Possible values:** `non-empty`"}
          schema={{"type":"string","minLength":1}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"mode"}
          required={false}
          schemaName={"NotificationTransportModeEnum (string)"}
          qualifierMessage={"**Possible values:** [`local`, `webhook`, `webhook_slack`, `email`]"}
          schema={{"enum":["local","webhook","webhook_slack","email"],"type":"string","title":"NotificationTransportModeEnum"}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"webhook_url"}
          required={false}
          schemaName={"uri"}
          qualifierMessage={undefined}
          schema={{"type":"string","format":"uri"}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"webhook_mapping"}
          required={false}
          schemaName={"uuid"}
          qualifierMessage={undefined}
          schema={{"type":"string","format":"uuid","nullable":true}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"send_once"}
          required={false}
          schemaName={"boolean"}
          qualifierMessage={undefined}
          schema={{"type":"boolean","description":"Only send notification once, for example when sending a webhook into a chat channel."}}
        >
          
        </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":"Uuid"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"name"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"mode"}
                        required={false}
                        schemaName={"NotificationTransportModeEnum (string)"}
                        qualifierMessage={"**Possible values:** [`local`, `webhook`, `webhook_slack`, `email`]"}
                        schema={{"enum":["local","webhook","webhook_slack","email"],"type":"string","title":"NotificationTransportModeEnum"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"mode_verbose"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","description":"Return selected mode with a UI Label","readOnly":true}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"webhook_url"}
                        required={false}
                        schemaName={"uri"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","format":"uri"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"webhook_mapping"}
                        required={false}
                        schemaName={"uuid"}
                        qualifierMessage={undefined}
                        schema={{"type":"string","format":"uuid","nullable":true}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"send_once"}
                        required={false}
                        schemaName={"boolean"}
                        qualifierMessage={undefined}
                        schema={{"type":"boolean","description":"Only send notification once, for example when sending a webhook into a chat channel."}}
                      >
                        
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"pk\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n  \"name\": \"string\",\n  \"mode\": \"local\",\n  \"mode_verbose\": \"string\",\n  \"webhook_url\": \"string\",\n  \"webhook_mapping\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n  \"send_once\": true\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>
      