Skip to content

List workflows

Viewing v1— superseded by v2

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>'

v1 is superseded. v1 was superseded by v2 on 2026-08-26. A sunset date has not been announced yet; v1 will be deprecated as a whole before removal. Migrate with the v2 migration guide.

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

workspace_id
required
Workspace Id

Id of the workspace that owns the resource.

string format: uuid

Id of the workspace that owns the resource.

search
Search

Full-text search on workflow name/description

string
nullable

Full-text search on workflow name/description

limit
Limit

Maximum number of results to return.

integer
default: 20 >= 1 <= 100

Maximum number of results to return.

cursor
Cursor

Cursor from a previous response to fetch the next page.

string
nullable

Cursor from a previous response to fetch the next page.

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 world
created_at
required
Created At

When this workflow version was created

string format: date-time
published_at
Published At

When this workflow version was published

string format: date-time
nullable
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
Value Schema

JSON schema of the input value

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
Display Name

Human-readable label

string
nullable
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
Value Schema

JSON schema of the output value

object
key
additional properties
any
description
required
Description

What this output contains

string
display_name
Display Name

Human-readable label

string
nullable
pagination
required
PaginationOutput
object
next_cursor
Next Cursor

Cursor to use to get the next page

string
nullable
has_more_results
required
Has More Results

If there are more results to page through

boolean
total_count
Total Count

Total number of results matching the query

integer
nullable
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, or the access token lacks the scope the operation requires.

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."
}

The outcome of the request with this Idempotency-Key is not known yet: it is still running, or it failed without a stored response. Retry after the number of seconds in Retry-After.

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, or an Idempotency-Key reused for a different request.

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 — retry after the number of seconds in Retry-After.

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."
}