Ga naar inhoud

Get a disclosure

GET
/api/v1/disclosures/{id}
curl --request GET \
--url https://example.com/api/v1/disclosures/example \
--cookie bl_authority_session=<bl_authority_session>

With the evidence bundle.

id
required
string

The id of the disclosure.

OK.

Media typeapplication/json

A disclosure: documents the JSON built in [summary_json].

object
id
required
string
did
required

The participant that disclosed.

string
participant_did
required
string
participant_name
string | null
process_id
required

The negotiation or transfer the evidence is about.

string
reason
required
string
consent
required

The consent record in the bundle that names the authority as recipient.

object
received_at
required
string format: date-time
bundle
One of:
null

Example generated

{
"id": "example",
"did": "example",
"participant_did": "example",
"participant_name": "example",
"process_id": "example",
"reason": "example",
"consent": {},
"received_at": "2026-04-15T12:00:00Z",
"bundle": {
"format": "example",
"participant_did": "example",
"environment": "example",
"process_id": "example",
"created_at": "2026-04-15T12:00:00Z",
"summary": {},
"entries": [
{
"seq": 1,
"id": "example",
"at": "2026-04-15T12:00:00Z",
"kind": "example",
"process_id": "example",
"counterparty_did": "example",
"summary": "example",
"payload": "example",
"payload_sha256": "example",
"counterparty_signature": "example",
"meta": {},
"content_hash": "example",
"prev_hash": "example",
"entry_hash": "example",
"signature": "example"
}
],
"leaves": [
{
"leaf": {
"id": "example",
"at": "2026-04-15T12:00:00Z",
"kind": "example",
"process_id": "example",
"counterparty_did": "example",
"content": {},
"window_seq": 1,
"leaf_index": 1
},
"tree_size": 1,
"proof": [
"example"
]
}
],
"chain": [
{
"seq": 1,
"prev_hash": "example",
"content_hash": "example",
"entry_hash": "example"
}
],
"anchors": [
{
"id": "example",
"seq": 1,
"head": "example",
"anchored_at": "2026-04-15T12:00:00Z",
"receipt": "example",
"qualified": "example"
}
],
"authority_did": "example",
"did_documents": [
{}
],
"did_histories": [
{}
],
"consent": "example",
"signature": "example"
}
}

No valid session, DPoP-bound token or API key.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

The caller lacks the role this operation needs; or a change with the session cookie came from a page of another site (cross_site_request, decisions #83).

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

Not found.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}