Skip to content

Get workflow run

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

Get the status and results of a workflow run.

workspace_id
required
Workspace Id
string format: uuid
workflow_id
required
Workflow Id
string format: uuid
run_id
required
Run Id
string format: uuid

Successful Response

Media typeapplication/json
GetWorkflowRunOutput
object
run_id
required
Run Id

Unique identifier for this workflow run.

string format: uuid
status
required
BlueprintRunStatus

Current status: pending, running, success, failure, or cancelled.

string
Allowed values: pending running success failure cancelled
poll_interval_seconds
Any of:
integer
steps
Steps

Status of each step composing the workflow run.

Array<object>
default:
GetWorkflowRunStep
object
name
required
Name

The name of the workflow step

string
status
required
BlueprintRunStatus

The execution status of the step: pending, running, success, failure, or cancelled.

string
Allowed values: pending running success failure cancelled
error
Any of:
string
error_code
Any of:
string
estimated_price_creative_units
Any of:
number
completed_at
Any of:
string format: date-time
actual_price_creative_units
Any of:
number
outputs
Any of:
Array<object>
WorkflowRunAsset
object
object_id
required
Object Id

Unique identifier of the generated object.

string format: uuid
object_type
required
LibraryObjectType

Type of generated object: file or asset.

string
Allowed values: directory file asset style blueprint skill
file_id
Any of:
string format: uuid
url
required
Url

Download URL for the asset.

string
content_type
required
Content Type

MIME type, e.g. image/png or video/mp4.

string
preview_url
Any of:
string
width
Any of:
integer
height
Any of:
integer
duration_seconds
Any of:
number
file_size_bytes
Any of:
integer
error
Any of:
string
error_code
Any of:
string
Example
{
"status": "pending",
"steps": [],
"outputs": [
{
"object_type": "directory"
}
]
}

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