Unreleased documentation. These pages follow the main branch and can change before the next release. For supported guidance, use v0.44.0.
List the documents the caller holds in custody or reserved.
const url = 'https://example.com/v1/documents?limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/documents?limit=50' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The opaque cursor a previous page returned as nextCursor.
Items per page.
Responses
Section titled “Responses”The operation succeeded.
One page of the documents a caller holds in custody or reserved, oldest first.
object
One document as its custodian reads it.
object
What the reading caller may do to this document now, in vocabulary order.
The custodian a reservation names: a subject at the configured token issuer.
object
An identifier another system issues, written exactly as its issuer gives it.
The label the reserving caller chose, as written. Untrusted.
The policy a document version was reserved under, frozen at reservation: its id, its authored version, and the digest of its whole authored body.
object
A SHA-256 digest: sha256: followed by 64 lowercase hex digits.
A local identifier: a lowercase letter, then up to 63 lowercase letters, digits, _, or -.
One document version: its declared and verified content, and the one status a client acts on.
object
A SHA-256 digest: sha256: followed by 64 lowercase hex digits.
Reserved, or the reservation lapsed: no content is stored.
Content stored; no standing approval.
Approved under the current verifier binding and releasable.
Approved once, but not releasable now.
The verifier rejected the content.
The custodian asked for removal; the bytes await erasure.
The bytes are erased; the record remains.
The cursor of the next page; absent on the last page.
Example
{ "items": [ { "actions": [ "download" ], "version": { "status": "awaiting-content" } } ]}A problem: request.invalid.
object
Example
{ "code": "request.invalid", "type": "https://id.registrystack.org/problems/registry-documents/authentication/refused"}A problem: authentication.refused.
object
Example
{ "code": "authentication.refused", "type": "https://id.registrystack.org/problems/registry-documents/authentication/refused"}Headers
Section titled “Headers”The bearer challenge.
A problem: profile.not-authorized.
object
Example
{ "code": "profile.not-authorized", "type": "https://id.registrystack.org/problems/registry-documents/authentication/refused"}A problem: request.method-not-allowed.
object
Example
{ "code": "request.method-not-allowed", "type": "https://id.registrystack.org/problems/registry-documents/authentication/refused"}A problem: service.unavailable.
object
Example
{ "code": "service.unavailable", "type": "https://id.registrystack.org/problems/registry-documents/authentication/refused"}Headers
Section titled “Headers”Whole seconds to wait before trying again.
Cookies on Registry Stack
We use optional cookies to understand how you use the main Registry Stack website and this documentation. If you contact us, we may link this activity to your enquiry. You can change your choice at any time. Read the privacy policy.
Your browser asks sites not to track you, so optional tracking stays off.
We could not use or save that choice. Optional tracking remains off.