API reference › WorkStreams
Describe a Workstream by Id, Slug, or Permakey
POST/api/v1/skills/workstream.describe/invoke
Shows the full definition of one workstream, so an accountant can check what it does before running it. It needs the workstream_id, which can be a UUID, a slug or the seven-character permakey. It returns the name, status and execution mode, the inputs a run needs and the number of steps.
Body parameters
workstream_idstringRequired
UUID, slug, or 7-char permakey. The adapter resolves it.
Example 7f3c8d9e-1a2b-4c5d-8e6f-901234567890
Returns
Skill executed successfully
skillstringRequired
Example workstream_describe
outputobjectRequired
Full definition of a workstream — metadata + step graph.
output.stub_fieldsarray of strings
output.warningsarray of strings
output.workstream_idstring · uuid
Stable internal id.
output.permakeystring · default
7-char human-friendly id.
output.namestring · default
Display name.
output.descriptionstring
One-paragraph overview.
output.execution_modeenum · default inline
inline (Temporal declarative) or containerized (Fly.io agentic).inlinecontainerized
output.statusenum · default draft
Lifecycle state.
draftactivearchived
output.step_countinteger · default 0
Number of declared steps in the workstream graph.
output.inputs_requiredarray of objects
Declaration of every input the caller can or must supply via
runtime_vars when starting a cycle. Each entry follows the WorkstreamInputSpec shape (name, type, required, description, default) but is wire-typed as a JSON object for backward compatibility with stored authoring metadata. Empty for client-agnostic workstreams that take no runtime inputs.output.errorstringDeprecated
output.error_envelope
Canonical structured error. Set when describe failed (e.g. workstream not found, FGA denied). The legacy
error string field is populated alongside it for back-compat.correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALID Authentication required
403PERMISSION.CAPABILITY_DENIED Insufficient permissions
404SKILL.NOT_FOUND Skill not found
422VALIDATION.INVALID_FORMAT Validation error
429RATE_LIMIT.USER Rate limit exceeded
5XXINTERNAL.UNKNOWN Internal server error
curl https://uk.heyarchie.com/api/v1/skills/workstream.describe/invoke \ -X POST \ -H "Authorization: Bearer sk_..." \ -H "Content-Type: application/json" \ -d '{ "workstream_id": "7f3c8d9e-1a2b-4c5d-8e6f-901234567890" }'
from heyarchie import Archie archie = Archie(api_key="sk_...") result = archie.skills.invoke( "workstream.describe", workstream_id="7f3c8d9e-1a2b-4c5d-8e6f-901234567890", ) print(result)
import { Archie } from "heyarchie";
const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("workstream.describe", {
"workstream_id": "7f3c8d9e-1a2b-4c5d-8e6f-901234567890"
});
console.log(result);Response
{
"skill": "workstream_describe",
"output": {
"description": "Monthly close checklist for Northwind Trading Ltd.",
"execution_mode": "inline",
"inputs_required": [
{
"description": "Month to close, as YYYY-MM.",
"name": "period",
"required": true,
"type": "string"
}
],
"name": "Month-end close",
"permakey": "k7m2p9x",
"status": "active",
"step_count": 6,
"workstream_id": "5e9a1c73-2b6d-4f80-8d14-a7c3e0b92f65"
},
"correlation_id": "<string>"
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}Every response also carries X-Request-ID. Quote it if you write to us about a call.