Fetches a document by id from Studio and applies the transformation rule tagged {projectId} to produce XML. If the rule has addBinaryFile enabled, the binary attachment is inlined as base64.
Security
OAuth2(Required scopes: documents.read)
- API EUhttps://api.cloud.hypatos.ai/v2/document-xml/documents/{id}
- API UShttps://api.cloud.hypatos.com/v2/document-xml/documents/{id}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/document-xml/documents/{id}
curl -i -X GET \
'https://api.cloud.hypatos.ai/v2/document-xml/documents/{id}?projectId=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
<root><document id="...">
<attachment contentType="application/pdf">BASE64...</attachment>
</document>
</root>