Skip to content

List workflows

GET
/v1/workspaces/{workspace_id}/workflows
curl --request GET \
--url https://api.app.layer.ai/api/v1/workspaces/:workspace_id/workflows \
--header 'Authorization: Bearer <token>'

List available generation workflows (published blueprints) in a workspace.

workspace_id
required
Workspace Id
string format: uuid
search
Any of:
string

Full-text search on workflow name/description

limit
Limit
integer
default: 20 >= 1 <= 100
cursor
Any of:
string

Successful Response

Media typeapplication/json
ListWorkflowsOutput
object
workflows
required
Workflows
Array<object>
WorkflowSummary
object
workflow_id
required
Workflow Id

Unique workflow identifier

string format: uuid
name
required
Name

Workflow display name

string
description
required
Description

What this workflow generates

string
modality
Any of:
Modality
string
Allowed values: text image audio video three_d playable
created_at
required
Created At

When this workflow version was created

string format: date-time
published_at
Any of:
string format: date-time
inputs
required
Inputs

Input parameters the workflow accepts

Array<object>
WorkflowInput
object
name
required
Name

Input parameter name (used as key in execute_workflow inputs)

string
type
required
Type

Parameter type: string, number, boolean, file, prompt, etc.

string
value_schema
Any of:
object
key
additional properties
any
required
required
Required

Whether this input must be provided

boolean
description
required
Description

What this input controls

string
display_name
Any of:
string
default
Any of:
Default

Default value if not provided

outputs
required
Outputs

Output parameters the workflow produces

Array<object>
WorkflowOutput
object
name
required
Name

Output parameter name

string
type
required
Type

Output type: file, string, etc.

string
value_schema
Any of:
object
key
additional properties
any
description
required
Description

What this output contains

string
display_name
Any of:
string
pagination
required
PaginationOutput
object
next_cursor
Any of:
string
has_more_results
required
Has More Results

If there are more results to page through

boolean
total_count
Any of:
integer
Example
{
"workflows": [
{
"modality": "text"
}
]
}

Unauthenticated — missing or invalid Bearer token.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}

Forbidden — insufficient permissions.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}

Resource not found.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}

Invalid input parameters.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}

Rate limited — too many concurrent requests.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}

Internal server error.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}