The Two Main Objects
App
An app is a runnable workflow with a stable input contract. You use app endpoints to:- discover what is available
- inspect the app’s parameters
- optionally inspect the underlying workflow graph
- start an execution
Execution
An execution is one asynchronous run of an app. Executions are durable server-side jobs. They may complete quickly or may take much longer for heavy image/video workflows.Typical Flow
Execution Status Lifecycle
Executions move through a small set of top-level states:queuedrunningcompletedfailed
?webhook= URL to receive results automatically, or treat the execution ID as a job handle and poll for status.
Outputs
When you first start an execution, Lamina may return placeholder outputs with statuspending.
When the execution finishes:
- output
typechanges frompendingto something likeimage,video, ortext valuecontains the final resultstatusbecomescompletedfor successful outputs
- the top-level
errorMessage - each output’s
errorfield
Workflow Visibility
GET /api/apps/{appId}/workflow returns the node graph behind an app.
This is useful if you want to:
- reason about what the app does internally
- build richer agent tooling
- classify apps by pipeline structure
- list apps
- get app
- run app
- get execution