A download URL for a note's attachment
curl --request GET \
--url https://api.tryfuse.ai/api/v1/business/knowledge-hubs/{hubId}/attachments/{noteId} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.tryfuse.ai/api/v1/business/knowledge-hubs/{hubId}/attachments/{noteId}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.tryfuse.ai/api/v1/business/knowledge-hubs/{hubId}/attachments/{noteId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"attachment": {
"noteId": "68a1f8509c41d20014b3ee55",
"filename": "positioning.pdf",
"contentType": "application/pdf",
"byteSize": 284913,
"downloadUrl": "https://kompassai-uploaded-files.s3.us-east-1.amazonaws.com/knowledge-hub-attachments/68a1f8509c41d20014b3ee55-positioning.pdf?X-Amz-Expires=3600&X-Amz-Signature=1f0b4c2d"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Knowledge hubs
A download URL for a note's attachment
Returns a presigned download URL for the document attached to a note, together with the stored file name, MIME type and size. The URL is valid for one hour; request a fresh one when it expires. Readable by you and your teammates. A note that has no document answers 404 ATTACHMENT_NOT_FOUND, and a note id the hub does not have answers 404 NOTE_NOT_FOUND.
Errors:
404KNOWLEDGE_HUB_NOT_FOUND— No hub with that id, it was deleted, or it belongs to another team.404NOTE_NOT_FOUND— No note with that id on this hub.404ATTACHMENT_NOT_FOUND— The note has no document attached.422VALIDATION_FAILED— hubId or noteId is not a 24-character hex id.429RATE_LIMITED— More than 30 knowledge-hub/campaign requests in a minute (or 1000 in a day). Knowledge hubs share the campaigns bucket.
Requires one of the following token scopes: campaigns.
GET
/
business
/
knowledge-hubs
/
{hubId}
/
attachments
/
{noteId}
A download URL for a note's attachment
curl --request GET \
--url https://api.tryfuse.ai/api/v1/business/knowledge-hubs/{hubId}/attachments/{noteId} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.tryfuse.ai/api/v1/business/knowledge-hubs/{hubId}/attachments/{noteId}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.tryfuse.ai/api/v1/business/knowledge-hubs/{hubId}/attachments/{noteId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"attachment": {
"noteId": "68a1f8509c41d20014b3ee55",
"filename": "positioning.pdf",
"contentType": "application/pdf",
"byteSize": 284913,
"downloadUrl": "https://kompassai-uploaded-files.s3.us-east-1.amazonaws.com/knowledge-hub-attachments/68a1f8509c41d20014b3ee55-positioning.pdf?X-Amz-Expires=3600&X-Amz-Signature=1f0b4c2d"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Authorizations
Your API token (af_…) as the Basic-auth username, with an empty password.
Path Parameters
24-character hex id of the knowledge hub (from GET /business/knowledge-hubs).
24-character hex id of the note (notes[].id in GET /business/knowledge-hubs/{hubId}).
Response
Success
Show child attributes
Show child attributes