Single Documents
Basic document query
Query by Document ID
window.fetch('https://api.cmft.io/v1/<repo>/documents/<documentID>', {
method: 'get',
headers: {
'Content-Type': 'application/json',
'Authorization': '<apiKey>'
}
})
.then(function (response) { return response.json() })
.then(function (data) {
console.log(data)
})curl 'https://api.cmft.io/v1/<repo>/documents/<documentID>' \
-H 'Authorization: <apiKey>'https://api.cmft.io/v1/<repo>/documents/<documentID>?key=<apiKey>Query by Document Alias
window.fetch('https://api.cmft.io/v1/<repo>/alias/<myAliasName>', {
method: 'get',
headers: {
'Content-Type': 'application/json',
'Authorization': '<apiKey>'
}
})
.then(function (response) { return response.json() })
.then(function (data) {
console.log(data)
})curl 'https://api.cmft.io/v1/<repo>/alias/<myAliasName>' \
-H 'Authorization: <apiKey>'https://api.cmft.io/v1/<repo>/alias/<myAliasName>?key=<apiKey>Sample Request by ID
Path Parameters
Name
Type
Description
Including Assets for Documents
Sample Request with Assets included
Path Parameters
Name
Type
Description
Response Shaping: Document query with reduced fields
Sample Request
Path Parameters
Name
Type
Description
Document query with localisation
Last updated