Get the document taxonomy
GET
/v1/catalogs/document-types
const url = 'http://localhost:8080/v1/catalogs/document-types';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/v1/catalogs/document-typesReturns the document taxonomy (the read-only documents.taxonomy setting) as JSON: the document types the classifier assigns to package documents and their display names. Any staff role or an API key with status:read.
Responses
Section titled “Responses”OK
Media typeapplication/json
Examplegenerated
example