Skip to main content
POST
/
v1
/
applications
/
{applicationId}
/
auth-flows
Create Authentication Flow
curl --request POST \
  --url https://api.anchorbrowser.io/v1/applications/{applicationId}/auth-flows \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '
{
  "name": "Standard Login",
  "methods": [
    "username_password"
  ]
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "is_recommended": true,
  "methods": [
    "<string>"
  ],
  "custom_fields": [
    {
      "name": "<string>"
    }
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

applicationId
string<uuid>
required

The ID of the application

Body

application/json
name
string
required

Name of the authentication flow

methods
enum<string>[]
required

Authentication methods in this flow

Minimum array length: 1
Available options:
username_password,
authenticator,
custom
description
string

Description of the authentication flow

Whether this is the recommended authentication flow

custom_fields
object[]

Custom fields for this authentication flow

Response

authentication flow created successfully

id
string<uuid>

Unique identifier for the authentication flow

name
string

Name of the authentication flow

description
string | null

Description of the authentication flow

Whether this is the recommended authentication flow

methods
string[]

Authentication methods in this flow

custom_fields
object[]

Custom fields for this authentication flow

created_at
string<date-time>

Timestamp when the authentication flow was created

updated_at
string<date-time>

Timestamp when the authentication flow was last updated