Skip to content

An operation's state, with its class.

GET
/v1/operations/{reference}
curl --request GET \
--url https://example.com/v1/operations/example \
--header 'Authorization: Bearer <token>'
reference
required
string

A did:aledgent identifier.

The operation’s state, with its class (REQ-OP-7).

Media typeapplication/json

operation(reference) (SPEC §8.2, F-011): the state the core holds, with its class (REQ-OP-7), its deadline, evidence, outcome, refusal and postings. A command decided and complete at once has no lifecycle state and is terminal.

object
class
Any of:
One of:

Terminal: the outcome is final.

string
Allowed value: terminal
closed_at

When it reached its terminal state.

integer | null format: uint64
command

The command that opened it, where recorded.

string | null
deadline

Its deadline, where not terminal.

integer | null format: uint64
error
Any of:
One of:
ERR-NotAuthorised
object
description
required
Allowed value: The initiating principal holds no authority that covers this operation, account, asset or bound
error
required
Allowed value: ERR-NotAuthorised
evidence

The digests of the evidence its transitions rest on, hex.

Array<string>
kind

Its lifecycle kind, where it has a lifecycle.

string | null
operation_reference
required

The operation reference.

string
outcome

The terminal state, where terminal.

string | null
postings

The posting sequence numbers it appended.

Array<integer>
reference
Any of:

Pass-through data (REQ-PO-5): any one JSON value, at most 1024 bytes of UTF-8 as sent. Kept and echoed exactly as sent; never read by aledgent. Over the bound, or not one JSON value, the command is refused with ERR-MalformedCommand.

state

Its state, where it has a lifecycle.

string | null
terminal
required

Whether it is terminal. false for every state that is not.

boolean
Example
{
"class": "terminal",
"error": {
"description": "The initiating principal holds no authority that covers this operation, account, asset or bound",
"error": "ERR-NotAuthorised"
}
}

Refused, with the named condition. The status is the alternative’s x-http-status.

Media typeapplication/json
One of:
ERR-NotAuthorised
object
description
required
Allowed value: The initiating principal holds no authority that covers this operation, account, asset or bound
error
required
Allowed value: ERR-NotAuthorised
Example
{
"description": "The initiating principal holds no authority that covers this operation, account, asset or bound",
"error": "ERR-NotAuthorised"
}

Refused, with the named condition. The status is the alternative’s x-http-status.

Media typeapplication/json
One of:
ERR-NotAuthorised
object
description
required
Allowed value: The initiating principal holds no authority that covers this operation, account, asset or bound
error
required
Allowed value: ERR-NotAuthorised
Example
{
"description": "The initiating principal holds no authority that covers this operation, account, asset or bound",
"error": "ERR-NotAuthorised"
}
Retry-After
integer

On ERR-DecisionUnavailable (503): seconds to wait before retrying with the same client key (DEC-27 (g)).