Skip to content

An account's owner, kind, custody and status: for whoever reaches it, the operator, the identities principal, and a holder of a grant over its owner (amendment 0028).

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

A did:aledgent identifier.

The answer, from one consistent view (REQ-QR-2).

Media typeapplication/json

account(account) (SPEC §8.2, amendment 0028): an account as the book holds it, so a service can check whose it is before it adopts it.

object
account
required

The account, did:-shaped.

string
closed
required

Whether it is closed for good: status is closed.

boolean
custody
required
One of:

The operator may act, under bounded operator authority.

string
Allowed value: delegated
kind
required
One of:

Never negative.

string
Allowed value: customer
opened_at
required

When it was opened, in milliseconds since the epoch.

integer format: uint64
owner
required

The one identity that owns it, did:aledgent:id:….

string
status
required
One of:

It transacts.

string
Allowed value: active
Example
{
"custody": "delegated",
"kind": "customer",
"status": "active"
}

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)).