---
title: "A download URL for a note's attachment"
method: GET
path: "/business/knowledge-hubs/{hubId}/attachments/{noteId}"
tags: ["Knowledge hubs"]
---

# A download URL for a note's attachment

`GET /business/knowledge-hubs/{hubId}/attachments/{noteId}`

## Request

- Base URL: `https://api.tryfuse.ai/api/v1`
- URL: `https://api.tryfuse.ai/api/v1/business/knowledge-hubs/{hubId}/attachments/{noteId}`
- Auth: HTTP basic

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:
- `404` `KNOWLEDGE_HUB_NOT_FOUND` — No hub with that id, it was deleted, or it belongs to another team.
- `404` `NOTE_NOT_FOUND` — No note with that id on this hub.
- `404` `ATTACHMENT_NOT_FOUND` — The note has no document attached.
- `422` `VALIDATION_FAILED` — hubId or noteId is not a 24-character hex id.
- `429` `RATE_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.

## Path parameters

- `hubId` string, required: 24-character hex id of the knowledge hub (from GET /business/knowledge-hubs).
- `noteId` string, required: 24-character hex id of the note (notes[].id in GET /business/knowledge-hubs/{hubId}).

## Response `200`

Success

- object
  - `attachment` object, required
    - `noteId` string, required
    - `filename` string, nullable, required
    - `contentType` 'application/pdf' | 'text/plain' | 'text/csv' | 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/rtf' | 'null', nullable, required
    - `byteSize` integer, nullable, required
    - `downloadUrl` string, uri, nullable, required: Presigned URL, valid for one hour.

## Other responses

- `400`: Error
- `401`: Error
- `402`: Error
- `403`: Error
- `404`: Error
- `409`: Error
- `422`: Error
- `429`: Error
- `500`: Error

---

[API](https://skmtc.dev/fuseai/apis/fuse-business-api.md) · [All operations](https://skmtc.dev/fuseai/apis/fuse-business-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fuseai/apis/fuse-business-api/revisions/50d95e0536f4?raw)
