{"openapi":"3.1.0","info":{"title":"HubSpot Files (BYOK) API","version":"0.1.0","description":"HubSpot Files (BYOK) lets an AI assistant read your own HubSpot Files data through the HubSpot Files API with a key you supply (HubSpot private app access token (scope: files)). Read-only: 6 tools (search_files, list_recently_updated_files, find_large_files, get_file, search_folders, get_folder). The BYOK key travels with each request, is used for that one call only and is never stored, logged or...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-hubspot-files.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-hubspot-files/docs"},"termsOfService":"https://connectorbay.com/byok-hubspot-files/terms"},"servers":[{"url":"https://byok-hubspot-files.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-hubspot-files/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/search_files":{"post":{"operationId":"search_files","summary":"Search file manager files by name, type, extension or folder path, newest or biggest first; returns metadata only, not f","description":"Search file manager files by name, type, extension or folder path, newest or biggest first; returns metadata only, not file content. Use for \"Find PNG logo files in the HubSpot file manager\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many items to return (1 to 100).","title":"Limit"},"after":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging cursor: paging.next.after from the previous answer. Leave out for the first page.","title":"After"},"sort":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Field to sort by, for example 'name', 'size' or 'updatedAt'; prefix with '-' for descending.","title":"Sort"},"name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Match files whose name equals this text (name without extension).","title":"Name"},"path":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Match files at this exact path, for example '/brand/logo.png'.","title":"Path"},"extension":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Match files with this extension, for example 'pdf' or 'png'.","title":"Extension"},"type":{"anyOf":[{"enum":["IMG","DOCUMENT","AUDIO","MOVIE","OTHER"],"type":"string"},{"type":"null"}],"default":null,"description":"File type group: IMG, DOCUMENT, AUDIO, MOVIE, OTHER.","title":"Type"}},"title":"search_filesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_recently_updated_files":{"post":{"operationId":"list_recently_updated_files","summary":"List files changed since a date, newest first, with name, type, size and path. Use for \"Which files in the HubSpot file ","description":"List files changed since a date, newest first, with name, type, size and path. Use for \"Which files in the HubSpot file manager changed this week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"updated_at_gte":{"description":"Only files updated at or after this ISO 8601 time.","maxLength":40,"title":"Updated At Gte","type":"string"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many items to return (1 to 100).","title":"Limit"},"after":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging cursor: paging.next.after from the previous answer. Leave out for the first page.","title":"After"},"sort":{"anyOf":[{"enum":["-updatedAt","updatedAt"],"type":"string"},{"type":"null"}],"default":"-updatedAt","description":"Sort order.","title":"Sort"}},"required":["updated_at_gte"],"title":"list_recently_updated_filesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/find_large_files":{"post":{"operationId":"find_large_files","summary":"List files at least a given size in bytes, largest first, to find storage hogs. Use for \"Which files in HubSpot are bigg","description":"List files at least a given size in bytes, largest first, to find storage hogs. Use for \"Which files in HubSpot are bigger than 10 MB\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"size_gte":{"description":"Only files at least this many bytes (10485760 is 10 MB).","maximum":10000000000,"minimum":0,"title":"Size Gte","type":"integer"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many items to return (1 to 100).","title":"Limit"},"after":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging cursor: paging.next.after from the previous answer. Leave out for the first page.","title":"After"},"sort":{"anyOf":[{"enum":["-size","size"],"type":"string"},{"type":"null"}],"default":"-size","description":"Sort order.","title":"Sort"}},"required":["size_gte"],"title":"find_large_filesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_file":{"post":{"operationId":"get_file","summary":"Get one file's metadata by id: name, type, size, dimensions, path, access level and public URL. Does not download the fi","description":"Get one file's metadata by id: name, type, size, dimensions, path, access level and public URL. Does not download the file. Use for \"What are the details of HubSpot file 90001\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"file_id":{"description":"Id of the file (a numeric string such as '90001').","maxLength":200,"title":"File Id","type":"string"}},"required":["file_id"],"title":"get_fileArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_folders":{"post":{"operationId":"search_folders","summary":"Search file manager folders by name or path; returns name, path and parent folder id. Use for \"What folders exist in the","description":"Search file manager folders by name or path; returns name, path and parent folder id. Use for \"What folders exist in the HubSpot file manager\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many items to return (1 to 100).","title":"Limit"},"after":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging cursor: paging.next.after from the previous answer. Leave out for the first page.","title":"After"},"sort":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Field to sort by, for example 'name', 'size' or 'updatedAt'; prefix with '-' for descending.","title":"Sort"},"name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Match folders whose name equals this text.","title":"Name"},"path":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Match the folder at this exact path, for example '/brand'.","title":"Path"}},"title":"search_foldersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_folder":{"post":{"operationId":"get_folder","summary":"Get one folder by id: name, path, parent folder id and dates. Use for \"What is HubSpot folder 55\".","description":"Get one folder by id: name, path, parent folder id and dates. Use for \"What is HubSpot folder 55\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"folder_id":{"description":"Id of the folder (a numeric string such as '55').","maxLength":200,"title":"Folder Id","type":"string"}},"required":["folder_id"],"title":"get_folderArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}