> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fuseai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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:
- `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.



## OpenAPI

````yaml /openapi.json get /business/knowledge-hubs/{hubId}/attachments/{noteId}
openapi: 3.1.0
info:
  title: Fuse Business API
  version: 1.0.0
  description: >-
    External API for lists, campaigns, prospect search and contacts.
    Authenticate with your API token as HTTP Basic. All paths are under /api/v1.
servers:
  - url: https://api.tryfuse.ai/api/v1
    description: Production
security:
  - basicAuth: []
tags:
  - name: Lists
  - name: Custom columns
  - name: Smart columns
  - name: Exports
  - name: Campaigns
  - name: Knowledge hubs
  - name: Analytics
  - name: Website intent
  - name: Account
  - name: Prospect search
  - name: Campaign steps
  - name: Scheduled sends
  - name: Campaign templates
  - name: Agents
  - name: Research
  - name: Company search
  - name: Saved searches
  - name: Folders
  - name: Contacts
paths:
  /business/knowledge-hubs/{hubId}/attachments/{noteId}:
    get:
      tags:
        - Knowledge hubs
      summary: A download URL for a note's attachment
      description: >-
        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.
      operationId: getKnowledgeHubAttachment
      parameters:
        - name: hubId
          in: path
          required: true
          description: >-
            24-character hex id of the knowledge hub (from GET
            /business/knowledge-hubs).
          schema:
            type: string
            description: >-
              24-character hex id of the knowledge hub (from GET
              /business/knowledge-hubs).
        - name: noteId
          in: path
          required: true
          description: >-
            24-character hex id of the note (notes[].id in GET
            /business/knowledge-hubs/{hubId}).
          schema:
            type: string
            description: >-
              24-character hex id of the note (notes[].id in GET
              /business/knowledge-hubs/{hubId}).
      responses:
        '200':
          description: Success
          headers:
            RateLimit-Limit:
              schema:
                type: integer
              description: Requests permitted in the current window.
            RateLimit-Remaining:
              schema:
                type: integer
              description: Requests remaining in the current window.
            RateLimit-Reset:
              schema:
                type: integer
              description: Seconds until the current window resets.
          content:
            application/json:
              schema:
                type: object
                required:
                  - attachment
                properties:
                  attachment:
                    type: object
                    required:
                      - noteId
                      - filename
                      - contentType
                      - byteSize
                      - downloadUrl
                    properties:
                      noteId:
                        type: string
                      filename:
                        type:
                          - string
                          - 'null'
                      contentType:
                        type:
                          - string
                          - 'null'
                        enum:
                          - application/pdf
                          - text/plain
                          - text/csv
                          - application/msword
                          - >-
                            application/vnd.openxmlformats-officedocument.wordprocessingml.document
                          - application/rtf
                          - null
                      byteSize:
                        type:
                          - integer
                          - 'null'
                      downloadUrl:
                        type:
                          - string
                          - 'null'
                        format: uri
                        description: Presigned URL, valid for one hour.
              example:
                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
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - basicAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            param:
              type:
                - string
                - 'null'
            doc_url:
              type:
                - string
                - 'null'
            request_id:
              type:
                - string
                - 'null'
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >-
        Your API token (`af_…`) as the Basic-auth username, with an empty
        password.

````