Use this flow for large files or to avoid base64 encoding. The file appears in Drive after you upload its bytes and commit the upload.Required scope:drive:write
This endpoint requires the Drive document creation API to be deployed to the selected environment, with Drive enabled.
Send the file name, matching MIME type and exact byte size in declared_size. Omit parent_id or use null for the Drive root. Association-wide keys must also specify chapter_id.The key owner’s current Drive permissions and the chapter’s storage quota apply.
Set UPLOAD_URL to the exact URL returned by the API. Treat it as a temporary secret, and do not send your Transparency Hub API key to storage.The upload URL lasts 30 minutes. The session’s expires_at is the commit deadline, with a further 10 minutes of grace; it does not extend the upload URL’s lifetime.
Call Commit a Drive Upload using upload_session_id and the original API key. Association-wide keys must specify the same chapter again. Until commit succeeds, the uploaded bytes are not a Drive item.For small documents, Create a Drive Document completes these steps in one request.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Transparency Hub Network","colors":{"primary":"#006699","light":"#3399CC","dark":"#004D73"},"favicon":"https://mintcdn.com/transparencyhubnetwork/6pI7fCXnEFY-8F9d/favicon.png?fit=max\u0026auto=format\u0026n=6pI7fCXnEFY-8F9d\u0026q=85\u0026s=4f57b7b0153fac3a72cc51e970148c89","logo":{"light":"https://mintcdn.com/transparencyhubnetwork/6pI7fCXnEFY-8F9d/logo/light.png?fit=max\u0026auto=format\u0026n=6pI7fCXnEFY-8F9d\u0026q=85\u0026s=4feed52686f2d8a3dc7aef077520304e","dark":"https://mintcdn.com/transparencyhubnetwork/6pI7fCXnEFY-8F9d/logo/dark.png?fit=max\u0026auto=format\u0026n=6pI7fCXnEFY-8F9d\u0026q=85\u0026s=9cdabb8a0d3e8f68bb10975182f5835c"},"api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"},"mdx":{"server":["https://api.transparencyhubnetwork.ai/api","https://testapi.transparencyhubnetwork.ai/api"],"auth":{"method":"key","name":"X-API-Key"}}},"navbar":{"links":[{"label":"Support","href":"mailto:support@transparencyhubnetwork.ai"}],"primary":{"type":"button","label":"Get Started","href":"https://transparencyhubnetwork.ai/#signup"}},"footer":{"socials":{"website":"https://transparencyhubnetwork.ai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"transparencyhubnetwork","hasAudioNarration":false,"actualSubdomain":"transparencyhubnetwork","customDomains":["docs.transparencyhubnetwork.ai"],"gitSource":{"type":"github","owner":"transparency-hub","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adc8f35504201768b1c80ba","collectionId":"8c4d0995-d408-45d9-bd5b-8c32d1227053","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adc8f35504201768b1c80ba"},"entitlements":{},"buildId":"6ae7c427a37185f6d62695be","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"Documentation","count":142},{"language":"default","tag":"API Reference","count":90},{"language":"default","tag":"Chapter tools","count":14},{"language":"default","tag":"Projects","count":12},{"language":"default","tag":"Community","count":8},{"language":"default","tag":"Admin settings and workflow","count":7},{"language":"default","tag":"Tasks \u0026 Contacts","count":7},{"language":"default","tag":"Drive","count":6},{"language":"default","tag":"Meetings","count":6},{"language":"default","tag":"Applications","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"vite-origin","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":"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":[],"page":{"pagePath":"api-reference/drive/upload-session","slug":"/api-reference/drive/upload-session","pageMetadata":{"title":"Start a Drive Upload","openapi":"POST /v1/drive/files/upload-session","description":"Get a temporary URL for uploading a prepared file directly to storage.","href":"/api-reference/drive/upload-session"},"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: \"Get a temporary URL for uploading a prepared file directly to storage.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Use this flow for large files or to avoid base64 encoding. The file appears in Drive after you upload its bytes and `,_jsx(_components.a,{href:`/api-reference/drive/commit-upload`,children:`commit the upload`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Required scope:`}),` `,_jsx(_components.code,{children:`drive:write`})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`This endpoint requires the Drive document creation API to be deployed to the selected environment, with Drive enabled.`})}),`\n`,_jsx(Heading,{level:`2`,id:`1-start-the-upload`,children:`1. Start the upload`}),`\n`,_jsxs(_components.p,{children:[`Send the file name, matching MIME type and exact byte size in `,_jsx(_components.code,{children:`declared_size`}),`. Omit `,_jsx(_components.code,{children:`parent_id`}),` or use `,_jsx(_components.code,{children:`null`}),` for the Drive root. Association-wide keys must also specify `,_jsx(_components.code,{children:`chapter_id`}),`.`]}),`\n`,_jsx(_components.p,{children:`The key owner’s current Drive permissions and the chapter’s storage quota apply.`}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`2-upload-the-bytes`,children:`2. Upload the bytes`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`PUT`}),` the raw file bytes to the returned `,_jsx(_components.code,{children:`upload_url`}),`, adding the `,_jsx(_components.code,{children:`x-ms-blob-type: BlockBlob`}),` header:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PUT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UPLOAD_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-ms-blob-type: BlockBlob\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/pdf\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-binary`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@Annual report.pdf\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`UPLOAD_URL`}),` to the exact URL returned by the API. Treat it as a temporary secret, and do not send your Transparency Hub API key to storage.`]}),`\n`,_jsxs(_components.p,{children:[`The upload URL lasts 30 minutes. The session’s `,_jsx(_components.code,{children:`expires_at`}),` is the commit deadline, with a further 10 minutes of grace; it does not extend the upload URL’s lifetime.`]}),`\n`,_jsx(Heading,{level:`2`,id:`3-commit-the-upload`,children:`3. Commit the upload`}),`\n`,_jsxs(_components.p,{children:[`Call `,_jsx(_components.a,{href:`/api-reference/drive/commit-upload`,children:`Commit a Drive Upload`}),` using `,_jsx(_components.code,{children:`upload_session_id`}),` and the original API key. Association-wide keys must specify the same chapter again. Until commit succeeds, the uploaded bytes are not a Drive item.`]}),`\n`,_jsxs(_components.p,{children:[`For small documents, `,_jsx(_components.a,{href:`/api-reference/drive/create-document`,children:`Create a Drive Document`}),` completes these steps in one request.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Start a Drive Upload","openapi":"POST /v1/drive/files/upload-session","description":"Get a temporary URL for uploading a prepared file directly to storage.","href":"/api-reference/drive/upload-session"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,RequestExample,ResponseExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Use this flow for large files or to avoid base64 encoding. The file appears in Drive after you upload its bytes and `,_jsx(_components.a,{href:`/api-reference/drive/commit-upload`,children:`commit the upload`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Required scope:`}),` `,_jsx(_components.code,{children:`drive:write`})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`This endpoint requires the Drive document creation API to be deployed to the selected environment, with Drive enabled.`})}),`\n`,_jsx(Heading,{level:`2`,id:`1-start-the-upload`,children:`1. Start the upload`}),`\n`,_jsxs(_components.p,{children:[`Send the file name, matching MIME type and exact byte size in `,_jsx(_components.code,{children:`declared_size`}),`. Omit `,_jsx(_components.code,{children:`parent_id`}),` or use `,_jsx(_components.code,{children:`null`}),` for the Drive root. Association-wide keys must also specify `,_jsx(_components.code,{children:`chapter_id`}),`.`]}),`\n`,_jsx(_components.p,{children:`The key owner’s current Drive permissions and the chapter’s storage quota apply.`}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`Request`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Annual report.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"declared_size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12345`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"parent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`22`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`201`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"upload_session_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"upload_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.blob.core.windows.net/drive-5-9/staging/report.pdf?REPLACE_WITH_RETURNED_SAS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expires_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-24T10:40:00+00:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`2-upload-the-bytes`,children:`2. Upload the bytes`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`PUT`}),` the raw file bytes to the returned `,_jsx(_components.code,{children:`upload_url`}),`, adding the `,_jsx(_components.code,{children:`x-ms-blob-type: BlockBlob`}),` header:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PUT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UPLOAD_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-ms-blob-type: BlockBlob\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/pdf\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-binary`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@Annual report.pdf\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`UPLOAD_URL`}),` to the exact URL returned by the API. Treat it as a temporary secret, and do not send your Transparency Hub API key to storage.`]}),`\n`,_jsxs(_components.p,{children:[`The upload URL lasts 30 minutes. The session’s `,_jsx(_components.code,{children:`expires_at`}),` is the commit deadline, with a further 10 minutes of grace; it does not extend the upload URL’s lifetime.`]}),`\n`,_jsx(Heading,{level:`2`,id:`3-commit-the-upload`,children:`3. Commit the upload`}),`\n`,_jsxs(_components.p,{children:[`Call `,_jsx(_components.a,{href:`/api-reference/drive/commit-upload`,children:`Commit a Drive Upload`}),` using `,_jsx(_components.code,{children:`upload_session_id`}),` and the original API key. Association-wide keys must specify the same chapter again. Until commit succeeds, the uploaded bytes are not a Drive item.`]}),`\n`,_jsxs(_components.p,{children:[`For small documents, `,_jsx(_components.a,{href:`/api-reference/drive/create-document`,children:`Create a Drive Document`}),` completes these steps in one request.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Start a Drive Upload","openapi":"POST /v1/drive/files/upload-session","description":"Get a temporary URL for uploading a prepared file directly to storage.","href":"/api-reference/drive/upload-session"}}}},"mdxExtracts":{"tableOfContents":[{"title":"1. Start the upload","slug":"1-start-the-upload","depth":2,"children":[]},{"title":"2. Upload the bytes","slug":"2-upload-the-bytes","depth":2,"children":[]},{"title":"3. Commit the upload","slug":"3-commit-the-upload","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Request","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"file_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Annual report.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"content_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"declared_size\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">12345\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"parent_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">22\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"201","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"8\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"upload_session_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">123\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"upload_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.blob.core.windows.net/drive-5-9/staging/report.pdf?REPLACE_WITH_RETURNED_SAS\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"expires_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-24T10:40:00+00:00\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/transparencyhubnetwork/24105e52db8f49fe/images/gallery/generate-gallery.js","/_mintlify/custom/transparencyhubnetwork/b0ea3be6490a42cb/images/gallery/resize-gallery.js","/_mintlify/custom/transparencyhubnetwork/a6073150c9c03522/images/generate-cover.js"],"openApiReferenceData":{"operation":{"summary":"Start a Drive file upload","x-scope":"drive:write","description":"Get a temporary URL for uploading a prepared file directly to storage.","parameters":["856fceac-af82-4edb-a9b6-12b09aa2ca47"],"requestBody":"5ad19380-5aa2-4218-8b0a-facddc83da08","responses":{"201":"8aca7346-e855-415c-b6fc-82288759f1f2","400":"a13fee26-5160-452e-8f72-79bc2f69ec8d","401":"e0115e43-1109-44fc-90d5-32d106e6f730","403":"281adb36-e92c-4580-b18e-9da6fa62386c","404":"8bd25117-5060-4487-ade6-8720ce55a159","409":"dffc09ed-d744-4e8e-90cc-77b05099f533","429":"b1bd722b-a3e8-4b1f-9f96-0577902fda46","500":"9506d8ac-fd27-4b24-ac96-3eaa90676913","503":"a666d623-549f-49c2-811e-bc28372c0493"},"method":"post","type":"path","servers":["27f4af71-e8ec-403b-8f9a-e2f75d5b957d","c3455880-d26b-4f08-acdd-5db6a467c6a8"],"security":["1eb27996-8bc6-4507-8859-56b230e67137","7c674b49-cc12-4b7a-a7b3-650fca865336"],"path":"/v1/drive/files/upload-session","baseUrlOptions":["https://api.transparencyhubnetwork.ai/api","https://testapi.transparencyhubnetwork.ai/api"],"title":"Start a Drive file upload","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"6","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"file_name\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Annual report.pdf\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"content_type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"application/pdf\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"declared_size\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"12345"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"parent_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"22"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Request"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"8","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"status\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"success\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"data\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"upload_session_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"123"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"upload_url\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://example.blob.core.windows.net/drive-5-9/staging/report.pdf?REPLACE_WITH_RETURNED_SAS\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"expires_at\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2026-10-24T10:40:00+00:00\""}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"201"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{"856fceac-af82-4edb-a9b6-12b09aa2ca47":{"name":"chapter_id","in":"query","schema":{"type":"integer","description":"Required for association-wide keys; must match the key's chapter for chapter-bound keys.","uniqueKey":"","typeLabel":"integer"},"description":"Required for association-wide keys; must match the key's chapter for chapter-bound keys."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_name","content_type","declared_size"],"properties":{"file_name":{"type":"string","minLength":1,"maxLength":255,"isRequired":true,"uniqueKey":"file_name","typeLabel":"string"},"content_type":{"type":"string","description":"A supported Drive MIME type matching file_name.","isRequired":true,"uniqueKey":"content_type","typeLabel":"string"},"declared_size":{"type":"integer","minimum":1,"description":"Exact file size in bytes.","isRequired":true,"uniqueKey":"declared_size","typeLabel":"integer"},"chapter_id":{"type":"integer","minimum":1,"description":"Required for association-wide keys; otherwise the key chapter is used.","uniqueKey":"chapter_id","typeLabel":"integer"},"parent_id":{"oneOf":[{"type":"integer","minimum":1,"description":"Omit or use null for the Drive root.","uniqueKey":"parent_id.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Omit or use null for the Drive root.","uniqueKey":"parent_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"parent_id","typeLabel":"integer | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"file_name":"\u003cstring>","content_type":"\u003cstring>","declared_size":2,"chapter_id":2,"parent_id":2}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"8aca7346-e855-415c-b6fc-82288759f1f2":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["success"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"data":{"type":"object","required":["upload_session_id","upload_url","expires_at"],"properties":{"upload_session_id":{"type":"integer","isRequired":true,"uniqueKey":"data.upload_session_id","typeLabel":"integer"},"upload_url":{"type":"string","format":"uri","description":"Temporary secret SAS URL. PUT the raw bytes with x-ms-blob-type: BlockBlob.","isRequired":true,"uniqueKey":"data.upload_url","typeLabel":"string\u003curi>"},"expires_at":{"type":"string","format":"date-time","description":"Session commit deadline. The upload URL lasts 30 minutes; the commit deadline includes 10 minutes of grace.","isRequired":true,"uniqueKey":"data.expires_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"success","data":{"upload_session_id":123,"upload_url":"\u003cstring>","expires_at":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a13fee26-5160-452e-8f72-79bc2f69ec8d":{"description":"Invalid input, unsupported file type, invalid file signature, size mismatch, or quota exceeded","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"e0115e43-1109-44fc-90d5-32d106e6f730":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"281adb36-e92c-4580-b18e-9da6fa62386c":{"description":"Missing drive:write scope, forbidden chapter, or insufficient Drive permissions","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"8bd25117-5060-4487-ade6-8720ce55a159":{"description":"Parent folder or upload session not found","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"dffc09ed-d744-4e8e-90cc-77b05099f533":{"description":"File name conflict or upload session already finalized","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"b1bd722b-a3e8-4b1f-9f96-0577902fda46":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"9506d8ac-fd27-4b24-ac96-3eaa90676913":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"a666d623-549f-49c2-811e-bc28372c0493":{"description":"Drive is disabled","content":{"application/json":{"schema":{"type":"object","required":["status","code","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","code":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1eb27996-8bc6-4507-8859-56b230e67137":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"ApiKeyAuth"}},"7c674b49-cc12-4b7a-a7b3-650fca865336":{"BearerAuth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"27f4af71-e8ec-403b-8f9a-e2f75d5b957d":{"url":"https://api.transparencyhubnetwork.ai/api"},"c3455880-d26b-4f08-acdd-5db6a467c6a8":{"url":"https://testapi.transparencyhubnetwork.ai/api","description":"Test"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"BearerAuth"},"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":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"transparencyhubnetwork","siteName":"Transparency Hub Network","title":"Start a Drive Upload - Transparency Hub Network","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-24T10:58:07.391Z","originalFileLocation":"api-reference/drive/upload-session.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=\"Get a temporary URL for uploading a prepared file directly to storage.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Transparency Hub Network\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Start a Drive Upload - Transparency Hub Network\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get a temporary URL for uploading a prepared file directly to storage.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Transparency Hub Network\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.transparencyhubnetwork.ai/api-reference/drive/upload-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://transparencyhubnetwork.mintlify.site/_mintlify/api/og/v2?division=Drive\u0026amp;title=Start+a+Drive+Upload\u0026amp;description=Get+a+temporary+URL+for+uploading+a+prepared+file+directly+to+storage.\u0026amp;theme=a13e828d2ebc5243c055232a\u0026amp;signature=78ee11f5300b815ef6b8bbb42f5ad8fd0dd6782ce40eefeca2c4097eacca55ab\">\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=\"Start a Drive Upload - Transparency Hub Network\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get a temporary URL for uploading a prepared file directly to storage.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://transparencyhubnetwork.mintlify.site/_mintlify/api/og/v2?division=Drive\u0026amp;title=Start+a+Drive+Upload\u0026amp;description=Get+a+temporary+URL+for+uploading+a+prepared+file+directly+to+storage.\u0026amp;theme=a13e828d2ebc5243c055232a\u0026amp;signature=78ee11f5300b815ef6b8bbb42f5ad8fd0dd6782ce40eefeca2c4097eacca55ab\">\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/transparencyhubnetwork/fAhL4-2bbgFDPO-J/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Transparency Hub Network\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006699\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.transparencyhubnetwork.ai/api-reference/drive/upload-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/drive/upload-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.transparencyhubnetwork.ai/#organization\",\"name\":\"Transparency Hub Network\",\"url\":\"https://docs.transparencyhubnetwork.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/transparencyhubnetwork/6pI7fCXnEFY-8F9d/logo/light.png?fit=max\u0026auto=format\u0026n=6pI7fCXnEFY-8F9d\u0026q=85\u0026s=4feed52686f2d8a3dc7aef077520304e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.transparencyhubnetwork.ai#website\",\"name\":\"Transparency Hub Network\",\"url\":\"https://docs.transparencyhubnetwork.ai\",\"publisher\":{\"@id\":\"https://docs.transparencyhubnetwork.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/upload-session#webpage\",\"url\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/upload-session\",\"name\":\"Start a Drive Upload\",\"description\":\"Get a temporary URL for uploading a prepared file directly to storage.\",\"dateModified\":\"2026-10-24T10:58:07.391Z\",\"isPartOf\":{\"@id\":\"https://docs.transparencyhubnetwork.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/upload-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/upload-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Drive\",\"item\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/items\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Start a Drive Upload\",\"item\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/upload-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/upload-session#apireference\",\"headline\":\"Start a Drive Upload\",\"name\":\"Start a Drive Upload\",\"description\":\"Get a temporary URL for uploading a prepared file directly to storage.\",\"url\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/upload-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.transparencyhubnetwork.ai/api-reference/drive/upload-session#webpage\"},\"dateModified\":\"2026-10-24T10:58:07.391Z\",\"publisher\":{\"@id\":\"https://docs.transparencyhubnetwork.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.transparencyhubnetwork.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Transparency Hub Network\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Transparency Hub Network","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"}]},{"group":"Members","pages":[{"title":"List Members","openapi":"GET /v1/members","href":"/api-reference/members/list"},{"title":"Get Member","openapi":"GET /v1/members/{member_id}","href":"/api-reference/members/get"},{"title":"Create Member","openapi":"POST /v1/members","href":"/api-reference/members/create"},{"title":"Update Member","openapi":"PATCH /v1/members/{member_id}","href":"/api-reference/members/update"}]},{"group":"Membership Types","pages":[{"title":"List Membership Types","openapi":"GET /v1/membership-types","href":"/api-reference/membership-types/list"},{"title":"Get Membership Type","openapi":"GET /v1/membership-types/{type_id}","href":"/api-reference/membership-types/get"},{"title":"Create Membership Type","openapi":"POST /v1/membership-types","href":"/api-reference/membership-types/create"},{"title":"Update Membership Type","openapi":"PATCH /v1/membership-types/{type_id}","href":"/api-reference/membership-types/update"},{"title":"List Membership Type Fees","openapi":"GET /v1/membership-types/{type_id}/dues","href":"/api-reference/payments/membership-type-dues"}]},{"group":"Events","pages":[{"title":"List Events","openapi":"GET /v1/events","href":"/api-reference/events/list"},{"title":"Get Event","openapi":"GET /v1/events/{event_id}","href":"/api-reference/events/get"},{"title":"Create Event","openapi":"POST /v1/events","href":"/api-reference/events/create"},{"title":"Update Event","openapi":"PATCH /v1/events/{event_id}","href":"/api-reference/events/update"},{"title":"List event attendees / RSVPs","openapi":"GET /v1/events/{event_id}/attendees","href":"/api-reference/events/attendees"}]},{"group":"Payments","pages":[{"title":"List Transactions","openapi":"GET /v1/transactions","href":"/api-reference/payments/transactions-list"},{"title":"Get Transaction","openapi":"GET /v1/transactions/{transaction_id}","href":"/api-reference/payments/transactions-get"},{"title":"List Member Dues","openapi":"GET /v1/members/{member_id}/dues","href":"/api-reference/payments/member-dues"},{"title":"List refunds for a transaction","openapi":"GET /v1/transactions/{transaction_id}/refunds","href":"/api-reference/payments/transaction-refunds"}]},{"group":"Community","pages":[{"title":"List Posts","openapi":"GET /v1/posts","href":"/api-reference/community/posts-list"},{"title":"Get Post","openapi":"GET /v1/posts/{post_id}","href":"/api-reference/community/posts-get"},{"title":"List Post Comments","openapi":"GET /v1/posts/{post_id}/comments","href":"/api-reference/community/post-comments"},{"title":"List Groups","openapi":"GET /v1/groups","href":"/api-reference/community/groups-list"},{"title":"Get Group","openapi":"GET /v1/groups/{group_id}","href":"/api-reference/community/groups-get"},{"title":"List Group Members","openapi":"GET /v1/groups/{group_id}/members","href":"/api-reference/community/group-members"},{"title":"Likes on a post","openapi":"GET /v1/posts/{post_id}/likes","href":"/api-reference/community/post-likes"},{"title":"List group join requests","openapi":"GET /v1/groups/{group_id}/requests","href":"/api-reference/community/group-requests"}]},{"group":"Meetings","pages":[{"title":"List Meetings","openapi":"GET /v1/meetings","href":"/api-reference/meetings/list"},{"title":"Get Meeting","openapi":"GET /v1/meetings/{meeting_id}","href":"/api-reference/meetings/get"},{"title":"List Meeting Recordings","openapi":"GET /v1/meetings/{meeting_id}/recordings","href":"/api-reference/meetings/recordings"},{"title":"List Minutes","openapi":"GET /v1/minutes","href":"/api-reference/meetings/minutes-list"},{"title":"Get Minute","openapi":"GET /v1/minutes/{minute_id}","href":"/api-reference/meetings/minutes-get"},{"title":"List meeting feedback","openapi":"GET /v1/meetings/{meeting_id}/feedback","href":"/api-reference/meetings/feedback"}]},{"group":"Organisation","pages":[{"title":"Get the key's chapter","openapi":"GET /v1/chapter","href":"/api-reference/organisation/chapter"},{"title":"List sub-chapters","openapi":"GET /v1/chapter/children","href":"/api-reference/organisation/chapter-children"},{"title":"Get the association","openapi":"GET /v1/association","href":"/api-reference/organisation/association"},{"title":"List roles","openapi":"GET /v1/roles","href":"/api-reference/organisation/roles"},{"title":"List activity log entries","openapi":"GET /v1/activity","href":"/api-reference/organisation/activity"}]},{"group":"Tasks \u0026 Contacts","pages":[{"title":"List tasks","openapi":"GET /v1/tasks","href":"/api-reference/tasks-contacts/tasks"},{"title":"Create task","openapi":"POST /v1/tasks","href":"/api-reference/tasks-contacts/tasks-create"},{"title":"Get task","openapi":"GET /v1/tasks/{task_id}","href":"/api-reference/tasks-contacts/tasks-get"},{"title":"List contacts","openapi":"GET /v1/contacts","href":"/api-reference/tasks-contacts/contacts"},{"title":"Create contact","openapi":"POST /v1/contacts","href":"/api-reference/tasks-contacts/contacts-create"},{"title":"List contact groups","openapi":"GET /v1/contacts/groups","href":"/api-reference/tasks-contacts/contact-groups"},{"title":"Get contact","openapi":"GET /v1/contacts/{contact_id}","href":"/api-reference/tasks-contacts/contacts-get"}]},{"group":"Projects","pages":[{"title":"List projects","openapi":"GET /v1/projects","href":"/api-reference/projects/projects"},{"title":"Get project","openapi":"GET /v1/projects/{project_id}","href":"/api-reference/projects/projects-get"},{"title":"List board columns","openapi":"GET /v1/projects/{project_id}/columns","href":"/api-reference/projects/project-columns"},{"title":"List labels","openapi":"GET /v1/projects/{project_id}/labels","href":"/api-reference/projects/project-labels"},{"title":"List project tasks","openapi":"GET /v1/projects/{project_id}/tasks","href":"/api-reference/projects/project-tasks"},{"title":"Create project task","openapi":"POST /v1/projects/{project_id}/tasks","href":"/api-reference/projects/project-tasks-create"},{"title":"Get project task","openapi":"GET /v1/project-tasks/{task_id}","href":"/api-reference/projects/project-tasks-get"},{"title":"List task updates and comments","openapi":"GET /v1/project-tasks/{task_id}/updates","href":"/api-reference/projects/project-task-updates"},{"title":"List task time logs","openapi":"GET /v1/project-tasks/{task_id}/time-logs","href":"/api-reference/projects/project-task-time-logs"},{"title":"List task attachments (metadata)","openapi":"GET /v1/project-tasks/{task_id}/attachments","href":"/api-reference/projects/project-task-attachments"},{"title":"Task dependencies","openapi":"GET /v1/project-tasks/{task_id}/dependencies","href":"/api-reference/projects/project-task-dependencies"},{"title":"List volunteer requests","openapi":"GET /v1/project-tasks/{task_id}/volunteer-requests","href":"/api-reference/projects/project-task-volunteers"}]},{"group":"Fundraising","pages":[{"title":"List fundraising campaigns","openapi":"GET /v1/fundraising/campaigns","href":"/api-reference/fundraising/campaigns"},{"title":"Get fundraising campaign","openapi":"GET /v1/fundraising/campaigns/{campaign_id}","href":"/api-reference/fundraising/campaigns-get"},{"title":"List campaign payments","openapi":"GET /v1/fundraising/campaigns/{campaign_id}/payments","href":"/api-reference/fundraising/campaign-payments"},{"title":"List campaign recipients","openapi":"GET /v1/fundraising/campaigns/{campaign_id}/recipients","href":"/api-reference/fundraising/campaign-recipients"},{"title":"Start a Donation","openapi":"POST /v1/fundraising/campaigns/{campaign_id}/donations","href":"/api-reference/fundraising/donations"}]},{"group":"Gatherings","pages":[{"title":"List gatherings","openapi":"GET /v1/gatherings","href":"/api-reference/gatherings/gatherings"},{"title":"Get gathering","openapi":"GET /v1/gatherings/{gathering_id}","href":"/api-reference/gatherings/gatherings-get"},{"title":"List ticket classes","openapi":"GET /v1/gatherings/{gathering_id}/ticket-classes","href":"/api-reference/gatherings/ticket-classes"},{"title":"List attendees","openapi":"GET /v1/gatherings/{gathering_id}/attendees","href":"/api-reference/gatherings/attendees"},{"title":"List orders","openapi":"GET /v1/gatherings/{gathering_id}/orders","href":"/api-reference/gatherings/orders"}]},{"group":"Elections","pages":[{"title":"List elections","openapi":"GET /v1/elections","href":"/api-reference/elections/elections"},{"title":"Get election","openapi":"GET /v1/elections/{election_id}","href":"/api-reference/elections/elections-get"},{"title":"List questions with candidates","openapi":"GET /v1/elections/{election_id}/questions","href":"/api-reference/elections/questions"},{"title":"Get results (when visible)","openapi":"GET /v1/elections/{election_id}/results","href":"/api-reference/elections/results"}]},{"group":"Drive","pages":[{"title":"List Drive items (metadata)","openapi":"GET /v1/drive/items","href":"/api-reference/drive/items"},{"title":"Get Drive item (metadata)","openapi":"GET /v1/drive/items/{item_id}","href":"/api-reference/drive/items-get"},{"title":"Download a Drive File","openapi":"GET /v1/drive/items/{item_id}/download","href":"/api-reference/drive/download"},{"title":"Create a Drive Document","openapi":"POST /v1/drive/documents","description":"Create a document from text, Markdown, CSV or a prepared file.","href":"/api-reference/drive/create-document"},{"title":"Start a Drive Upload","openapi":"POST /v1/drive/files/upload-session","href":"/api-reference/drive/upload-session"},{"title":"Commit a Drive Upload","openapi":"POST /v1/drive/files/commit","description":"Validate an uploaded file and make it available in Drive.","href":"/api-reference/drive/commit-upload"}]},{"group":"Applications","pages":[{"title":"List membership applications","openapi":"GET /v1/applications","href":"/api-reference/applications/applications"},{"title":"Get application with answers","openapi":"GET /v1/applications/{application_id}","href":"/api-reference/applications/applications-get"},{"title":"List application form templates","openapi":"GET /v1/application-forms","href":"/api-reference/applications/forms"},{"title":"Get form template with definition","openapi":"GET /v1/application-forms/{template_id}","href":"/api-reference/applications/forms-get"},{"title":"List onboarding workflows","openapi":"GET /v1/workflows","href":"/api-reference/applications/workflows"}]},{"group":"Notifications \u0026 Support","pages":[{"title":"List notifications","openapi":"GET /v1/notifications","href":"/api-reference/notifications/notifications"},{"title":"List support requests","openapi":"GET /v1/support-requests","href":"/api-reference/notifications/support-requests"},{"title":"Get support request","openapi":"GET /v1/support-requests/{request_id}","href":"/api-reference/notifications/support-requests-get"}]},{"group":"Communication Campaigns","pages":[{"title":"List communication campaigns","openapi":"GET /v1/campaigns","href":"/api-reference/campaigns/campaigns"},{"title":"Get campaign","openapi":"GET /v1/campaigns/{campaign_id}","href":"/api-reference/campaigns/campaigns-get"}]}]}]},{"anchor":"Website","href":"https://transparencyhubnetwork.ai","icon":"globe"},{"anchor":"Contact Us","href":"mailto:support@transparencyhubnetwork.ai","icon":"envelope"}]},"basePath":"","title":"Start a Drive Upload - Transparency Hub Network","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}