Files
authentik/website/docs/developer-docs/api/reference/flows-instances-retrieve.api.mdx
2024-09-13 12:17:54 -05:00

471 lines
20 KiB
Plaintext

---
id: flows-instances-retrieve
title: "flows_instances_retrieve"
description: "Flow Viewset"
sidebar_label: "flows_instances_retrieve"
hide_title: true
hide_table_of_contents: true
api: eJytV1tv2zYU/iuEsIcNs62s7YDNTwtatwiQrkWT5mFZJtDSscSaIlWScuIa+u87h5QcybesQ54k3s7143cON5GuwHAntLrIomm0kPreJkJZx1UKNjHgjIAVRKMoA5saUdFW3PgWN7IbAfcWHC5W3PASHBgbTW83kaAtFXcFLilcwJGVdY4jmxZQ8mi6idy68vOoQOV78m+EFXMJTCjmCmCfP11OomYUGfhaCwNoqjM1NHejyPGcdAbLI5ywkNZGuLU3hNd4WjmxxNEdbTdgK60sWDLhxdkZfVKtHG6iX15VUqQ+HvEXS5Zs9k3W8y+QusMhuQIjuBTfwFBUDEXXiaCtWh5ye6FNyVF3VNcii8hAnn1Qch08RP+Ek9BJ93swDJVGK9dzoTIUUuoMZFI5k+Did2tougztHsQFn7P/lapRVPKHS1A5QmD66xkBxCE6aPs/t2M+/nY+/uts/Hty9/MPpKh18ilNV4W+V4xbr+eazpBSH5mK52A9RPCIyBUPRzCjUn5YeCyAqktCSoeJkGZUQhPaiG/dWKgVpjDrhqCMlrIkhIyiWg2GBlK9ArMmZCMSIUEsLURehytFcNz1qJ/PN4+mzsg4AujQ4zeQCpxh9wV36LWwwVv81hYyhqmdsLfaMHjgZSVh5CNzPnCQLdoTeG3w6qQoR6M8wEAqVqtxLxwoEcUatsKMOsu2l8fHdc7TZW50rQ6CbGj2O3AdFkgb/T4eZ6LESE3YxcIvEPrIvBgDiFYw9Ab/DOq/F65ghXPV30q44IGrjUIruR0LewjKPgm2ZyA3hlN2hIPSPn07mgMy/WUTzy015UgrCJc6EE8rQCAT5Z479gPq9zK9YP5oxgLjHTN4neDtEwoSogfSsIW/lIR5tT6Fzo9exMxLeE8CyGJd4i0WcyGRXbdiWwlzrSVwtWf4THHihsFZRmdHeHVTNB2peGfVp73i1t5rk7GSK0ypsQyRXGrcAiyDlUjb2w4PlTYuqY38b6gM+z0wMUc+hodCKPla164fNkRWugTiz7ZcJBIWrjc0Ii9obPHCzrnplrthWH6CEC692sAFZL0SkCU8Pc5lJVjb0o4TqqY63U61lvnJE1rfeB3n6QkOet1SGgQWsoWuZcYKLJXIIYFIAsd4e5E2UkyOpXvPPZ34PO2Q7kFnlFYQbWt8MiCm3nytjq3YGsstqezNYTwrbU9GfsiXR6Lwqe08mMR2SNI1HLqEbJqxQSXxEQixCAHCQAxamNs+pw4ZYVjGBjBv6/WI+okeOZ1qCkbb7ivQY+f63RB9aF6z6zbl7tWztkk329rKZsbo/T4JYZAsBMgsAVr/Dt5tPEtlh5oZgmCWCVLL5ce+vsf2o2dasOxoPF4+YzzegcKeMWXnHy+OBCQDx8UBfjvpbR9mrYBeululJ9xsiEkQzfQqyNsen5q5KPZ1J96+EeINgauJCV5gVt0TwDNyFPNKxKuXsb9QXWd+RZEJrvX6860TVPG7l4IvLcANGG+RUAvtd7ZuPB4fRaQ5GP/i7MWryW+TX/ZC/Z4vMTy7F9cKap0mLWEi23raL33IowKk1H/k+rEXEpoCj+kGfEZ4vIYHzvuLa+oPvdvkgp3GcY6lrJ5PsL7FPRHx499c6nmMqlR8efF69ufVzLtJhIV1ryfcx5xtY86Ovct6qNx9orXRdfDg4kqiSnKjrZshtd0jiuLcKsL/acsdBJ+CmBT3bTZzLNyfjWwamv5aUwuMLyzMAsf3z5ySgxjIhKV/hNCCSwsnbP2xo9ef2DFTOwpQRADYoNc0wt8lrLvnZXOH+wqs5QgX0h+WzpGDK9c7tHdbCZxbsL+bXbdvgn57EzA46n5I+kGDMDJ+x7VegsLodPY5GpOBTfMvZlljAw==
sidebar_class_name: "get 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 Markdown from "@theme/Markdown";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"flows_instances_retrieve"}
>
</Heading>
<MethodEndpoint
method={"get"}
path={"/flows/instances/{slug}/"}
>
</MethodEndpoint>
Flow Viewset
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>
<details
style={{"marginBottom":"1rem"}}
className={"openapi-markdown__details"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
>
<h3
className={"openapi-markdown__details-summary-header-params"}
>
Path Parameters
</h3>
</summary><div>
<ul>
<ParamsItem
className={"paramsItem"}
param={{"in":"path","name":"slug","schema":{"type":"string","description":"Visible in the URL."},"required":true}}
>
</ParamsItem>
</ul>
</div>
</details><div>
<div>
<ApiTabs
label={undefined}
id={undefined}
>
<TabItem
label={"200"}
value={"200"}
>
<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":"Flow uuid"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"policybindingmodel_ptr_id"}
required={true}
schemaName={"uuid"}
qualifierMessage={undefined}
schema={{"type":"string","format":"uuid","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"name"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"slug"}
required={true}
schemaName={"string"}
qualifierMessage={"**Possible values:** `<= 50 characters`, Value must match regular expression `^[-a-zA-Z0-9_]+$`"}
schema={{"type":"string","description":"Visible in the URL.","maxLength":50,"pattern":"^[-a-zA-Z0-9_]+$"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"title"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string","description":"Shown as the Title in Flow pages."}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"designation"}
required={true}
schemaName={"FlowDesignationEnum (string)"}
qualifierMessage={"**Possible values:** [`authentication`, `authorization`, `invalidation`, `enrollment`, `unenrollment`, `recovery`, `stage_configuration`]"}
schema={{"enum":["authentication","authorization","invalidation","enrollment","unenrollment","recovery","stage_configuration"],"type":"string","title":"FlowDesignationEnum"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"background"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string","description":"Get the URL to the background image. If the name is /static or starts with http\nit is returned as-is","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"stages"}
required={true}
schemaName={"uuid[]"}
qualifierMessage={undefined}
schema={{"type":"array","items":{"type":"string","format":"uuid"},"readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"policies"}
required={true}
schemaName={"uuid[]"}
qualifierMessage={undefined}
schema={{"type":"array","items":{"type":"string","format":"uuid"},"readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"cache_count"}
required={true}
schemaName={"integer"}
qualifierMessage={undefined}
schema={{"type":"integer","description":"Get count of cached flows","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"policy_engine_mode"}
required={false}
schemaName={"PolicyEngineMode (string)"}
qualifierMessage={"**Possible values:** [`all`, `any`]"}
schema={{"enum":["all","any"],"type":"string","title":"PolicyEngineMode"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"compatibility_mode"}
required={false}
schemaName={"boolean"}
qualifierMessage={undefined}
schema={{"type":"boolean","description":"Enable compatibility mode, increases compatibility with password managers on mobile devices."}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"export_url"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string","description":"Get export URL for flow","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"layout"}
required={false}
schemaName={"FlowLayoutEnum (string)"}
qualifierMessage={"**Possible values:** [`stacked`, `content_left`, `content_right`, `sidebar_left`, `sidebar_right`]"}
schema={{"enum":["stacked","content_left","content_right","sidebar_left","sidebar_right"],"type":"string","title":"FlowLayoutEnum"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"denied_action"}
required={false}
schemaName={"DeniedActionEnum (string)"}
qualifierMessage={"**Possible values:** [`message_continue`, `message`, `continue`]"}
schema={{"enum":["message_continue","message","continue"],"type":"string","title":"DeniedActionEnum"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"authentication"}
required={false}
schemaName={"AuthenticationEnum (string)"}
qualifierMessage={"**Possible values:** [`none`, `require_authenticated`, `require_unauthenticated`, `require_superuser`, `require_outpost`]"}
schema={{"enum":["none","require_authenticated","require_unauthenticated","require_superuser","require_outpost"],"type":"string","title":"AuthenticationEnum"}}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"pk\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"policybindingmodel_ptr_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"name\": \"string\",\n \"slug\": \"string\",\n \"title\": \"string\",\n \"designation\": \"authentication\",\n \"background\": \"string\",\n \"stages\": [\n \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n ],\n \"policies\": [\n \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n ],\n \"cache_count\": 0,\n \"policy_engine_mode\": \"all\",\n \"compatibility_mode\": true,\n \"export_url\": \"string\",\n \"layout\": \"stacked\",\n \"denied_action\": \"message_continue\",\n \"authentication\": \"none\"\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>