Skip to content

The institution's workflows (latest signed version of each) and the cases running them

GET
/v1/issuers/{id}/workflows
curl --request GET \
--url https://api.hardstate.net/v1/issuers/example/workflows

A workflow is a workflow.define record whose public.workflow is a WorkflowDefinition; each new version is signed on top of the last, and cases keep the version they opened with. A case runs a workflow when its opening step says so in public.workflow (and public.wfv, the version), or when its number matches one of the workflow’s cases patterns. Cases are those with a step since since (default: 3 days ago). With after (an entry number), only the steps past it, for polling. To design one in plain words, see https://docs.hardstate.net/agents/ (the HardState MCP server).

id
required
string
/^[a-z0-9][a-z0-9-]{1,62}[a-z0-9]$/
since
string

ISO 8601

after
integer

Only the steps after this entry number

OK

Media typeapplication/json
object
issuer
string
since
string
head

The institution’s last entry when this was read

integer
workflows
Array
object
id
required
string
/^[a-z0-9][a-z0-9-]{0,47}$/
name
required
string
summary

One line

string
description

The process explained for someone outside: what it is for, who takes part, how to read it (paragraphs separated by a blank line)

string
<= 2000 characters
dept

The department it belongs to

string
version
required
integer
>= 1
archived

Out of service: its history and cases stay verifiable

boolean
cases

SQL LIKE patterns of case numbers it claims

Array<string>
<= 4 items
intake

Opened from outside: the institution’s public page offers it, and each case is numbered PREFIX-YEAR-N

object
prefix
required
string
/^[A-Z][A-Z0-9]{0,5}$/
anonymous

Whoever opens it may leave no way to be reached

boolean
stages
required
Array<object>
>= 1 items <= 60 items
object
id
required
string
name
required
string
types
required

Record types its steps carry (alternatives)

Array<string>
>= 1 items
by
required

Who signs it

string
Allowed values: person agent system
role
string
optional

A detour off the main line

boolean
repeat

Happens again and again

boolean
place

Its steps declare where they happened

boolean
about

What happens at this stage, in one line, for someone outside

string
<= 240 characters
due

How long it may take, counted from the day the case reached stage from (the first stage when not given). Anyone checks it against the log’s times

object
days
required
integer
>= 1 <= 3660
business

Business days (Monday to Friday)

boolean
from

An earlier stage’s id

string
links
Array<object>
object
to
required

Another workflow’s id

string
from

The stage it hands over from

string
label
required
string
hash
string
/^[0-9a-f]{64}$/
seq
integer
ts
string
actor
string
cases
Array<object>
object
case
string
workflow
string
version
integer
steps
Array<object>
object
seq
integer
type
string
ts
string
actor
string
hash
string
/^[0-9a-f]{64}$/

Example

{
"workflows": [
{
"stages": [
{
"by": "person"
}
]
}
]
}

Error

Media typeapplication/json
object
error
string

Example generated

{
"error": "example"
}

HardState is a Zevlat Intelligence venture. © 2026 Zevlat Intelligence.