Upload the exact binary bytes for a previously-created attachment upload URL. This operation uses the short-lived upload token header returned by POST /emails/attachment-uploads, not a Sendmux API key.
Short-lived upload token returned by POST /emails/attachment-uploads. Send this header or X-Sendmux-Upload-Token. If both are sent, their values must match.
X-Sendmux-Upload-Token
string
Compatibility alias for X-Qubrics-Upload-Token, retained indefinitely.
Content-Length
integer<int64>
required
Exact number of bytes in the binary request body.
Required range: x >= 1
Path Parameters
upload_id
string
required
Upload intent ID returned by POST /emails/attachment-uploads.
Pattern: ^upl_[a-z0-9]{24}$
Body
application/octet-stream
The body is of type file.
Response
Attachment uploaded successfully
meta
object
required
Hide child attributes
meta.request_id
string
required
Unique request identifier
Example:
"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
ok
enum<boolean>
required
Available options:
true
data
object
required
Hide child attributes
data.attachment_id
string
required
Temporary attachment ID to use in email attachments[].
Pattern: ^att_[a-z0-9]{24}$
Example:
"att_tz4a98xxat96iws9zmbrgj3a"
data.content_type
string
required
Stored attachment MIME type
Example:
"application/pdf"
data.expires_at
string<date-time>
required
ISO timestamp when this temporary attachment reference expires.
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Qubrics","description":"The intelligent email layer","colors":{"primary":"#6a75f1","light":"#5a84e9","dark":"#004aad"},"logo":{"light":"https://mintcdn.com/sendmux/9EML6-L2IAWgIXVX/images/logo-light.svg?fit=max\u0026auto=format\u0026n=9EML6-L2IAWgIXVX\u0026q=85\u0026s=0d301b6a4a28e21cf585335973584967","dark":"https://mintcdn.com/sendmux/9EML6-L2IAWgIXVX/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=9EML6-L2IAWgIXVX\u0026q=85\u0026s=612f5f9e57f97fd13812a619d185a2f9","href":"https://qubrics.com/docs"},"favicon":"https://mintcdn.com/sendmux/9EML6-L2IAWgIXVX/images/logo-light.svg?fit=max\u0026auto=format\u0026n=9EML6-L2IAWgIXVX\u0026q=85\u0026s=0d301b6a4a28e21cf585335973584967","api":{"params":{"expanded":"all"},"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript","go"],"autogenerate":true}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"/changelog","label":"Changelog"},{"href":"mailto:contact@qubrics.com","label":"Support"}],"primary":{"type":"button","label":"App","href":"https://app.qubrics.com"}},"footer":{"socials":{"x":"https://x.com/sendmux","github":"https://github.com/qubrics"}},"seo":{"metatags":{"canonical":"https://qubrics.com/docs"}},"fonts":{"family":"Lato","weight":400},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"App","href":"https://app.qubrics.com"},{"anchor":"Website","href":"https://qubrics.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sendmux","hasAudioNarration":false,"actualSubdomain":"sendmux","customDomains":["sendmux.ai"],"gitSource":{"type":"github","owner":"qubrics","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{},"buildId":"6afbb1b8a017c34cfd2fe8fa","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"Guides","count":80},{"language":"default","tag":"Mailbox API","count":65},{"language":"default","tag":"Management API","count":58},{"language":"default","tag":"AI integrations","count":32},{"language":"default","tag":"MCP","count":23},{"language":"default","tag":"Client setup","count":23},{"language":"default","tag":"Developer tools","count":21},{"language":"default","tag":"Sending accounts","count":18},{"language":"default","tag":"Mailboxes","count":15},{"language":"default","tag":"Messages","count":14}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{font-size:103%}.antialiased{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6,.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{letter-spacing:var(--tracking-tight)!important}body,.prose,.prose p,.prose li,.prose td,.prose th,.prose blockquote{letter-spacing:0.00625rem!important}.eyebrow.h-5{text-transform:uppercase;letter-spacing:0.063em!important}h3.sidebar-title,#sidebar-title{display:flex;align-items:center;height:1.75rem;color:oklch(0.345 0.006 264 / 60%);text-transform:uppercase;font-size:0.7rem;font-weight:400;letter-spacing:0.044rem!important}.dark h3.sidebar-title,.dark #sidebar-title{color:oklch(0.985 0.001 106.423 / 60%)}"}],"page":{"pagePath":"api/attachments/upload-bytes-to-an-attachment-upload-url","slug":"/api/attachments/upload-bytes-to-an-attachment-upload-url","pageMetadata":{"title":"Upload bytes to an attachment upload URL","description":"Upload the exact binary bytes for a previously-created attachment upload URL. This operation uses the short-lived upload token header returned by POST /emails/attachment-uploads, not a Sendmux API key.","deprecated":null,"version":null,"openapi":"/openapi-sending.json put /emails/attachment-uploads/{upload_id}","href":"/api/attachments/upload-bytes-to-an-attachment-upload-url","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: \"Upload the exact binary bytes for a previously-created attachment upload URL. This operation uses the short-lived upload token header returned by POST /emails/attachment-uploads, not a Sendmux API key.\"\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":"Upload bytes to an attachment upload URL","description":"Upload the exact binary bytes for a previously-created attachment upload URL. This operation uses the short-lived upload token header returned by POST /emails/attachment-uploads, not a Sendmux API key.","deprecated":null,"version":null,"openapi":"/openapi-sending.json put /emails/attachment-uploads/{upload_id}","href":"/api/attachments/upload-bytes-to-an-attachment-upload-url","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Upload the exact binary bytes for a previously-created attachment upload URL. This operation uses the short-lived upload token header returned by POST /emails/attachment-uploads, not a Sendmux API key.","operationId":"sendingCompleteAttachmentUpload","parameters":["bc860628-4c11-4fdd-b793-107fe229a985","3c1b30bd-c648-4f02-a63b-ebe604c093be","4a5feece-20dc-47b6-80b8-a489fe821c87","b033dacc-e267-4b44-9618-1900703439e8"],"requestBody":"a6707546-8433-434c-87ee-8a49d0df92f7","responses":{"201":"f05bdfaf-471b-4c12-8e69-156d769bc89e","400":"dbda3854-c4f2-4eb3-8cf3-793b33bad9e2","401":"b7dfdb1d-1e1d-4d4a-a8ff-b9933f4d1744","404":"6da6d067-cfba-4d57-aeb9-865fa0fdfff5","409":"01fd073e-479b-4ea1-9c2f-2bf1f7482ad6","413":"eaabaf71-62ba-4a3e-9303-2277d52cb1a9","422":"705a2c98-118e-44c8-82d8-f71b1ff7791e","503":"532e7903-c295-4d18-8877-eee0077e38ec"},"security":["463abd3f-71d1-4d62-af12-2c36c2ddb8fa","a1e40fee-c861-4fd3-8da3-8552844e0095"],"summary":"Upload bytes to an attachment upload URL","tags":["Attachments"],"method":"put","type":"path","servers":["e6775ce1-42a3-46ac-9316-1c41d7fde7bd"],"path":"/emails/attachment-uploads/{upload_id}","baseUrlOptions":["https://smtp.sendmux.ai/api/v1"],"title":"Upload bytes to an attachment upload URL","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"bc860628-4c11-4fdd-b793-107fe229a985":{"description":"Short-lived upload token returned by POST /emails/attachment-uploads. Send this header or X-Sendmux-Upload-Token. If both are sent, their values must match.","in":"header","name":"X-Qubrics-Upload-Token","required":false,"schema":{"type":"string","isRequired":false,"description":"Short-lived upload token returned by POST /emails/attachment-uploads. Send this header or X-Sendmux-Upload-Token. If both are sent, their values must match.","uniqueKey":"","typeLabel":"string"}},"3c1b30bd-c648-4f02-a63b-ebe604c093be":{"description":"Compatibility alias for X-Qubrics-Upload-Token, retained indefinitely.","in":"header","name":"X-Sendmux-Upload-Token","required":false,"schema":{"type":"string","isRequired":false,"description":"Compatibility alias for X-Qubrics-Upload-Token, retained indefinitely.","uniqueKey":"","typeLabel":"string"}},"4a5feece-20dc-47b6-80b8-a489fe821c87":{"description":"Exact number of bytes in the binary request body.","example":20480,"in":"header","name":"Content-Length","required":true,"schema":{"format":"int64","minimum":1,"type":"integer","isRequired":true,"description":"Exact number of bytes in the binary request body.","uniqueKey":"","typeLabel":"integer\u003cint64>"}},"b033dacc-e267-4b44-9618-1900703439e8":{"description":"Upload intent ID returned by POST /emails/attachment-uploads.","in":"path","name":"upload_id","required":true,"schema":{"pattern":"^upl_[a-z0-9]{24}$","type":"string","isRequired":true,"description":"Upload intent ID returned by POST /emails/attachment-uploads.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string","uniqueKey":"","typeLabel":"file"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"f05bdfaf-471b-4c12-8e69-156d769bc89e":{"content":{"application/json":{"schema":{"type":"object","required":["data","ok","meta"],"properties":{"meta":{"additionalProperties":false,"properties":{"request_id":{"description":"Unique request identifier","example":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx","type":"string","isRequired":true,"uniqueKey":"meta.request_id","typeLabel":"string"}},"required":["request_id"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"ok":{"enum":[true],"type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"enum\u003cboolean>"},"data":{"additionalProperties":false,"properties":{"attachment_id":{"description":"Temporary attachment ID to use in email attachments[].","example":"att_tz4a98xxat96iws9zmbrgj3a","pattern":"^att_[a-z0-9]{24}$","type":"string","isRequired":true,"uniqueKey":"data.attachment_id","typeLabel":"string"},"content_type":{"description":"Stored attachment MIME type","example":"application/pdf","type":"string","isRequired":true,"uniqueKey":"data.content_type","typeLabel":"string"},"expires_at":{"description":"ISO timestamp when this temporary attachment reference expires.","example":"2026-07-07T08:15:00.000Z","format":"date-time","type":"string","isRequired":true,"uniqueKey":"data.expires_at","typeLabel":"string\u003cdate-time>"},"filename":{"description":"Stored attachment filename","example":"analysis.pdf","type":"string","isRequired":true,"uniqueKey":"data.filename","typeLabel":"string"},"size_bytes":{"description":"Stored attachment byte size","example":20480,"type":"integer","isRequired":true,"uniqueKey":"data.size_bytes","typeLabel":"integer"}},"required":["attachment_id","filename","content_type","size_bytes","expires_at"],"type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":true,"data":{"attachment_id":"att_tz4a98xxat96iws9zmbrgj3a","content_type":"application/pdf","expires_at":"2026-07-07T08:15:00.000Z","filename":"analysis.pdf","size_bytes":20480}}}},"exampleType":"generated"}},"description":"Attachment uploaded successfully","headers":{"Location":{"description":"Canonical URL for the temporary uploaded attachment metadata.","schema":{"type":"string"}}},"exampleType":"generated"},"dbda3854-c4f2-4eb3-8cf3-793b33bad9e2":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","example":"validation_error","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"True when the client may safely retry the same request. 429 and 5xx default true; 4xx default false.","type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to error documentation","format":"uri","type":"string","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"},"errors":{"description":"Accumulated per-field issues (validation errors)","items":{"additionalProperties":false,"properties":{"code":{"description":"Issue code from the validator","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path to the failing field","example":"to.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue message","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"required":["field","code","message"],"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.errors","typeLabel":"object[]"},"param":{"description":"Parameter that caused the error","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"required":["code","message","retryable"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"additionalProperties":false,"properties":{"request_id":{"description":"Unique request identifier","example":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx","type":"string","isRequired":true,"uniqueKey":"meta.request_id","typeLabel":"string"}},"required":["request_id"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"ok":{"enum":[false],"type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"enum\u003cboolean>"}},"required":["ok","error","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"validation_error","message":"\u003cstring>","retryable":true,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"to.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Missing or invalid upload headers","exampleType":"generated"},"b7dfdb1d-1e1d-4d4a-a8ff-b9933f4d1744":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","example":"validation_error","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"True when the client may safely retry the same request. 429 and 5xx default true; 4xx default false.","type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to error documentation","format":"uri","type":"string","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"},"errors":{"description":"Accumulated per-field issues (validation errors)","items":{"additionalProperties":false,"properties":{"code":{"description":"Issue code from the validator","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path to the failing field","example":"to.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue message","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"required":["field","code","message"],"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.errors","typeLabel":"object[]"},"param":{"description":"Parameter that caused the error","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"required":["code","message","retryable"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"additionalProperties":false,"properties":{"request_id":{"description":"Unique request identifier","example":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx","type":"string","isRequired":true,"uniqueKey":"meta.request_id","typeLabel":"string"}},"required":["request_id"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"ok":{"enum":[false],"type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"enum\u003cboolean>"}},"required":["ok","error","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"validation_error","message":"\u003cstring>","retryable":true,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"to.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Upload token missing, invalid, or expired","exampleType":"generated"},"6da6d067-cfba-4d57-aeb9-865fa0fdfff5":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","example":"validation_error","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"True when the client may safely retry the same request. 429 and 5xx default true; 4xx default false.","type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to error documentation","format":"uri","type":"string","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"},"errors":{"description":"Accumulated per-field issues (validation errors)","items":{"additionalProperties":false,"properties":{"code":{"description":"Issue code from the validator","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path to the failing field","example":"to.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue message","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"required":["field","code","message"],"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.errors","typeLabel":"object[]"},"param":{"description":"Parameter that caused the error","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"required":["code","message","retryable"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"additionalProperties":false,"properties":{"request_id":{"description":"Unique request identifier","example":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx","type":"string","isRequired":true,"uniqueKey":"meta.request_id","typeLabel":"string"}},"required":["request_id"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"ok":{"enum":[false],"type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"enum\u003cboolean>"}},"required":["ok","error","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"validation_error","message":"\u003cstring>","retryable":true,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"to.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Upload intent not found or expired","exampleType":"generated"},"01fd073e-479b-4ea1-9c2f-2bf1f7482ad6":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","example":"validation_error","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"True when the client may safely retry the same request. 429 and 5xx default true; 4xx default false.","type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to error documentation","format":"uri","type":"string","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"},"errors":{"description":"Accumulated per-field issues (validation errors)","items":{"additionalProperties":false,"properties":{"code":{"description":"Issue code from the validator","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path to the failing field","example":"to.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue message","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"required":["field","code","message"],"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.errors","typeLabel":"object[]"},"param":{"description":"Parameter that caused the error","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"required":["code","message","retryable"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"additionalProperties":false,"properties":{"request_id":{"description":"Unique request identifier","example":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx","type":"string","isRequired":true,"uniqueKey":"meta.request_id","typeLabel":"string"}},"required":["request_id"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"ok":{"enum":[false],"type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"enum\u003cboolean>"}},"required":["ok","error","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"validation_error","message":"\u003cstring>","retryable":true,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"to.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Upload already completed with different content","exampleType":"generated"},"eaabaf71-62ba-4a3e-9303-2277d52cb1a9":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","example":"validation_error","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"True when the client may safely retry the same request. 429 and 5xx default true; 4xx default false.","type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to error documentation","format":"uri","type":"string","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"},"errors":{"description":"Accumulated per-field issues (validation errors)","items":{"additionalProperties":false,"properties":{"code":{"description":"Issue code from the validator","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path to the failing field","example":"to.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue message","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"required":["field","code","message"],"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.errors","typeLabel":"object[]"},"param":{"description":"Parameter that caused the error","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"required":["code","message","retryable"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"additionalProperties":false,"properties":{"request_id":{"description":"Unique request identifier","example":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx","type":"string","isRequired":true,"uniqueKey":"meta.request_id","typeLabel":"string"}},"required":["request_id"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"ok":{"enum":[false],"type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"enum\u003cboolean>"}},"required":["ok","error","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"validation_error","message":"\u003cstring>","retryable":true,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"to.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Uploaded bytes do not match the expected size","exampleType":"generated"},"705a2c98-118e-44c8-82d8-f71b1ff7791e":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","example":"validation_error","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"True when the client may safely retry the same request. 429 and 5xx default true; 4xx default false.","type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to error documentation","format":"uri","type":"string","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"},"errors":{"description":"Accumulated per-field issues (validation errors)","items":{"additionalProperties":false,"properties":{"code":{"description":"Issue code from the validator","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path to the failing field","example":"to.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue message","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"required":["field","code","message"],"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.errors","typeLabel":"object[]"},"param":{"description":"Parameter that caused the error","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"required":["code","message","retryable"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"additionalProperties":false,"properties":{"request_id":{"description":"Unique request identifier","example":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx","type":"string","isRequired":true,"uniqueKey":"meta.request_id","typeLabel":"string"}},"required":["request_id"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"ok":{"enum":[false],"type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"enum\u003cboolean>"}},"required":["ok","error","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"validation_error","message":"\u003cstring>","retryable":true,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"to.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Attachment validation failed","exampleType":"generated"},"532e7903-c295-4d18-8877-eee0077e38ec":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","example":"validation_error","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"True when the client may safely retry the same request. 429 and 5xx default true; 4xx default false.","type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to error documentation","format":"uri","type":"string","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"},"errors":{"description":"Accumulated per-field issues (validation errors)","items":{"additionalProperties":false,"properties":{"code":{"description":"Issue code from the validator","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path to the failing field","example":"to.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue message","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"required":["field","code","message"],"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.errors","typeLabel":"object[]"},"param":{"description":"Parameter that caused the error","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"required":["code","message","retryable"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"additionalProperties":false,"properties":{"request_id":{"description":"Unique request identifier","example":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx","type":"string","isRequired":true,"uniqueKey":"meta.request_id","typeLabel":"string"}},"required":["request_id"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"ok":{"enum":[false],"type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"enum\u003cboolean>"}},"required":["ok","error","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"validation_error","message":"\u003cstring>","retryable":true,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"to.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Attachment storage temporarily unavailable","exampleType":"generated"}},"security":{"463abd3f-71d1-4d62-af12-2c36c2ddb8fa":{"UploadTokenQubrics":{"in":"header","name":"X-Qubrics-Upload-Token","type":"apiKey","scopes":[],"schemeName":"UploadTokenQubrics"}},"a1e40fee-c861-4fd3-8da3-8552844e0095":{"UploadTokenSendmux":{"in":"header","name":"X-Sendmux-Upload-Token","type":"apiKey","scopes":[],"schemeName":"UploadTokenSendmux"}}},"servers":{"e6775ce1-42a3-46ac-9316-1c41d7fde7bd":{"description":"Production","url":"https://smtp.sendmux.ai/api/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"in":"header","name":"X-Qubrics-Upload-Token","type":"apiKey","scopes":[],"schemeName":"UploadTokenQubrics"},"schema":{"title":"X-Qubrics-Upload-Token","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"UploadTokenQubrics","name":"X-Qubrics-Upload-Token"}],"title":"UploadTokenQubrics"},{"schemes":[{"scheme":{"in":"header","name":"X-Sendmux-Upload-Token","type":"apiKey","scopes":[],"schemeName":"UploadTokenSendmux"},"schema":{"title":"X-Sendmux-Upload-Token","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"UploadTokenSendmux","name":"X-Sendmux-Upload-Token"}],"title":"UploadTokenSendmux"}]},"originalFileLocation":"openapi-sending.json"},"subdomain":"sendmux","siteName":"Qubrics","title":"Upload bytes to an attachment upload URL - Qubrics","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T04:36:28.662Z","originalFileLocation":"api/attachments/upload-bytes-to-an-attachment-upload-url.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=\"Upload the exact binary bytes for a previously-created attachment upload URL. This operation uses the short-lived upload token header returned by POST /emails/attachment-uploads, not a Sendmux API key.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Qubrics\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sendmux/F4atzrrDO9okNEWg/_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=\"/docs/mintlify-assets/_mintlify/favicons/sendmux/F4atzrrDO9okNEWg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sendmux/F4atzrrDO9okNEWg/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sendmux/F4atzrrDO9okNEWg/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sendmux/F4atzrrDO9okNEWg/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sendmux/F4atzrrDO9okNEWg/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sendmux/F4atzrrDO9okNEWg/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sendmux/F4atzrrDO9okNEWg/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sendmux/F4atzrrDO9okNEWg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upload bytes to an attachment upload URL - Qubrics\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload the exact binary bytes for a previously-created attachment upload URL. This operation uses the short-lived upload token header returned by POST /emails/attachment-uploads, not a Sendmux API key.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Qubrics\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://qubrics.com/docs/api/attachments/upload-bytes-to-an-attachment-upload-url\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sendmux.mintlify.site/docs/_mintlify/api/og/v2?division=Attachments\u0026amp;title=Upload+bytes+to+an+attachment+upload+URL\u0026amp;description=Upload+the+exact+binary+bytes+for+a+previously-created+attachment+upload+URL.+This+operation+uses+the+short-lived+upload+token+header+returned+by+POST+%2Femails%2Fa\u0026amp;theme=8d3480837e3238732b09c327\u0026amp;signature=ab5881f13aa4b75aff59e2a405ef9ed38bd5b6b16be13172caa9acfcc027d753\">\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=\"Upload bytes to an attachment upload URL - Qubrics\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload the exact binary bytes for a previously-created attachment upload URL. This operation uses the short-lived upload token header returned by POST /emails/attachment-uploads, not a Sendmux API key.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sendmux.mintlify.site/docs/_mintlify/api/og/v2?division=Attachments\u0026amp;title=Upload+bytes+to+an+attachment+upload+URL\u0026amp;description=Upload+the+exact+binary+bytes+for+a+previously-created+attachment+upload+URL.+This+operation+uses+the+short-lived+upload+token+header+returned+by+POST+%2Femails%2Fa\u0026amp;theme=8d3480837e3238732b09c327\u0026amp;signature=ab5881f13aa4b75aff59e2a405ef9ed38bd5b6b16be13172caa9acfcc027d753\">\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=\"/docs/mintlify-assets/_mintlify/favicons/sendmux/F4atzrrDO9okNEWg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Qubrics\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6a75f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://qubrics.com/docs/api/attachments/upload-bytes-to-an-attachment-upload-url\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api/attachments/upload-bytes-to-an-attachment-upload-url.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://qubrics.com/#organization\",\"name\":\"Qubrics\",\"url\":\"https://qubrics.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sendmux/9EML6-L2IAWgIXVX/images/logo-light.svg?fit=max\u0026auto=format\u0026n=9EML6-L2IAWgIXVX\u0026q=85\u0026s=0d301b6a4a28e21cf585335973584967\"}},{\"@type\":\"WebSite\",\"@id\":\"https://qubrics.com/docs#website\",\"name\":\"Qubrics\",\"url\":\"https://qubrics.com/docs\",\"publisher\":{\"@id\":\"https://qubrics.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://qubrics.com/docs/api/attachments/upload-bytes-to-an-attachment-upload-url#webpage\",\"url\":\"https://qubrics.com/docs/api/attachments/upload-bytes-to-an-attachment-upload-url\",\"name\":\"Upload bytes to an attachment upload URL\",\"description\":\"Upload the exact binary bytes for a previously-created attachment upload URL. This operation uses the short-lived upload token header returned by POST /emails/attachment-uploads, not a Sendmux API key.\",\"dateModified\":\"2026-11-03T04:36:28.662Z\",\"isPartOf\":{\"@id\":\"https://qubrics.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://qubrics.com/docs/api/attachments/upload-bytes-to-an-attachment-upload-url#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://qubrics.com/docs/api/attachments/upload-bytes-to-an-attachment-upload-url#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Attachments\",\"item\":\"https://qubrics.com/docs/api/attachments/upload-an-attachment\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upload bytes to an attachment upload URL\",\"item\":\"https://qubrics.com/docs/api/attachments/upload-bytes-to-an-attachment-upload-url\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://qubrics.com/docs/api/attachments/upload-bytes-to-an-attachment-upload-url#apireference\",\"headline\":\"Upload bytes to an attachment upload URL\",\"name\":\"Upload bytes to an attachment upload URL\",\"description\":\"Upload the exact binary bytes for a previously-created attachment upload URL. This operation uses the short-lived upload token header returned by POST /emails/attachment-uploads, not a Sendmux API key.\",\"url\":\"https://qubrics.com/docs/api/attachments/upload-bytes-to-an-attachment-upload-url\",\"mainEntityOfPage\":{\"@id\":\"https://qubrics.com/docs/api/attachments/upload-bytes-to-an-attachment-upload-url#webpage\"},\"dateModified\":\"2026-11-03T04:36:28.662Z\",\"publisher\":{\"@id\":\"https://qubrics.com/#organization\"},\"isPartOf\":{\"@id\":\"https://qubrics.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Qubrics\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Qubrics\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api/attachments/upload-bytes-to-an-attachment-upload-url.md","siteName":"Qubrics","nav":{"global":{"anchors":[{"anchor":"App","href":"https://app.qubrics.com"},{"anchor":"Website","href":"https://qubrics.com"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Management API","pages":[{"title":"Management API","href":"/api/introduction"}]},{"tab":"Mailbox API","pages":[{"title":"Mailbox API","href":"/mailbox-api/introduction"}]},{"tab":"Sending API","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/sending-api/introduction"},{"title":"Errors","href":"/sending-api/errors"},{"title":"Get Sending connection","deprecated":null,"version":null,"openapi":"/openapi-sending.json get /me","href":"/api/meta/get-sending-connection"}]},{"group":"Emails","pages":[{"title":"Send a single email","deprecated":null,"version":null,"openapi":"/openapi-sending.json post /emails/send","href":"/api/emails/send-a-single-email"},{"title":"Send a batch of emails","deprecated":null,"version":null,"openapi":"/openapi-sending.json post /emails/send/batch","href":"/api/emails/send-a-batch-of-emails"}]},{"group":"Attachments","pages":[{"title":"Upload an attachment","deprecated":null,"version":null,"openapi":"/openapi-sending.json post /emails/attachments","href":"/api/attachments/upload-an-attachment"},{"title":"Get attachment metadata","deprecated":null,"version":null,"openapi":"/openapi-sending.json get /emails/attachments/{attachment_id}","href":"/api/attachments/get-attachment-metadata"},{"title":"Create an attachment upload URL","description":"Create a short-lived upload URL and token that lets a remote client PUT one binary attachment without exposing the API key on the upload request. Requires `email.send` permission.","deprecated":null,"version":null,"openapi":"/openapi-sending.json post /emails/attachment-uploads","href":"/api/attachments/create-an-attachment-upload-url"},{"title":"Upload bytes to an attachment upload URL","deprecated":null,"version":null,"openapi":"/openapi-sending.json put /emails/attachment-uploads/{upload_id}","href":"/api/attachments/upload-bytes-to-an-attachment-upload-url"}]}]}]},"basePath":"","title":"Upload bytes to an attachment upload URL - Qubrics","buildId":"dpl_H5KQTnCewfWWvJxA7c3bCm7MFbb6","deploymentId":"dpl_H5KQTnCewfWWvJxA7c3bCm7MFbb6","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-Cy2NURoQ.js","utils-CTKFcKhQ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-Dbtv_wCw.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DYh_uLft.js","snippetPresets-DxwpEH1-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-D9KrOqxg.js","ApiExamples-clm-D0kL.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BBf1wA6D.js","shallow-BToikfmA.js","getApiPlaygroundDisplay-pkRLxJ6E.js","CodeSnippet-CSk3BdcJ.js","CodeSnippets-Dy5u3aPE.js","getPastedJson-DNhwlub0.js","icon-DBGzFdPQ.js","MethodPill-CdyVkQoM.js","DuplicateIcon-DEe2SEjX.js","createIcon-BnnV9h2U.js","DynamicMarkdown-DcvJmTWC.js","SectionHeading-C5-ljYUo.js","axios-vUo_bRtp.js","Markdown-CNKtyJ6_.js","dist-f_--J3AN.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-BDxDyTJx.js"]}