Attach a new or existing file to a supported destination
Available when the file-attachment rollout is enabled for the caller’s organization. Call with a target and exactly one file source. Existing authorized Govly file references attach immediately. A new file’s metadata returns status upload_required and a 15-minute signed Govly URL. The host POSTs bytes using exactly requiredHeaders, then calls this same operation with the same target and file type upload plus uploadId. The byte request needs no OAuth header or API key. File contents never enter tool arguments. Metadata preparation creates a new pending upload on each call. Upload completion retries return the same fileId while the token is valid; reference retries return the same attachment for the same blob and target. Every retry rechecks permissions. Unattached upload blobs are scheduled for cleanup after 24 hours; attached files are retained. All MIME types are allowed; validation checks declared metadata, not file format or malware. A product_catalog target stores a quote or TR template on the caller organization’s catalog for create_product_catalog_change_request_from_attachment_source (an MCP and Govly AI tool); only the uploader can read it, and it has no Govly page. A library target accepts a numeric Library ID, me or organization. Default aliases create the Library only on completion; keep the same exact selector throughout the transfer. Library results contain a library_document fileRef and documentType for content tools, not a targetUrl.
POST
/
api
/
tools
/
v1
/
file_attachments
Attach a new or existing file to a supported destination
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Govly Developer Documentation","colors":{"primary":"#2D72D2","light":"#4C90F0","dark":"#252A31"},"logo":{"light":"https://mintcdn.com/govly/fiZJVi8g9yenM-kL/logo/light.svg?fit=max\u0026auto=format\u0026n=fiZJVi8g9yenM-kL\u0026q=85\u0026s=d66609a9754e369eff54b7f9bf198824","dark":"https://mintcdn.com/govly/fiZJVi8g9yenM-kL/logo/dark.svg?fit=max\u0026auto=format\u0026n=fiZJVi8g9yenM-kL\u0026q=85\u0026s=37d5fe8d09791ef8fe69aef6c20c5c00"},"favicon":"https://mintcdn.com/govly/ckcRaBILPVyWGu14/favicon.png?fit=max\u0026auto=format\u0026n=ckcRaBILPVyWGu14\u0026q=85\u0026s=bc8e0e5715a4f0fa93f492ef92fd0e56","api":{"mdx":{"auth":{"method":"key","name":"X-API-KEY"},"server":"https://app.govly.com"}},"navbar":{"links":[{"href":"mailto:support@govly.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.govly.com"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/govly"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"govly","hasAudioNarration":false,"actualSubdomain":"govly","customDomains":["docs.govly.com"],"gitSource":{"type":"github","owner":"govly","repo":"govly","deployBranch":"main","contentDirectory":"external_docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"agentFeedback":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af21b028da4e23f58724d4a","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"Overview","count":109},{"language":"default","tag":"Enterprise","count":99},{"language":"default","tag":"Tools API Reference","count":78},{"language":"default","tag":"Saved Searches","count":15},{"language":"default","tag":"Opportunities","count":11},{"language":"default","tag":"Workspaces","count":11},{"language":"default","tag":"Enterprise API Reference","count":9},{"language":"default","tag":"Integrations","count":9},{"language":"default","tag":"Inbox","count":8},{"language":"default","tag":"Awards","count":6}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":""}],"page":{"pagePath":"api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination","slug":"/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination","pageMetadata":{"title":"Attach a new or existing file to a supported destination","description":"Available when the file-attachment rollout is enabled for the caller's organization. Call with a target and exactly one file source. Existing authorized Govly file references attach immediately. A new file's metadata returns status upload_required and a 15-minute signed Govly URL. The host POSTs bytes using exactly requiredHeaders, then calls this same operation with the same target and file type upload plus uploadId. The byte request needs no OAuth header or API key. File contents never enter tool arguments. Metadata preparation creates a new pending upload on each call. Upload completion retries return the same fileId while the token is valid; reference retries return the same attachment for the same blob and target. Every retry rechecks permissions. Unattached upload blobs are scheduled for cleanup after 24 hours; attached files are retained. All MIME types are allowed; validation checks declared metadata, not file format or malware. A product_catalog target stores a quote or TR template on the caller organization's catalog for create_product_catalog_change_request_from_attachment_source (an MCP and Govly AI tool); only the uploader can read it, and it has no Govly page. A library target accepts a numeric Library ID, me or organization. Default aliases create the Library only on completion; keep the same exact selector throughout the transfer. Library results contain a library_document fileRef and documentType for content tools, not a targetUrl.\n","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/file_attachments","href":"/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Available when the file-attachment rollout is enabled for the caller’s organization. Call with a target and exactly one file source. Existing authorized Govly file references attach immediately. A new file’s metadata returns status upload_required and a 15-minute signed Govly URL. The host POSTs bytes using exactly requiredHeaders, then calls this same operation with the same target and file type upload plus uploadId. The byte request needs no OAuth header or API key. File contents never enter tool arguments. Metadata preparation creates a new pending upload on each call. Upload completion retries return the same fileId while the token is valid; reference retries return the same attachment for the same blob and target. Every retry rechecks permissions. Unattached upload blobs are scheduled for cleanup after 24 hours; attached files are retained. All MIME types are allowed; validation checks declared metadata, not file format or malware. A product_catalog target stores a quote or TR template on the caller organization’s catalog for create_product_catalog_change_request_from_attachment_source (an MCP and Govly AI tool); only the uploader can read it, and it has no Govly page. A library target accepts a numeric Library ID, me or organization. Default aliases create the Library only on completion; keep the same exact selector throughout the transfer. Library results contain a library_document fileRef and documentType for content tools, not a targetUrl.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Attach a new or existing file to a supported destination","description":"Available when the file-attachment rollout is enabled for the caller's organization. Call with a target and exactly one file source. Existing authorized Govly file references attach immediately. A new file's metadata returns status upload_required and a 15-minute signed Govly URL. The host POSTs bytes using exactly requiredHeaders, then calls this same operation with the same target and file type upload plus uploadId. The byte request needs no OAuth header or API key. File contents never enter tool arguments. Metadata preparation creates a new pending upload on each call. Upload completion retries return the same fileId while the token is valid; reference retries return the same attachment for the same blob and target. Every retry rechecks permissions. Unattached upload blobs are scheduled for cleanup after 24 hours; attached files are retained. All MIME types are allowed; validation checks declared metadata, not file format or malware. A product_catalog target stores a quote or TR template on the caller organization's catalog for create_product_catalog_change_request_from_attachment_source (an MCP and Govly AI tool); only the uploader can read it, and it has no Govly page. A library target accepts a numeric Library ID, me or organization. Default aliases create the Library only on completion; keep the same exact selector throughout the transfer. Library results contain a library_document fileRef and documentType for content tools, not a targetUrl.\n","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/file_attachments","href":"/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["File Attachments"],"operationId":"attach_file","summary":"Attach a new or existing file to a supported destination","description":"Available when the file-attachment rollout is enabled for the caller's organization. Call with a target and exactly one file source. Existing authorized Govly file references attach immediately. A new file's metadata returns status upload_required and a 15-minute signed Govly URL. The host POSTs bytes using exactly requiredHeaders, then calls this same operation with the same target and file type upload plus uploadId. The byte request needs no OAuth header or API key. File contents never enter tool arguments. Metadata preparation creates a new pending upload on each call. Upload completion retries return the same fileId while the token is valid; reference retries return the same attachment for the same blob and target. Every retry rechecks permissions. Unattached upload blobs are scheduled for cleanup after 24 hours; attached files are retained. All MIME types are allowed; validation checks declared metadata, not file format or malware. A product_catalog target stores a quote or TR template on the caller organization's catalog for create_product_catalog_change_request_from_attachment_source (an MCP and Govly AI tool); only the uploader can read it, and it has no Govly page. A library target accepts a numeric Library ID, me or organization. Default aliases create the Library only on completion; keep the same exact selector throughout the transfer. Library results contain a library_document fileRef and documentType for content tools, not a targetUrl.\n","requestBody":"4d83bfdd-c975-4bbf-8bea-94811e5731fd","responses":{"200":"e4977fc4-47f7-45f1-ada5-8d24d31277ae","401":"50453158-1a40-4721-bd41-38d4d1e04dde","403":"0ec8b611-fb5b-47db-94f9-912b67e3799c","404":"9e653e1f-8b32-4abf-979f-4a361f9b04e1","422":"44394afd-fec8-42d1-9668-8011990a99ef","429":"7014d0b4-4b8d-47cf-91ce-5add4abe67e9","503":"494ccb06-7a0e-47be-846a-bb9272a97f52"},"method":"post","type":"path","servers":["431047c8-0434-446c-b875-ace9e6957c7d"],"security":["1e3d4134-78b6-49ac-b82d-e6c4ac056e8e","d57ba6ed-7bd4-4d90-88fc-2417e5ee121d"],"path":"/api/tools/v1/file_attachments","baseUrlOptions":["https://app.govly.com"],"title":"Attach a new or existing file to a supported destination","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["target","file"],"properties":{"target":{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["workspace","workspace_comment","product_catalog","workflow","library"],"description":"Explicitly supported attachment destination. Comments must already exist and require edit permission. product_catalog is a catalog owned by the caller's organization. library is an explicitly selected authorized Library.\n","isRequired":true,"uniqueKey":"target.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^(?:[1-9][0-9]*|me|organization)$","description":"Target record ID. Pending uploads cannot be redirected to another target. Required except for product_catalog, where it may be omitted when the organization has one catalog. Responses always carry the resolved id. Only library accepts me and organization aliases; completion requires the original selector, not a replacement numeric ID.\n","uniqueKey":"target.id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"target","typeLabel":"object"},"file":{"oneOf":[{"type":"object","required":["type","filename","contentType","fileSize","checksum"],"properties":{"type":{"type":"string","const":"new","isRequired":true,"uniqueKey":"file.oneOf.0.type","typeLabel":"string"},"filename":{"type":"string","description":"Nonempty filename, at most 255 bytes, without paths or control characters.","isRequired":true,"uniqueKey":"file.oneOf.0.filename","typeLabel":"string"},"contentType":{"type":"string","description":"MIME type without parameters, e.g. application/pdf.","isRequired":true,"uniqueKey":"file.oneOf.0.contentType","typeLabel":"string"},"fileSize":{"type":"integer","minimum":1,"maximum":52428800,"description":"Exact host-computed file size in bytes (maximum 50 MiB).","isRequired":true,"uniqueKey":"file.oneOf.0.fileSize","typeLabel":"integer"},"checksum":{"type":"string","description":"Host-computed base64 MD5 digest, never base64 file contents.","isRequired":true,"uniqueKey":"file.oneOf.0.checksum","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"file.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","uploadId"],"properties":{"type":{"type":"string","const":"upload","isRequired":true,"uniqueKey":"file.oneOf.1.type","typeLabel":"string"},"uploadId":{"type":"string","description":"Opaque uploadId from an upload_required result; transfer bytes first and resume within 15 minutes.","isRequired":true,"uniqueKey":"file.oneOf.1.uploadId","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"file.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","fileRef"],"properties":{"type":{"type":"string","const":"reference","isRequired":true,"uniqueKey":"file.oneOf.2.type","typeLabel":"string"},"fileRef":{"type":"string","pattern":"^(session_attachment|workspace_attachment|workflow_attachment|library_document):[1-9][0-9]*$","description":"Reference to an authorized owning record, never a raw blob ID. Govly AI session references are scoped to its current session.","isRequired":true,"uniqueKey":"file.oneOf.2.fileRef","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"file.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"file","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"target":{"id":"\u003cstring>"},"file":{"type":"new","filename":"\u003cstring>","contentType":"\u003cstring>","fileSize":26214400,"checksum":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"e4977fc4-47f7-45f1-ada5-8d24d31277ae":{"description":"Pending transfer or completed attachment; inspect data.status before reporting success.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"oneOf":[{"type":"object","required":["status","target","uploadId","uploadUrl","method","requiredHeaders","expiresAt","instructions"],"properties":{"status":{"type":"string","const":"upload_required","isRequired":true,"uniqueKey":"data.oneOf.0.status","typeLabel":"string"},"target":{"type":"object","required":["id","type"],"properties":{"type":{"type":"string","enum":["workspace","workspace_comment","product_catalog","workflow","library"],"description":"Explicitly supported attachment destination. Comments must already exist and require edit permission. product_catalog is a catalog owned by the caller's organization. library is an explicitly selected authorized Library.\n","isRequired":true,"uniqueKey":"data.oneOf.0.target.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^(?:[1-9][0-9]*|me|organization)$","description":"Target record ID. Pending uploads cannot be redirected to another target. Required except for product_catalog, where it may be omitted when the organization has one catalog. Responses always carry the resolved id. Only library accepts me and organization aliases; completion requires the original selector, not a replacement numeric ID.\n","isRequired":true,"uniqueKey":"data.oneOf.0.target.id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.oneOf.0.target","typeLabel":"object"},"uploadId":{"type":"string","description":"Opaque expiring upload capability bound to the creating actor and selected target.","isRequired":true,"uniqueKey":"data.oneOf.0.uploadId","typeLabel":"string"},"uploadUrl":{"type":"string","format":"uri","description":"Signed Govly URL authorizing byte transfer without additional credentials.","isRequired":true,"uniqueKey":"data.oneOf.0.uploadUrl","typeLabel":"string\u003curi>"},"method":{"type":"string","const":"POST","isRequired":true,"uniqueKey":"data.oneOf.0.method","typeLabel":"string"},"requiredHeaders":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"data.oneOf.0.requiredHeaders.additionalProperties","typeLabel":"string"},"description":"Send these header names/values unchanged, including application/octet-stream and exact Content-Length. No OAuth/API-key header or multipart body.","isRequired":true,"uniqueKey":"data.oneOf.0.requiredHeaders","typeLabel":"object"},"expiresAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.oneOf.0.expiresAt","typeLabel":"string\u003cdate-time>"},"instructions":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.0.instructions","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"object","required":["status","fileId","fileRef","target","targetUrl","workspaceId","workspaceUrl","filename","contentType","byteSize","textExtractStatus"],"properties":{"status":{"type":"string","const":"attached","isRequired":true,"uniqueKey":"data.oneOf.1.status","typeLabel":"string"},"fileId":{"type":"string","description":"Workspace attachment ID, usable with document_read/document_download.","isRequired":true,"uniqueKey":"data.oneOf.1.fileId","typeLabel":"string"},"fileRef":{"type":"string","description":"workspace_attachment:\u003cid> reference for subsequent attach_file calls.","isRequired":true,"uniqueKey":"data.oneOf.1.fileRef","typeLabel":"string"},"target":{"type":"object","required":["id","type"],"properties":{"type":{"type":"string","enum":["workspace","workspace_comment","product_catalog","workflow","library"],"description":"Explicitly supported attachment destination. Comments must already exist and require edit permission. product_catalog is a catalog owned by the caller's organization. library is an explicitly selected authorized Library.\n","isRequired":true,"uniqueKey":"data.oneOf.1.target.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^(?:[1-9][0-9]*|me|organization)$","description":"Target record ID. Pending uploads cannot be redirected to another target. Required except for product_catalog, where it may be omitted when the organization has one catalog. Responses always carry the resolved id. Only library accepts me and organization aliases; completion requires the original selector, not a replacement numeric ID.\n","isRequired":true,"uniqueKey":"data.oneOf.1.target.id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.oneOf.1.target","typeLabel":"object"},"targetUrl":{"type":"string","format":"uri","description":"Govly page containing the target. Comments link to the containing workspace.","isRequired":true,"uniqueKey":"data.oneOf.1.targetUrl","typeLabel":"string\u003curi>"},"workspaceId":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.1.workspaceId","typeLabel":"string"},"workspaceUrl":{"type":"string","format":"uri","description":"Use this returned link in user-facing responses.","isRequired":true,"uniqueKey":"data.oneOf.1.workspaceUrl","typeLabel":"string\u003curi>"},"filename":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.1.filename","typeLabel":"string"},"contentType":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.1.contentType","typeLabel":"string"},"byteSize":{"type":"integer","isRequired":true,"uniqueKey":"data.oneOf.1.byteSize","typeLabel":"integer"},"textExtractStatus":{"type":"string","description":"Text extraction may still be processing after attachment succeeds.","isRequired":true,"uniqueKey":"data.oneOf.1.textExtractStatus","typeLabel":"string"},"commentId":{"oneOf":[{"type":"string","uniqueKey":"data.oneOf.1.commentId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.oneOf.1.commentId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.1.commentId","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"object"},{"type":"object","required":["status","fileRef","target","filename","contentType","byteSize","textExtractStatus"],"properties":{"status":{"type":"string","const":"attached","isRequired":true,"uniqueKey":"data.oneOf.2.status","typeLabel":"string"},"fileRef":{"type":"string","pattern":"^product_catalog_file:[1-9][0-9]*$","description":"product_catalog_file:\u003cid>. Pass it as attachmentId to create_product_catalog_change_request_from_attachment_source, or read it with document_read. There is no targetUrl and no bare fileId.\n","isRequired":true,"uniqueKey":"data.oneOf.2.fileRef","typeLabel":"string"},"target":{"type":"object","required":["id","type"],"properties":{"type":{"type":"string","description":"Explicitly supported attachment destination. Comments must already exist and require edit permission. product_catalog is a catalog owned by the caller's organization. library is an explicitly selected authorized Library.\n","enum":["workspace","workspace_comment","product_catalog","workflow","library"],"const":"product_catalog","isRequired":true,"uniqueKey":"data.oneOf.2.target.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^(?:[1-9][0-9]*|me|organization)$","description":"Target record ID. Pending uploads cannot be redirected to another target. Required except for product_catalog, where it may be omitted when the organization has one catalog. Responses always carry the resolved id. Only library accepts me and organization aliases; completion requires the original selector, not a replacement numeric ID.\n","isRequired":true,"uniqueKey":"data.oneOf.2.target.id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.oneOf.2.target","typeLabel":"object"},"filename":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.2.filename","typeLabel":"string"},"contentType":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.2.contentType","typeLabel":"string"},"byteSize":{"type":"integer","isRequired":true,"uniqueKey":"data.oneOf.2.byteSize","typeLabel":"integer"},"textExtractStatus":{"type":"string","description":"Drafting from a quote waits for text extraction; retry while the change request tool reports not_ready.","isRequired":true,"uniqueKey":"data.oneOf.2.textExtractStatus","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.oneOf.2","typeLabel":"object"},{"type":"object","required":["status","fileRef","workflowId","target","targetUrl","filename","contentType","byteSize","textExtractStatus"],"properties":{"status":{"type":"string","const":"attached","isRequired":true,"uniqueKey":"data.oneOf.3.status","typeLabel":"string"},"fileRef":{"type":"string","pattern":"^workflow_attachment:[1-9][0-9]*$","isRequired":true,"uniqueKey":"data.oneOf.3.fileRef","typeLabel":"string"},"workflowId":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.3.workflowId","typeLabel":"string"},"target":{"type":"object","required":["id","type"],"properties":{"type":{"type":"string","enum":["workspace","workspace_comment","product_catalog","workflow","library"],"description":"Explicitly supported attachment destination. Comments must already exist and require edit permission. product_catalog is a catalog owned by the caller's organization. library is an explicitly selected authorized Library.\n","isRequired":true,"uniqueKey":"data.oneOf.3.target.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^(?:[1-9][0-9]*|me|organization)$","description":"Target record ID. Pending uploads cannot be redirected to another target. Required except for product_catalog, where it may be omitted when the organization has one catalog. Responses always carry the resolved id. Only library accepts me and organization aliases; completion requires the original selector, not a replacement numeric ID.\n","isRequired":true,"uniqueKey":"data.oneOf.3.target.id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.oneOf.3.target","typeLabel":"object"},"targetUrl":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"data.oneOf.3.targetUrl","typeLabel":"string\u003curi>"},"filename":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.3.filename","typeLabel":"string"},"contentType":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.3.contentType","typeLabel":"string"},"byteSize":{"type":"integer","isRequired":true,"uniqueKey":"data.oneOf.3.byteSize","typeLabel":"integer"},"textExtractStatus":{"type":"string","enum":["not_started","processing","completed","failed","unavailable"],"isRequired":true,"uniqueKey":"data.oneOf.3.textExtractStatus","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3","typeLabel":"object"},{"type":"object","required":["status","target","libraryId","fileId","fileRef","documentType","filename","contentType","byteSize","textExtractStatus"],"properties":{"status":{"type":"string","const":"attached","isRequired":true,"uniqueKey":"data.oneOf.4.status","typeLabel":"string"},"target":{"type":"object","required":["id","type"],"properties":{"type":{"type":"string","description":"Explicitly supported attachment destination. Comments must already exist and require edit permission. product_catalog is a catalog owned by the caller's organization. library is an explicitly selected authorized Library.\n","enum":["workspace","workspace_comment","product_catalog","workflow","library"],"const":"library","isRequired":true,"uniqueKey":"data.oneOf.4.target.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^(?:[1-9][0-9]*|me|organization)$","description":"Target record ID. Pending uploads cannot be redirected to another target. Required except for product_catalog, where it may be omitted when the organization has one catalog. Responses always carry the resolved id. Only library accepts me and organization aliases; completion requires the original selector, not a replacement numeric ID.\n","isRequired":true,"uniqueKey":"data.oneOf.4.target.id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.oneOf.4.target","typeLabel":"object"},"libraryId":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.4.libraryId","typeLabel":"string"},"fileId":{"type":"string","description":"Library document ID for document_read or document_download with documentType library_document.","isRequired":true,"uniqueKey":"data.oneOf.4.fileId","typeLabel":"string"},"fileRef":{"type":"string","pattern":"^library_document:[1-9][0-9]*$","isRequired":true,"uniqueKey":"data.oneOf.4.fileRef","typeLabel":"string"},"documentType":{"type":"string","const":"library_document","isRequired":true,"uniqueKey":"data.oneOf.4.documentType","typeLabel":"string"},"filename":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.4.filename","typeLabel":"string"},"contentType":{"type":"string","isRequired":true,"uniqueKey":"data.oneOf.4.contentType","typeLabel":"string"},"byteSize":{"type":"integer","isRequired":true,"uniqueKey":"data.oneOf.4.byteSize","typeLabel":"integer"},"textExtractStatus":{"type":"string","enum":["not_started","processing","completed","failed","unavailable"],"isRequired":true,"uniqueKey":"data.oneOf.4.textExtractStatus","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"status":"upload_required","target":{"type":"workspace","id":"\u003cstring>"},"uploadId":"\u003cstring>","uploadUrl":"\u003cstring>","method":"POST","requiredHeaders":{},"expiresAt":"2023-11-07T05:31:56Z","instructions":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"50453158-1a40-4721-bd41-38d4d1e04dde":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"type":"object","required":["status","code","title","detail"],"properties":{"status":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].status","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].title","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"source":{"type":"object","properties":{"pointer":{"type":"string","uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errors":[{"status":"\u003cstring>","code":"\u003cstring>","title":"\u003cstring>","detail":"\u003cstring>","source":{"pointer":"\u003cstring>"}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"0ec8b611-fb5b-47db-94f9-912b67e3799c":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"type":"object","required":["status","code","title","detail"],"properties":{"status":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].status","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].title","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"source":{"type":"object","properties":{"pointer":{"type":"string","uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errors":[{"status":"\u003cstring>","code":"\u003cstring>","title":"\u003cstring>","detail":"\u003cstring>","source":{"pointer":"\u003cstring>"}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"9e653e1f-8b32-4abf-979f-4a361f9b04e1":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"type":"object","required":["status","code","title","detail"],"properties":{"status":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].status","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].title","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"source":{"type":"object","properties":{"pointer":{"type":"string","uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errors":[{"status":"\u003cstring>","code":"\u003cstring>","title":"\u003cstring>","detail":"\u003cstring>","source":{"pointer":"\u003cstring>"}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"44394afd-fec8-42d1-9668-8011990a99ef":{"description":"Invalid input. A product_catalog target without an id returns code no_catalog when the organization has no catalog, or catalog_required with meta.catalogs when it has several; retry with one of those ids.\n","content":{"application/json":{"schema":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"type":"object","required":["status","code","title","detail"],"properties":{"status":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].status","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].title","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"source":{"type":"object","properties":{"pointer":{"type":"string","uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"},"meta":{"type":"object","properties":{"catalogs":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"meta.catalogs.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"meta.catalogs.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"meta.catalogs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"meta.catalogs","typeLabel":"object[]"}},"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errors":[{"status":"\u003cstring>","code":"\u003cstring>","title":"\u003cstring>","detail":"\u003cstring>","source":{"pointer":"\u003cstring>"}}],"meta":{"catalogs":[{"id":"\u003cstring>","name":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"7014d0b4-4b8d-47cf-91ce-5add4abe67e9":{"description":"Too many requests. Two limiters can produce this status and they use different bodies. The per-user limit of 70 requests per minute for each resource returns the standard error envelope with `code: rate_limited` and a `Retry-After` header. Keys sent in the `X-API-KEY` header are also subject to the Enterprise API limit of 300 requests per minute per key, which returns the plain `error` form with `Retry-After` and the `X-RateLimit-*` headers. Clients should accept either body.\n","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"type":"object","required":["status","code","title","detail"],"properties":{"status":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.errors.items.[INDEX].status","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.errors.items.[INDEX].code","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.errors.items.[INDEX].title","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.errors.items.[INDEX].detail","typeLabel":"string"},"source":{"type":"object","properties":{"pointer":{"type":"string","uniqueKey":"oneOf.0.errors.items.[INDEX].source.pointer","typeLabel":"string"}},"uniqueKey":"oneOf.0.errors.items.[INDEX].source","typeLabel":"object"}},"uniqueKey":"oneOf.0.errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.errors","typeLabel":"object[]"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["error"],"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errors":[{"status":"\u003cstring>","code":"\u003cstring>","title":"\u003cstring>","detail":"\u003cstring>","source":{"pointer":"\u003cstring>"}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"494ccb06-7a0e-47be-846a-bb9272a97f52":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"type":"object","required":["status","code","title","detail"],"properties":{"status":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].status","typeLabel":"string"},"code":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].title","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"source":{"type":"object","properties":{"pointer":{"type":"string","uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errors":[{"status":"\u003cstring>","code":"\u003cstring>","title":"\u003cstring>","detail":"\u003cstring>","source":{"pointer":"\u003cstring>"}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1e3d4134-78b6-49ac-b82d-e6c4ac056e8e":{"bearerApiKey":{"type":"http","scheme":"bearer","bearerFormat":"API key","scopes":[],"schemeName":"bearerApiKey"}},"d57ba6ed-7bd4-4d90-88fc-2417e5ee121d":{"headerApiKey":{"type":"apiKey","in":"header","name":"X-API-KEY","scopes":[],"schemeName":"headerApiKey"}}},"servers":{"431047c8-0434-446c-b875-ace9e6957c7d":{"url":"https://app.govly.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API key","scopes":[],"schemeName":"bearerApiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerApiKey","name":"Authorization"}],"title":"bearerApiKey"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-KEY","scopes":[],"schemeName":"headerApiKey"},"schema":{"title":"X-API-KEY","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"headerApiKey","name":"X-API-KEY"}],"title":"headerApiKey"}]},"originalFileLocation":"openapi/tools-v1.yaml"},"subdomain":"govly","siteName":"Govly Developer Documentation","title":"Attach a new or existing file to a supported destination - Govly Developer Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-09T19:12:13.134Z","originalFileLocation":"api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Available when the file-attachment rollout is enabled for the caller\u0026#x27;s organization. Call with a target and exactly one file source. Existing authorized Govly file references attach immediately. A new file\u0026#x27;s metadata returns status upload_required and a 15-minute signed Govly URL. The host POSTs bytes using exactly requiredHeaders, then calls this same operation with the same target and file type upload plus uploadId. The byte request needs no OAuth header or API key. File contents never enter tool arguments. Metadata preparation creates a new pending upload on each call. Upload completion retries return the same fileId while the token is valid; reference retries return the same attachment for the same blob and target. Every retry rechecks permissions. Unattached upload blobs are scheduled for cleanup after 24 hours; attached files are retained. All MIME types are allowed; validation checks declared metadata, not file format or malware. A product_catalog target stores a quote or TR template on the caller organization\u0026#x27;s catalog for create_product_catalog_change_request_from_attachment_source (an MCP and Govly AI tool); only the uploader can read it, and it has no Govly page. A library target accepts a numeric Library ID, me or organization. Default aliases create the Library only on completion; keep the same exact selector throughout the transfer. Library results contain a library_document fileRef and documentType for content tools, not a targetUrl.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Govly Developer Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/govly/tLEtLkgSI5N0MGS1/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/govly/tLEtLkgSI5N0MGS1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/govly/tLEtLkgSI5N0MGS1/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/govly/tLEtLkgSI5N0MGS1/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/govly/tLEtLkgSI5N0MGS1/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/govly/tLEtLkgSI5N0MGS1/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/govly/tLEtLkgSI5N0MGS1/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/govly/tLEtLkgSI5N0MGS1/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/govly/tLEtLkgSI5N0MGS1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Attach a new or existing file to a supported destination - Govly Developer Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Available when the file-attachment rollout is enabled for the caller\u0026#x27;s organization. Call with a target and exactly one file source. Existing authorized Govly file references attach immediately. A new file\u0026#x27;s metadata returns status upload_required and a 15-minute signed Govly URL. The host POSTs bytes using exactly requiredHeaders, then calls this same operation with the same target and file type upload plus uploadId. The byte request needs no OAuth header or API key. File contents never enter tool arguments. Metadata preparation creates a new pending upload on each call. Upload completion retries return the same fileId while the token is valid; reference retries return the same attachment for the same blob and target. Every retry rechecks permissions. Unattached upload blobs are scheduled for cleanup after 24 hours; attached files are retained. All MIME types are allowed; validation checks declared metadata, not file format or malware. A product_catalog target stores a quote or TR template on the caller organization\u0026#x27;s catalog for create_product_catalog_change_request_from_attachment_source (an MCP and Govly AI tool); only the uploader can read it, and it has no Govly page. A library target accepts a numeric Library ID, me or organization. Default aliases create the Library only on completion; keep the same exact selector throughout the transfer. Library results contain a library_document fileRef and documentType for content tools, not a targetUrl.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Govly Developer Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.govly.com/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://govly.mintlify.site/_mintlify/api/og/v2?division=File+Attachments\u0026amp;title=Attach+a+new+or+existing+file+to+a+supported+destination\u0026amp;description=Available+when+the+file-attachment+rollout+is+enabled+for+the+caller%27s+organization.+Call+with+a+target+and+exactly+one+file+source.+Existing+authorized+Govly+f\u0026amp;theme=d87f0cb11f6760e6b1a4ee96\u0026amp;signature=fc9cc8b9cecbcf6aabf5ae5a6e9c69cf2650b13e99fd7bd9a6cf2cf8e6a41432\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Attach a new or existing file to a supported destination - Govly Developer Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Available when the file-attachment rollout is enabled for the caller\u0026#x27;s organization. Call with a target and exactly one file source. Existing authorized Govly file references attach immediately. A new file\u0026#x27;s metadata returns status upload_required and a 15-minute signed Govly URL. The host POSTs bytes using exactly requiredHeaders, then calls this same operation with the same target and file type upload plus uploadId. The byte request needs no OAuth header or API key. File contents never enter tool arguments. Metadata preparation creates a new pending upload on each call. Upload completion retries return the same fileId while the token is valid; reference retries return the same attachment for the same blob and target. Every retry rechecks permissions. Unattached upload blobs are scheduled for cleanup after 24 hours; attached files are retained. All MIME types are allowed; validation checks declared metadata, not file format or malware. A product_catalog target stores a quote or TR template on the caller organization\u0026#x27;s catalog for create_product_catalog_change_request_from_attachment_source (an MCP and Govly AI tool); only the uploader can read it, and it has no Govly page. A library target accepts a numeric Library ID, me or organization. Default aliases create the Library only on completion; keep the same exact selector throughout the transfer. Library results contain a library_document fileRef and documentType for content tools, not a targetUrl.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://govly.mintlify.site/_mintlify/api/og/v2?division=File+Attachments\u0026amp;title=Attach+a+new+or+existing+file+to+a+supported+destination\u0026amp;description=Available+when+the+file-attachment+rollout+is+enabled+for+the+caller%27s+organization.+Call+with+a+target+and+exactly+one+file+source.+Existing+authorized+Govly+f\u0026amp;theme=d87f0cb11f6760e6b1a4ee96\u0026amp;signature=fc9cc8b9cecbcf6aabf5ae5a6e9c69cf2650b13e99fd7bd9a6cf2cf8e6a41432\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/govly/tLEtLkgSI5N0MGS1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Govly Developer Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2D72D2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.govly.com/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.govly.com/#organization\",\"name\":\"Govly Developer Documentation\",\"url\":\"https://docs.govly.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/govly/fiZJVi8g9yenM-kL/logo/light.svg?fit=max\u0026auto=format\u0026n=fiZJVi8g9yenM-kL\u0026q=85\u0026s=d66609a9754e369eff54b7f9bf198824\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.govly.com#website\",\"name\":\"Govly Developer Documentation\",\"url\":\"https://docs.govly.com\",\"publisher\":{\"@id\":\"https://docs.govly.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.govly.com/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination#webpage\",\"url\":\"https://docs.govly.com/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination\",\"name\":\"Attach a new or existing file to a supported destination\",\"description\":\"Available when the file-attachment rollout is enabled for the caller's organization. Call with a target and exactly one file source. Existing authorized Govly file references attach immediately. A new file's metadata returns status upload_required and a 15-minute signed Govly URL. The host POSTs bytes using exactly requiredHeaders, then calls this same operation with the same target and file type upload plus uploadId. The byte request needs no OAuth header or API key. File contents never enter tool arguments. Metadata preparation creates a new pending upload on each call. Upload completion retries return the same fileId while the token is valid; reference retries return the same attachment for the same blob and target. Every retry rechecks permissions. Unattached upload blobs are scheduled for cleanup after 24 hours; attached files are retained. All MIME types are allowed; validation checks declared metadata, not file format or malware. A product_catalog target stores a quote or TR template on the caller organization's catalog for create_product_catalog_change_request_from_attachment_source (an MCP and Govly AI tool); only the uploader can read it, and it has no Govly page. A library target accepts a numeric Library ID, me or organization. Default aliases create the Library only on completion; keep the same exact selector throughout the transfer. Library results contain a library_document fileRef and documentType for content tools, not a targetUrl.\",\"dateModified\":\"2026-11-09T19:12:13.134Z\",\"isPartOf\":{\"@id\":\"https://docs.govly.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.govly.com/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.govly.com/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Enterprise\",\"item\":\"https://docs.govly.com/enterprise/email-integration\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tools API Reference\",\"item\":\"https://docs.govly.com/api-reference/tools-v1/organization-users/list-users-in-your-govly-organization\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Attach a new or existing file to a supported destination\",\"item\":\"https://docs.govly.com/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.govly.com/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination#apireference\",\"headline\":\"Attach a new or existing file to a supported destination\",\"name\":\"Attach a new or existing file to a supported destination\",\"description\":\"Available when the file-attachment rollout is enabled for the caller's organization. Call with a target and exactly one file source. Existing authorized Govly file references attach immediately. A new file's metadata returns status upload_required and a 15-minute signed Govly URL. The host POSTs bytes using exactly requiredHeaders, then calls this same operation with the same target and file type upload plus uploadId. The byte request needs no OAuth header or API key. File contents never enter tool arguments. Metadata preparation creates a new pending upload on each call. Upload completion retries return the same fileId while the token is valid; reference retries return the same attachment for the same blob and target. Every retry rechecks permissions. Unattached upload blobs are scheduled for cleanup after 24 hours; attached files are retained. All MIME types are allowed; validation checks declared metadata, not file format or malware. A product_catalog target stores a quote or TR template on the caller organization's catalog for create_product_catalog_change_request_from_attachment_source (an MCP and Govly AI tool); only the uploader can read it, and it has no Govly page. A library target accepts a numeric Library ID, me or organization. Default aliases create the Library only on completion; keep the same exact selector throughout the transfer. Library results contain a library_document fileRef and documentType for content tools, not a targetUrl.\",\"url\":\"https://docs.govly.com/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination\",\"mainEntityOfPage\":{\"@id\":\"https://docs.govly.com/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination#webpage\"},\"dateModified\":\"2026-11-09T19:12:13.134Z\",\"publisher\":{\"@id\":\"https://docs.govly.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.govly.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Govly Developer Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Govly Developer Documentation","nav":{"global":null,"tabs":[{"tab":"Overview","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/getting-started/introduction"}]},{"group":"Integrations","pages":[{"title":"Salesforce Integration","href":"/enterprise/integrations/sfdc"},{"title":"HubSpot Integration","href":"/enterprise/integrations/hubspot"},{"group":"MCP","pages":[{"title":"MCP Overview","href":"/enterprise/integrations/mcp"},{"title":"Connect to Claude","href":"/enterprise/integrations/mcp/claude"},{"title":"MCP for Developers","href":"/enterprise/integrations/mcp/developers"}]},{"title":"Single Sign-On (SSO)","href":"/enterprise/integrations/sso"},{"group":"Webhooks","pages":[{"title":"Webhooks Overview","href":"/api-reference/enterprise/webhooks/overview"},{"title":"Webhook Events","href":"/webhooks/events"},{"title":"Webhook Security","href":"/webhooks/security"}]}]},{"group":"Enterprise","pages":[{"group":"Contract Ingestion","pages":[{"title":"Email Integration","href":"/enterprise/email-integration"},{"title":"Web Automation","href":"/enterprise/web-automation"}]},{"group":"Security and Privacy","pages":[{"title":"Overview","href":"/enterprise/security"},{"title":"Opportunity Attachment Handling","href":"/enterprise/security/restricted-opportunity-attachments"},{"title":"Secure Enclave","href":"/enterprise/security/secure-enclave"},{"title":"SOC 2","href":"/enterprise/security/soc2"}]},{"group":"Enterprise API Reference","pages":[{"title":"Rate Limits","href":"/api-reference/enterprise/rate-limits"},{"title":"Errors","href":"/api-reference/enterprise/errors"},{"group":"Opportunities","pages":[{"title":"List opportunities by ID","api":"GET /api/enterprise/opportunities","href":"/api-reference/enterprise/opportunities/list"},{"group":"Saved Searches","pages":[{"title":"List Saved Searches","api":"GET /api/enterprise/opportunities/saved_searches","href":"/api-reference/enterprise/opportunities/saved_searches/list"},{"title":"Execute a search on a saved search","api":"GET /api/enterprise/opportunities/saved_searches/{id}/search","href":"/api-reference/enterprise/opportunities/saved_searches/search"},{"title":"List saved search matches","api":"GET /api/enterprise/opportunities/saved_search_matches","href":"/api-reference/enterprise/opportunities/saved_search_matches/list"}]}]},{"group":"Awards","pages":[{"title":"List awards","api":"GET /api/enterprise/awards","href":"/api-reference/enterprise/awards/list"},{"group":"Saved Searches","pages":[{"title":"List Saved Searches","api":"GET /api/enterprise/awards/saved_searches","href":"/api-reference/enterprise/awards/saved_searches/list"},{"title":"Execute a search on a saved search","api":"GET /api/enterprise/awards/saved_searches/{id}/search","href":"/api-reference/enterprise/awards/saved_searches/search"}]}]}]},{"group":"Tools API Reference","pages":[{"group":"Organization Users","pages":[{"title":"List users in your Govly organization","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/organization_users","href":"/api-reference/tools-v1/organization-users/list-users-in-your-govly-organization"}]},{"group":"Opportunities","pages":[{"title":"Fetch opportunities by ID","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/opportunities","href":"/api-reference/tools-v1/opportunities/fetch-opportunities-by-id"},{"title":"Show an opportunity","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/opportunities/{id}","href":"/api-reference/tools-v1/opportunities/show-an-opportunity"},{"title":"Search opportunities","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/opportunities/search","href":"/api-reference/tools-v1/opportunities/search-opportunities"},{"title":"Mark an opportunity not interested","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/opportunities/{opportunityId}/not_interested","href":"/api-reference/tools-v1/opportunities/mark-an-opportunity-not-interested"},{"title":"Undo a not-interested mark","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml delete /api/tools/v1/opportunities/{opportunityId}/not_interested","href":"/api-reference/tools-v1/opportunities/undo-a-not-interested-mark"}]},{"group":"Awards","pages":[{"title":"Show an award","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/awards/{id}","href":"/api-reference/tools-v1/awards/show-an-award"},{"title":"Search awards","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/awards/search","href":"/api-reference/tools-v1/awards/search-awards"},{"title":"Aggregate awards by one dimension","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/awards/aggregate","href":"/api-reference/tools-v1/awards/aggregate-awards-by-one-dimension"}]},{"group":"Contacts","pages":[{"title":"Show a contact","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/contacts/{id}","href":"/api-reference/tools-v1/contacts/show-a-contact"},{"title":"Search contacts","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/contacts/search","href":"/api-reference/tools-v1/contacts/search-contacts"}]},{"group":"Places","pages":[{"title":"Resolve place names to canonical Place ids","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/places/search","href":"/api-reference/tools-v1/places/resolve-place-names-to-canonical-place-ids"},{"title":"Enumerate every Place of a category within a jurisdiction","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/places/list","href":"/api-reference/tools-v1/places/enumerate-every-place-of-a-category-within-a-jurisdiction"}]},{"group":"Signals","pages":[{"title":"Show a signal cluster","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/signals/{id}","href":"/api-reference/tools-v1/signals/show-a-signal-cluster"},{"title":"Search signals","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/signals/search","href":"/api-reference/tools-v1/signals/search-signals"}]},{"group":"Product Catalogs","pages":[{"title":"List public product catalogs","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/product_catalogs","href":"/api-reference/tools-v1/product-catalogs/list-public-product-catalogs"},{"title":"Search product catalog items","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/product_catalogs/search","href":"/api-reference/tools-v1/product-catalogs/search-product-catalog-items"}]},{"group":"Workspaces","pages":[{"title":"List workspaces associated with an entity","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/workspaces","href":"/api-reference/tools-v1/workspaces/list-workspaces-associated-with-an-entity"},{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/workspaces","href":"/api-reference/tools-v1/workspaces/create-a-workspace"},{"title":"List saved Workspace views","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/workspace_views","href":"/api-reference/tools-v1/workspaces/list-saved-workspace-views"},{"title":"Dismiss workspaces for yourself","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/workspace_dismissals","href":"/api-reference/tools-v1/workspaces/dismiss-workspaces-for-yourself"},{"title":"Restore workspaces you dismissed","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml delete /api/tools/v1/workspace_dismissals","href":"/api-reference/tools-v1/workspaces/restore-workspaces-you-dismissed"},{"title":"Search active workspaces","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/workspaces/search","href":"/api-reference/tools-v1/workspaces/search-active-workspaces"},{"title":"Show a workspace","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/workspaces/{id}","href":"/api-reference/tools-v1/workspaces/show-a-workspace"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml patch /api/tools/v1/workspaces/{id}","href":"/api-reference/tools-v1/workspaces/update-a-workspace"}]},{"group":"Workspace Members","pages":[{"title":"Add a user or team member to a workspace","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/workspaces/{workspaceId}/members","href":"/api-reference/tools-v1/workspace-members/add-a-user-or-team-member-to-a-workspace"},{"title":"Remove a user or team member from a workspace","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml delete /api/tools/v1/workspaces/{workspaceId}/members","href":"/api-reference/tools-v1/workspace-members/remove-a-user-or-team-member-from-a-workspace"}]},{"group":"Workflows","pages":[{"title":"Find workflows in your organization","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/workflows","href":"/api-reference/tools-v1/workflows/find-workflows-in-your-organization"},{"title":"List the current files attached to a workflow","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/workflows/{workflowId}/attachments","href":"/api-reference/tools-v1/workflows/list-the-current-files-attached-to-a-workflow"},{"title":"Upload workflow files as an organization admin","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/workflows/{workflowId}/attachments","href":"/api-reference/tools-v1/workflows/upload-workflow-files-as-an-organization-admin"},{"title":"Remove a workflow file as an organization admin","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml delete /api/tools/v1/workflows/{workflowId}/attachments/{attachmentId}","href":"/api-reference/tools-v1/workflows/remove-a-workflow-file-as-an-organization-admin"},{"title":"Open a workflow file after checking current access","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/workflows/{workflowId}/attachments/{attachmentId}/file","href":"/api-reference/tools-v1/workflows/open-a-workflow-file-after-checking-current-access"}]},{"group":"Libraries","pages":[{"title":"List accessible Libraries","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/libraries","href":"/api-reference/tools-v1/libraries/list-accessible-libraries"},{"title":"Create an additional Library","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/libraries","href":"/api-reference/tools-v1/libraries/create-an-additional-library"},{"title":"Get Library metadata","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/libraries/{id}","href":"/api-reference/tools-v1/libraries/get-library-metadata"},{"title":"Replace a Library description","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml patch /api/tools/v1/libraries/{id}","href":"/api-reference/tools-v1/libraries/replace-a-library-description"}]},{"group":"Library Documents","pages":[{"title":"List documents in a selected Library","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/libraries/{libraryId}/documents","href":"/api-reference/tools-v1/library-documents/list-documents-in-a-selected-library"},{"title":"Get a Library document's metadata","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/libraries/{libraryId}/documents/{id}","href":"/api-reference/tools-v1/library-documents/get-a-library-documents-metadata"},{"title":"Archive a Library document","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml delete /api/tools/v1/libraries/{libraryId}/documents/{id}","href":"/api-reference/tools-v1/library-documents/archive-a-library-document"},{"title":"Update a Library document's title or tags","description":null,"deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml patch /api/tools/v1/libraries/{libraryId}/documents/{id}","href":"/api-reference/tools-v1/library-documents/update-a-library-documents-title-or-tags"}]},{"group":"File Attachments","pages":[{"title":"Attach a new or existing file to a supported destination","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/file_attachments","href":"/api-reference/tools-v1/file-attachments/attach-a-new-or-existing-file-to-a-supported-destination"}]},{"group":"Workspace Attachments","pages":[{"title":"Send file bytes to a signed Govly upload URL","description":"Use the full uploadUrl and requiredHeaders returned by attach_file. The URL authorizes this upload without OAuth or an API key. Govly rechecks access, verifies size and MD5, and stores the bytes. An accepted upload cannot be overwritten; retries return 204. Then call attach_file with the same target and file type upload.\n","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/upload_files","href":"/api-reference/tools-v1/workspace-attachments/send-file-bytes-to-a-signed-govly-upload-url"},{"title":"List workspace attachments","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/workspaces/{workspaceId}/attachments","href":"/api-reference/tools-v1/workspace-attachments/list-workspace-attachments"},{"title":"Upload workspace attachments","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/workspaces/{workspaceId}/attachments","href":"/api-reference/tools-v1/workspace-attachments/upload-workspace-attachments"}]},{"group":"Workspace Comments","pages":[{"title":"Post a Markdown comment to a workspace","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/workspaces/{workspaceId}/comments","href":"/api-reference/tools-v1/workspace-comments/post-a-markdown-comment-to-a-workspace"}]},{"group":"Organization Labels","pages":[{"title":"List organization labels","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/organization_labels","href":"/api-reference/tools-v1/organization-labels/list-organization-labels"},{"title":"Create an organization label","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/organization_labels","href":"/api-reference/tools-v1/organization-labels/create-an-organization-label"},{"title":"Delete an organization label","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml delete /api/tools/v1/organization_labels/{id}","href":"/api-reference/tools-v1/organization-labels/delete-an-organization-label"},{"title":"Update an organization label","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml patch /api/tools/v1/organization_labels/{id}","href":"/api-reference/tools-v1/organization-labels/update-an-organization-label"}]},{"group":"Record Labels","pages":[{"title":"Apply labels to a record","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/record_labels","href":"/api-reference/tools-v1/record-labels/apply-labels-to-a-record"},{"title":"Remove labels from a record","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml delete /api/tools/v1/record_labels","href":"/api-reference/tools-v1/record-labels/remove-labels-from-a-record"}]},{"group":"Follows","pages":[{"title":"Follow a Govly entity","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/follows","href":"/api-reference/tools-v1/follows/follow-a-govly-entity"},{"title":"Unfollow a Govly entity","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml delete /api/tools/v1/follows","href":"/api-reference/tools-v1/follows/unfollow-a-govly-entity"}]},{"group":"Shares","pages":[{"title":"Share an opportunity, award, or contact by email","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/shares","href":"/api-reference/tools-v1/shares/share-an-opportunity-award-or-contact-by-email"}]},{"group":"Saved Searches","pages":[{"title":"List award saved searches","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/awards/saved_searches","href":"/api-reference/tools-v1/saved-searches/list-award-saved-searches"},{"title":"Create an award saved search","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/awards/saved_searches","href":"/api-reference/tools-v1/saved-searches/create-an-award-saved-search"},{"title":"Show an award saved search","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/awards/saved_searches/{id}","href":"/api-reference/tools-v1/saved-searches/show-an-award-saved-search"},{"title":"Update an award saved search","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml patch /api/tools/v1/awards/saved_searches/{id}","href":"/api-reference/tools-v1/saved-searches/update-an-award-saved-search"},{"title":"Execute an award saved search","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/awards/saved_searches/{savedSearchId}/results","href":"/api-reference/tools-v1/saved-searches/execute-an-award-saved-search"},{"title":"List opportunity saved searches","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/opportunities/saved_searches","href":"/api-reference/tools-v1/saved-searches/list-opportunity-saved-searches"},{"title":"Create an opportunity saved search","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/opportunities/saved_searches","href":"/api-reference/tools-v1/saved-searches/create-an-opportunity-saved-search"},{"title":"Show an opportunity saved search","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/opportunities/saved_searches/{id}","href":"/api-reference/tools-v1/saved-searches/show-an-opportunity-saved-search"},{"title":"Update an opportunity saved search","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml patch /api/tools/v1/opportunities/saved_searches/{id}","href":"/api-reference/tools-v1/saved-searches/update-an-opportunity-saved-search"},{"title":"List cached opportunity results for a saved search","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/opportunities/saved_searches/{savedSearchId}/results","href":"/api-reference/tools-v1/saved-searches/list-cached-opportunity-results-for-a-saved-search"}]},{"group":"Documents","pages":[{"title":"Read bounded document content","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/documents/read","href":"/api-reference/tools-v1/documents/read-bounded-document-content"},{"title":"Get a temporary original-file download","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/documents/download","href":"/api-reference/tools-v1/documents/get-a-temporary-original-file-download"}]},{"group":"Quote Submissions","pages":[{"title":"Check quote submission requirements","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/quote/submissions/requirements","href":"/api-reference/tools-v1/quote-submissions/check-quote-submission-requirements"},{"title":"List quote submissions for a workspace","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/quote/submissions","href":"/api-reference/tools-v1/quote-submissions/list-quote-submissions-for-a-workspace"},{"title":"Submit a quote","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/quote/submissions","href":"/api-reference/tools-v1/quote-submissions/submit-a-quote"},{"title":"Show quote submission status","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/quote/submissions/{id}","href":"/api-reference/tools-v1/quote-submissions/show-quote-submission-status"}]},{"group":"Inbox","pages":[{"title":"List saved Inbox views","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/inbox_views","href":"/api-reference/tools-v1/inbox/list-saved-inbox-views"},{"title":"List inbox items","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/inbox_items","href":"/api-reference/tools-v1/inbox/list-inbox-items"},{"title":"Search inbox items","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/inbox_items/search","href":"/api-reference/tools-v1/inbox/search-inbox-items"},{"title":"Show an inbox item","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml get /api/tools/v1/inbox_items/{id}","href":"/api-reference/tools-v1/inbox/show-an-inbox-item"},{"title":"Accept an inbox item","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/inbox_items/{id}/accept","href":"/api-reference/tools-v1/inbox/accept-an-inbox-item"},{"title":"Dismiss an inbox item","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/inbox_items/{id}/dismiss","href":"/api-reference/tools-v1/inbox/dismiss-an-inbox-item"},{"title":"Decline (reject) an inbox item as a bad fit","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/inbox_items/{id}/decline","href":"/api-reference/tools-v1/inbox/decline-reject-an-inbox-item-as-a-bad-fit"},{"title":"Restore a dismissed or declined inbox item","deprecated":null,"version":null,"openapi":"/openapi/tools-v1.yaml post /api/tools/v1/inbox_items/{id}/restore","href":"/api-reference/tools-v1/inbox/restore-a-dismissed-or-declined-inbox-item"}]}]},{"group":"Legacy API Reference (v3)","pages":[{"group":"Opportunities","pages":[{"title":"Get Opportunity","api":"GET /api/v3/opportunities/{id}","href":"/api-reference/v3/opportunities/get"},{"title":"Filter Opportunities","api":"POST /api/v3/opportunities/filter","href":"/api-reference/v3/opportunities/filter"}]},{"group":"Workspaces","pages":[{"title":"Get Workspace","api":"GET /api/v3/opportunity_workspaces/{id}","href":"/api-reference/v3/workspaces/get"},{"title":"Create Workspace","api":"POST /api/v3/opportunity_workspaces","href":"/api-reference/v3/workspaces/create"},{"title":"Update Workspace","api":"PATCH /api/v3/opportunity_workspaces/{id}","href":"/api-reference/v3/workspaces/update"}]},{"group":"Contract Vehicles","pages":[{"title":"List Contract Vehicles","api":"GET /api/v3/contract_vehicles","href":"/api-reference/v3/contract-vehicles/list"}]}]}]}]}]},"basePath":"","title":"Attach a new or existing file to a supported destination - Govly Developer Documentation","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}