Unreleased documentation. These pages follow the main branch and can change before the next release. For supported guidance, use v0.44.0.
List the policies the caller may place documents under, with their bounds.
const url = 'https://example.com/v1/document-policies';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/document-policies \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The operation succeeded.
The policies the caller may place documents under, by id.
object
One policy the caller may place documents under, with the restrictions a client checks before it uploads.
object
A local identifier: a lowercase letter, then up to 63 lowercase letters, digits, _, or -.
Example generated
{ "items": [ { "allowedContentTypes": [ "example" ], "grantExpiryHours": 1, "id": "example", "label": "example", "maximumDocumentBytes": 1, "maximumGrantExpiryHours": 1, "version": "example" } ]}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.