---
title: "Create Authentication Flow"
method: POST
path: "/v1/applications/{application_id}/auth-flows"
tags: ["Applications"]
---

# Create Authentication Flow

`POST /v1/applications/{application_id}/auth-flows`

Creates a new authentication flow for an application.

## Path parameters

- `application_id` string, uuid, required

## Request body

- CreateAuthFlowRequestSchema
  - `name` string, required — Name of the authentication flow
  - `description` string — Description of the authentication flow
  - `is_recommended` boolean — Whether this is the recommended authentication flow
  - `methods` string[], required — Authentication methods in this flow
  - `custom_fields` CustomFieldDefinitionSchema[] — Custom fields for this authentication flow
    - `name` string, required — Name of the custom field

## Response `201`

Authentication flow created successfully

- CreateAuthFlowResponseSchema
  - `id` string, uuid — Unique identifier for the authentication flow
  - `name` string — Name of the authentication flow
  - `description` string, nullable — Description of the authentication flow
  - `is_recommended` boolean — Whether this is the recommended authentication flow
  - `methods` string[] — Authentication methods in this flow
  - `custom_fields` CustomFieldDefinitionSchema[] — Custom fields for this authentication flow
    - `name` string, required — Name of the custom field
  - `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

## Other responses

- `400` — Invalid request parameters
- `500` — Failed to create authentication flow

## Changes

- **2026-01-04** `611c70933b3d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/changes/v1/applications/:application_id/auth-flows/post.md)

---

[API](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api.md) · [All operations](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anchorbrowser/anchorbrowser-api/revisions/d0f5aa64f9f4/schema)
