Workflow API Integration Guide
Schemas and Try it: API Reference (workflow). This page is an Integration Guide. Related: Trigger API Integration Guide · Agent API Integration Guide
Status: available. This document describes multi-step workflows (agent steps, deterministic invoke steps, and human wait steps). Confirm with your Lincoln Cannon LLC integration contact that Workflow is enabled for your account before integrating. For chat and programmatic agent turns, see Agent API Integration Guide. For connectors, see your integration contact and related product docs (Knowledge API Integration Guide, Assets API Integration Guide as applicable). Sign-in tokens: SSO Integration Guide.
Intended base URL: https://api.lincolncannon.co/workflow. If your integration contact gives you a non-production API base, use https://api-dev.lincolncannon.co/workflow instead.
Authentication
Send one of:
| Header | Who |
|---|---|
Authorization: Bearer <id_token> | Organization owner account, or an additional mailbox your integration contact configures. Obtain tokens per SSO Integration Guide. |
x-api-key | API key your integration contact issued for your account. |
Do not send an invalid or expired Bearer token together with an API key — a present Bearer that fails is not ignored. Missing credentials → authorization required.
CORS: the API echoes a valid Origin on responses. Browser preflight is handled automatically.
Concepts
| Term | Meaning |
|---|---|
| Definition | Named JSON workflow for your account: ordered steps, optional unique name. Lincoln Cannon LLC assigns the definition id (UUID). |
| Run | One execution of a snapped definition revision. Status and cursor live on the run. |
agent step | Starts a structured turn on a named agent under your account. |
invoke step | Calls a named capability. Set connector to lincolncannonco for Lincoln Cannon LLC HTTP operations (same dotted ids as OpenAPI operationId / MCP tool names), or to an Integration connector id for a typed pack; plus ref and params. Optional schemaHash pins the catalog entry. Optional onError: fail (default), continue, or retry. Params may bind prior step outputs with $from. No raw secrets in the definition. |
human step | Run pauses (waiting_human). Lincoln Cannon LLC emails a mailbox on the account. You can also complete or stop the run over HTTP. |
This API is not a substitute for a single long agent request with poll/webhook on the agent API — that remains Agent API Integration Guide.
Routes
| Method / path (relative to base) | Purpose |
|---|---|
GET /capabilities | List invoke capabilities: house (lincolncannonco) plus granted Integration connector packs. Optional query definitionId filters connectors granted for that definition |
GET / POST /definitions | List or create definitions |
GET / PUT /definitions/{definitionId} | Read or replace a definition |
POST /definitions/{definitionId}/runs | Start a run — response 202 with runId (execution continues asynchronously). Fails if the definition is disabled (enabled: false) |
GET /runs | List runs for the account |
GET /runs/{runId} | Get run status, cursor, artifact references / short summaries, definition revision (not full agent transcripts) |
POST /runs/{runId}/resolve | Complete a human step while the run is waiting_human. Approve (or steps without a decision field) continues the run. When requiredFields includes decision, decision=reject ends the run as rejected. |
POST /runs/{runId}/cancel | Stop a run while it is waiting_human. The run status becomes cancelled. |
You do not advance each step yourself — the service runner advances after each step completes or after resolve.
Agent keys in a definition must belong to your account.
Human step
When a human step starts, Lincoln Cannon LLC emails a mailbox on the account. The default is the account primary mailbox. A step may set notifyEmail to the primary mailbox or another address your integration contact lists on the account. Write-time validation checks email format only (notifyEmail is invalid); an address that is not on the account does not receive mail and the run still enters waiting_human.
The message includes the prompt, the run id, a link to submit, and a Cancel workflow link.
- If the step has no
requiredFields, you can reply to the message. The new reply text is the step input. The same message links to a page with one text field if you prefer to submit there. - If the step lists
requiredFields, the message is fromnoreplyon the workflow domain. Use the link. The page collects those fields. A reply does not complete the step. - Cancel workflow on the message or the page asks you to confirm cancel. Confirming stops the run (
cancelled). Opening the link does not stop the run. - The first completion wins. A later reply, form submit, or cancel returns 409.
When requiredFields includes decision, the value must be approve or reject. reject ends the run as rejected (remaining steps are not run). approve continues the run. Cancel remains a separate confirmed action (cancelled).
Resolve body
{ "text": "optional when required fields are set", "fields": { "decision": "approve", "name": "value" } }
When the step has no requiredFields, text is required and must be non-empty. When the step lists requiredFields, each of those fields is required and must be non-empty. If decision is required, it must be approve or reject.
POST /runs/{runId}/cancel uses an empty JSON body. It is valid only while status is waiting_human.
| Outcome | Behavior |
|---|---|
Resolve with decision=approve, or without a decision field | Run continues to later steps (or succeeded if none remain) |
Resolve with decision=reject (when decision is in requiredFields) | Run ends as rejected; remaining steps are not run |
| Cancel | Run ends as cancelled; remaining steps are not run |
| Resolve or cancel when not waiting | 409 |
Definition shape
Linear steps array (order is the graph). Example:
{
"name": "content-staging-review",
"enabled": true,
"steps": [
{
"id": "draft",
"kind": "agent",
"agentKey": "<agent-uuid>",
"input": { "text": "Review staging draft and decide.", "artifact_refs": [] }
},
{
"id": "generate",
"kind": "invoke",
"connector": "Fal",
"ref": "image.generate",
"params": {
"prompt": { "$from": { "step": "draft", "output": "prompt" } },
"libraryId": "media"
}
},
{
"id": "publish",
"kind": "invoke",
"connector": "lincolncannonco",
"ref": "assets.libraries.files.publish",
"params": {
"pathParams": {
"id": "media",
"fileId": { "$from": { "step": "generate", "output": "fileId" } }
},
"body": {}
},
"onError": { "mode": "fail" }
},
{
"id": "review",
"kind": "human",
"prompt": "Do you approve promoting this content to the public site?",
"requiredFields": [],
"notifyEmail": "person@example.com"
}
]
}
Starting a run freezes that definition revision on the run (including each invoke step’s catalog schema hash). Later edits to the definition or catalog do not change in-flight runs. Set enabled to false to prevent new runs without deleting the definition.
When you start a run with Bearer and/or an API key, house invoke steps reuse those initiator credentials for the run (both are sealed when present). If a sealed Bearer expires while the run is waiting (for example after waiting_human), later house invokes use the sealed API key when one was present; otherwise they use a registered API key for your account (not a Lincoln Cannon LLC house/system key). Trigger-started and other system starts also use a registered API key for your account — your account must have one for those house invokes to succeed. Definition params cannot set customerKey or auth headers; the run tenant is fixed at start.
Step kinds
| Kind | Customer-visible behavior |
|---|---|
agent | Service invokes your agent for a structured turn; the step may run as long as work is progressing. Results and artifact references attach to the run. |
invoke | Named catalog call. House connector lincolncannonco + dotted ref (OpenAPI / MCP id). Optional onError. Nested start-run invokes are capped (depth and fan-out). |
human | Run enters waiting_human. Lincoln Cannon LLC emails the account mailbox (or notifyEmail). Complete it from that message, from the linked page, or with POST …/resolve. |
Graphs are linear (no parallel branches).
Run status (intended)
| Status | Meaning |
|---|---|
queued | Accepted; runner not yet claimed |
running | A step is in progress |
waiting_human | Paused on a human step |
succeeded / failed / cancelled / rejected | Terminal (rejected is a human decision=reject on a linear run) |
Errors
| Status | Typical meaning |
|---|---|
| 401 | Authorization required, or invalid / expired Bearer (present Bearer is not ignored in favor of an API key) |
| 403 | Access denied for this account |
| 404 | Definition or run not found; agent key not owned by your account |
| 409 | Definition disabled on start; resolve or cancel when the run is not waiting_human |
| 400 | Invalid definition (steps, size, invoke params), invalid notifyEmail, or resolve body |
| 503 | Workflow temporarily unavailable, or start/resume failed — contact your integration contact |
Confirm availability and any account-specific limits with your Lincoln Cannon LLC integration contact.
Related customer docs
- Agent API Integration Guide — chat, request, agent messaging
- SSO Integration Guide — OAuth / Hosted UI tokens
- Knowledge API Integration Guide — knowledge sources (staging drafts may use knowledge tools before a workflow run)
- Assets API Integration Guide — media libraries