Create Flow
This endpoint allows administrators to define and register new flows that can later be accessed by users with appropriate permissions.
Endpoint
POST /api/v1/langflow/admin/flows
Authentication
Requires Admin authentication:
- Valid JWT token
- Admin role verification via middleware
Request Format
Sent as application/json
.
Request Body
The request body accepts the entire flow data object. The only required field is name
.
Field | Type | Description |
---|---|---|
name | string | The name of the flow. Must be a non-empty string |
Example Request
curl --location 'https://8ehqmu89grlsbn-8001.proxy.runpod.net/api/v1/langflow/admin/flows' \
--header 'Authorization: Bearer YOUR_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "My Flow Name"
}'
Success Response
Status Code: 201 Created