Skip to main content

List Admin Flows

This endpoint allows administrators to retrieve only the flows that they have created, providing a personalized view of their own flows.

Endpoint

GET /api/v1/langflow/admin/flows/own

Authentication

Requires Admin authentication:

  • Valid JWT token
  • Admin role verification via middleware

Request Format

No request body required for this GET endpoint.

Example Request

curl --location 'https://8ehqmu89grlsbn-8001.proxy.runpod.net/api/v1/langflow/admin/flows/own' \
--header 'Authorization: Bearer YOUR_JWT_TOKEN'

Response Format

Success Response

Status Code: 200 OK

Returns an array of flows created by the authenticated admin, with additional user information.

[
{
"userId": "user123",
"flow": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "My Customer Support Flow",
"description": "Automated customer support chatbot I created",
"icon": "🤖",
"icon_bg_color": "#3B82F6",
"data": {
"nodes": [...],
"edges": [...]
},
"is_component": false,
"updated_at": "2024-01-15T10:30:00Z",
"webhook": null,
"endpoint_name": "my-customer-support",
"user_id": "admin123",
"folder_id": null
}
},
{
"userId": "user456",
"flow": {
"id": "660f9511-f3ac-52e5-b827-557766551111",
"name": "Document Processor",
"description": "Process and analyze documents",
"icon": "📄",
"icon_bg_color": "#10B981",
"data": {
"nodes": [...],
"edges": [...]
},
"is_component": false,
"updated_at": "2024-01-14T15:45:00Z",
"webhook": null,
"endpoint_name": "doc-processor",
"user_id": "admin123",
"folder_id": "folder123"
}
}
]

Response Fields

Each item in the array contains:

FieldTypeDescription
userIdstringID of the user who has access to this flow
flowobjectComplete flow object with all flow details

The flow object contains:

FieldTypeDescription
idstringUnique flow identifier
namestringFlow display name
descriptionstringFlow description
iconstringFlow icon (emoji or URL)
icon_bg_colorstringBackground color for the icon
dataobjectComplete flow definition (nodes, edges, etc.)
is_componentbooleanWhether this flow is a reusable component
updated_atstringLast modification timestamp (ISO 8601)
webhookstring|nullWebhook URL if configured
endpoint_namestringAPI endpoint name for the flow
user_idstringID of the admin who created the flow
folder_idstring|nullParent folder ID if organized in folders

Error Responses

Unauthorized

Status Code: 401 Unauthorized

{
"error": "Unauthorized access"
}

Forbidden

Status Code: 403 Forbidden

{
"error": "Admin access required"
}

Service Unavailable

Status Code: 503 Service Unavailable

{
"error": "Permissions store not initialized"
}

Server Error

Status Code: 500 Internal Server Error

{
"error": "Internal server error"
}

Notes

  • Only administrators can access this endpoint
  • Returns only flows created by the authenticated admin
  • The response includes user mapping information showing which users have access
  • Empty array [] is returned if the admin hasn't created any flows
  • This endpoint provides a personalized view for admins to manage their own flows
  • Useful for admins to see which users they've granted access to their flows
  • The userId field shows users who have been granted access to each flow