---
id: providers-saml-import-metadata-create
title: "providers_saml_import_metadata_create"
description: "Create provider from SAML Metadata"
sidebar_label: "providers_saml_import_metadata_create"
hide_title: true
hide_table_of_contents: true
api: eJyNVF1v2jAU/SuRn1PMaB8mntZWaEIqWzU6aVJVISe5EBfHzmyHjSH+++61QwgfD33COPfj3HPO9Y6ZGqzw0uhpwcastmYjC7Bu4USlFrKqjfWLCrwohBeL3ILwwFJWgMutrCkPsx7DdXJITpbWVMn8fvaUzNpMTPFi5dj49diCvaXMwu8GnH8wxZaNdyw32oP2dKwa5WUtrOdLY6ubUASvXV5CFU5+WwP2Ntk75P4C0jQgT2iKM1y/TmHhR2TAS3BUVIsKesWdt1KvMKqS+gn0ypds/GmfMtH40lj5LxC3WCrz51oSARc4DGsaWTBMW0p1tXoXmEkt7Jbt95EZaaEgyq60a4ulETEy6aWn4oxof24HjiT8iBxj1ZOy3jaAFw7yxkqP9L/uQiPkX67x39s+6ONqo10kZzS8o59ToudNnoNzy0apbRL9AkVHOU19Nxxepj2IIrEHYBRze6a/qGsl8zAxf3eU83Hxv4IGK/Pk/nmaTKw19kLnAg0g1aUWCCU3xRWRziVpC/SIb5vGfoHrU1ChBG5SacKiGUe4a0GWYrxbCk6O5Wd7xxnpZDe0NCRTYxUliVryzS1nJNRBxjlRFGfsidlNU3pfU7EQRYYDYUklhCb10oTIdp5jesqoc5xiNBzdDT4PRhecz8QaeUoOWVG5xOEkCgYsDdKKPEiLGhL3rASlzJeV6ToNpCEFUHdAzx33kc2mL1gijk0juDHnK+nLJhvkpuK9Evx4ypTJOLbS/Gn6OPk2n4QxifhK6F7xjvv4WkTukwP3yfU3r+fVDz5/UQAPfz2vFaKiScNEu9YF/acRJUIs+HPmBLwhz5XkHkzY7TLh4KdV+z1d4zpZWmQ8boSVIiMhcZExAQRtI5lnDVvCHNHfvBAsClcNwbv26u7TQ9I9rnrte+EXS0pW7Dz+/H1OsmXt416FxQqPXTtKd4wgSbqeV1tvpocDgW8/Cb3toUAWQsSLWYNGJtIWrqf/CAmX8T+gBmZD
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={"providers_saml_import_metadata_create"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/providers/saml/import_metadata/"}
>
  
</MethodEndpoint>



Create provider from SAML Metadata

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

<MimeTabs
  className={"openapi-tabs__mime"}
>
  <TabItem
    label={"multipart/form-data"}
    value={"multipart/form-data-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={"authorization_flow"}
          required={true}
          schemaName={"uuid"}
          qualifierMessage={undefined}
          schema={{"type":"string","format":"uuid"}}
        >
          
        </SchemaItem><SchemaItem
          collapsible={false}
          name={"file"}
          required={true}
          schemaName={"binary"}
          qualifierMessage={undefined}
          schema={{"type":"string","format":"binary"}}
        >
          
        </SchemaItem>
      </ul>
    </details>
  </TabItem>
</MimeTabs><div>
  <div>
    <ApiTabs
      label={undefined}
      id={undefined}
    >
      <TabItem
        label={"204"}
        value={"204"}
      >
        <div>
          
          
          Successfully imported provider
          
          
        </div><div>
          
        </div>
      </TabItem><TabItem
        label={"400"}
        value={"400"}
      >
        <div>
          
          
          Bad request
          
          
        </div><div>
          
        </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>
      