Qubrics API key. Use a root API key for Management API routes, or a mailbox credential for Mailbox API routes. Obtain keys from the dashboard under API Keys.
Scopes
mailbox.read
Read mailbox contents (folders, messages)
mailbox.drafts.write
Create and edit saved mailbox drafts
Headers
Idempotency-Key
string
Reuse this key when retrying the same create request.
Maximum string length: 255
Query Parameters
mailbox_id
string
Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.
Body
application/json
attachments
object[]
Attachments and inline images.
Maximum array length: 10
Hide child attributes
attachments.blob_id
string
required
An attachment uploaded to this mailbox.
Required string length: 1 - 255
attachments.content_type
string
required
Attachment media type.
Required string length: 1 - 255
attachments.filename
string
required
Attachment filename.
Required string length: 1 - 255
attachments.size_bytes
integer
required
Attachment size in bytes; verified when saved.
Required range: 0 <= x <= 7500000
attachments.content_id
string
Content ID referenced by an inline image.
Required string length: 1 - 998
attachments.disposition
enum<string>
Whether the attachment appears within the message.
Available options:
attachment,
inline
bcc
object[]
Hidden copied recipients.
Maximum array length: 50
Hide child attributes
bcc.email
string<email>
required
Email address.
Maximum string length: 254
bcc.name
string | null
Display name.
Maximum string length: 255
cc
object[]
Visible copied recipients.
Maximum array length: 50
Hide child attributes
cc.email
string<email>
required
Email address.
Maximum string length: 254
cc.name
string | null
Display name.
Maximum string length: 255
custom_headers
object
Custom X-* headers. Writes reject X-SES-TENANT, X-SES-CONFIGURATION-SET and X-SES-MESSAGE-TAGS case-insensitively. On updates, omit this field to preserve saved headers, or pass {} to clear them.
Hide child attributes
custom_headers.{key}
string
from
object
Authorised sender; defaults to this inbox.
Hide child attributes
from.email
string<email>
required
Email address.
Maximum string length: 254
from.name
string | null
Display name.
Maximum string length: 255
html_body
string
HTML body, preserved when saved.
Maximum string length: 1000000
reply_to
object[]
Authorised reply addresses; defaults to this inbox.
Maximum array length: 20
Hide child attributes
reply_to.email
string<email>
required
Email address.
Maximum string length: 254
reply_to.name
string | null
Display name.
Maximum string length: 255
reply_to_message_id
string
Message in this inbox to reply to; thread headers are snapshotted.
Required string length: 1 - 255
source
object
Source for this draft. Adoption requires Idempotency-Key. Explicit content fields override prepared defaults.
Hide child attributes
source.action
enum<string>
required
Prepare a reply, reply-all, forward or adopt an existing draft. Source content and attachments are saved with the draft.
Available options:
reply,
reply_all,
forward,
adopt
source.message_id
string
required
Source message in this inbox.
Required string length: 1 - 255
subject
string
Subject; may be empty.
Maximum string length: 998
text_body
string
Plain-text body.
Maximum string length: 1000000
to
object[]
Primary recipients; at most 50 total across To, Cc and Bcc.
Maximum array length: 50
Hide child attributes
to.email
string<email>
required
Email address.
Maximum string length: 254
to.name
string | null
Display name.
Maximum string length: 255
Response
Saved draft and its revision.
meta
object
required
Hide child attributes
meta.request_id
string
required
Example:
"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
ok
enum<boolean>
required
Available options:
true
data
object
required
Hide child attributes
data.failure_code
enum<string> | null
required
Safe failure reason. Correct failed draft content or current permissions before retrying. Never retry an uncertain send as a new message.
Available options:
preparation_failed,
authorisation_revoked,
send_rejected
data.id
string
required
Stable draft ID.
data.in_reply_to
string[]
required
Snapshotted parent message identifiers.
data.message_id
string | null
required
Saved message ID; absent until saving finishes.
data.references
string[]
required
Snapshotted conversation identifiers.
data.revision
integer
required
Current draft revision.
data.schedule_version
integer
required
Schedule control version. Changes whenever a schedule is created, moved or cancelled.
Required range: x >= 0
data.scheduled_for
string<date-time> | null
required
Requested earliest send time, retained after sending. Null when no schedule is set.
data.status
enum<string>
required
Saving or sending state.
Available options:
preparing,
ready,
scheduled,
sending,
queued,
uncertain,
failed,
deleted
data.attachments
object[]
Attachments and inline images.
Maximum array length: 10
Hide child attributes
data.attachments.blob_id
string
required
An attachment uploaded to this mailbox.
Required string length: 1 - 255
data.attachments.content_type
string
required
Attachment media type.
Required string length: 1 - 255
data.attachments.filename
string
required
Attachment filename.
Required string length: 1 - 255
data.attachments.size_bytes
integer
required
Attachment size in bytes; verified when saved.
Required range: 0 <= x <= 7500000
data.attachments.content_id
string
Content ID referenced by an inline image.
Required string length: 1 - 998
data.attachments.disposition
enum<string>
Whether the attachment appears within the message.
Available options:
attachment,
inline
data.bcc
object[]
Hidden copied recipients.
Maximum array length: 50
Hide child attributes
data.bcc.email
string<email>
required
Email address.
Maximum string length: 254
data.bcc.name
string | null
Display name.
Maximum string length: 255
data.cc
object[]
Visible copied recipients.
Maximum array length: 50
Hide child attributes
data.cc.email
string<email>
required
Email address.
Maximum string length: 254
data.cc.name
string | null
Display name.
Maximum string length: 255
data.custom_headers
object
Custom X-* headers preserved with this revision. Older drafts containing reserved headers remain readable.
Hide child attributes
data.custom_headers.{key}
string
data.from
object
Authorised sender; defaults to this inbox.
Hide child attributes
data.from.email
string<email>
required
Email address.
Maximum string length: 254
data.from.name
string | null
Display name.
Maximum string length: 255
data.html_body
string
HTML body, preserved when saved.
Maximum string length: 1000000
data.reply_to
object[]
Authorised reply addresses; defaults to this inbox.
Maximum array length: 20
Hide child attributes
data.reply_to.email
string<email>
required
Email address.
Maximum string length: 254
data.reply_to.name
string | null
Display name.
Maximum string length: 255
data.reply_to_message_id
string
Original message this draft replies to.
data.subject
string
Subject; may be empty.
Maximum string length: 998
data.text_body
string
Plain-text body.
Maximum string length: 1000000
data.to
object[]
Primary recipients; at most 50 total across To, Cc and Bcc.
{"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/neuAiuAvPYRu89eG/images/favicon.svg?fit=max\u0026auto=format\u0026n=neuAiuAvPYRu89eG\u0026q=85\u0026s=557baee52eeabff3955db74427754525","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":["qubrics.com"],"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":"6b002092cf93c63408f0644f","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"Guides","count":79},{"language":"default","tag":"Management API","count":58},{"language":"default","tag":"Mailbox API","count":55},{"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":20},{"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":"site-roles","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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","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/mailbox-api/create-a-saved-draft","slug":"/api/mailbox-api/create-a-saved-draft","pageMetadata":{"title":"Create a saved draft","description":null,"deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/drafts","href":"/api/mailbox-api/create-a-saved-draft","autogeneratedByOpenApi":true},"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":"Create a saved draft","description":null,"deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/drafts","href":"/api/mailbox-api/create-a-saved-draft","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"mailboxCreateDraft","parameters":["bc480273-83af-499d-a8e9-19ee7bbcf874","358560b8-d9ef-4129-8638-5c6e43a60468"],"requestBody":"9f8e7e35-e77d-43e5-8431-bce284a9fc2c","responses":{"201":"cc966586-f31a-49ff-ab12-f3e9e63276e1","400":"7c992b59-7a7a-46e9-82bb-4acdacaab516","401":"968ea807-e8ae-40d5-8950-c6494f1a34e8","403":"4f27f99c-f8f6-4e1a-9c32-0dd4338730d5","404":"06a53e5f-a1e0-4561-83fd-3570528664ed","409":"d2f2e64e-a0a7-48ca-8b8b-a99a0345cf40","413":"bdeb851e-bb09-485e-988e-27dcda30220c","422":"2d6634c0-1c6a-4b27-935c-85b1b5a7f192","429":"efa9af39-a5bd-45f4-a979-4c748840e818","500":"c906abd0-bd90-44d1-bd94-2b87169c5eef","503":"56853765-a88b-4eb5-a358-c53ec5b10360"},"security":["8f12a47c-630c-4bdc-b7d2-1711296c8955","87be7b9a-cbf5-49a0-9c64-f3e053c22b64"],"summary":"Create a saved draft","tags":["Mailbox API"],"method":"post","type":"path","servers":["47cfcb91-0c9c-47bb-8bd6-fe2f163124de"],"path":"/mailbox/drafts","baseUrlOptions":["https://app.qubrics.com/api/v1"],"title":"Create a saved draft","description":"","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"bc480273-83af-499d-a8e9-19ee7bbcf874":{"description":"Reuse this key when retrying the same create request.","in":"header","name":"Idempotency-Key","required":false,"schema":{"description":"Reuse this key when retrying the same create request.","maxLength":255,"type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"358560b8-d9ef-4129-8638-5c6e43a60468":{"description":"Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.","in":"query","name":"mailbox_id","required":false,"schema":{"type":"string","isRequired":false,"description":"Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"attachments":{"description":"Attachments and inline images.","items":{"additionalProperties":false,"properties":{"blob_id":{"description":"An attachment uploaded to this mailbox.","maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"attachments.items.[INDEX].blob_id","typeLabel":"string"},"content_type":{"description":"Attachment media type.","maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"attachments.items.[INDEX].content_type","typeLabel":"string"},"filename":{"description":"Attachment filename.","maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"attachments.items.[INDEX].filename","typeLabel":"string"},"size_bytes":{"description":"Attachment size in bytes; verified when saved.","maximum":7500000,"minimum":0,"type":"integer","isRequired":true,"uniqueKey":"attachments.items.[INDEX].size_bytes","typeLabel":"integer"},"content_id":{"description":"Content ID referenced by an inline image.","maxLength":998,"minLength":1,"type":"string","uniqueKey":"attachments.items.[INDEX].content_id","typeLabel":"string"},"disposition":{"description":"Whether the attachment appears within the message.","enum":["attachment","inline"],"type":"string","uniqueKey":"attachments.items.[INDEX].disposition","typeLabel":"enum\u003cstring>"}},"required":["blob_id","filename","content_type","size_bytes"],"type":"object","uniqueKey":"attachments.items.[INDEX]","typeLabel":"object"},"maxItems":10,"type":"array","uniqueKey":"attachments","typeLabel":"object[]"},"bcc":{"description":"Hidden copied recipients.","items":{"additionalProperties":false,"properties":{"email":{"description":"Email address.","format":"email","maxLength":254,"type":"string","isRequired":true,"uniqueKey":"bcc.items.[INDEX].email","typeLabel":"string\u003cemail>"},"name":{"oneOf":[{"description":"Display name.","maxLength":255,"type":"string","uniqueKey":"bcc.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"description":"Display name.","maxLength":255,"type":"null","uniqueKey":"bcc.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"bcc.items.[INDEX].name","typeLabel":"string | null"}},"required":["email"],"type":"object","uniqueKey":"bcc.items.[INDEX]","typeLabel":"object"},"maxItems":50,"type":"array","uniqueKey":"bcc","typeLabel":"object[]"},"cc":{"description":"Visible copied recipients.","items":{"additionalProperties":false,"properties":{"email":{"description":"Email address.","format":"email","maxLength":254,"type":"string","isRequired":true,"uniqueKey":"cc.items.[INDEX].email","typeLabel":"string\u003cemail>"},"name":{"oneOf":[{"description":"Display name.","maxLength":255,"type":"string","uniqueKey":"cc.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"description":"Display name.","maxLength":255,"type":"null","uniqueKey":"cc.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"cc.items.[INDEX].name","typeLabel":"string | null"}},"required":["email"],"type":"object","uniqueKey":"cc.items.[INDEX]","typeLabel":"object"},"maxItems":50,"type":"array","uniqueKey":"cc","typeLabel":"object[]"},"custom_headers":{"additionalProperties":{"type":"string","uniqueKey":"custom_headers.additionalProperties","typeLabel":"string"},"description":"Custom X-* headers. Writes reject X-SES-TENANT, X-SES-CONFIGURATION-SET and X-SES-MESSAGE-TAGS case-insensitively. On updates, omit this field to preserve saved headers, or pass {} to clear them.","type":"object","uniqueKey":"custom_headers","typeLabel":"object"},"from":{"additionalProperties":false,"description":"Authorised sender; defaults to this inbox.","properties":{"email":{"description":"Email address.","format":"email","maxLength":254,"type":"string","isRequired":true,"uniqueKey":"from.email","typeLabel":"string\u003cemail>"},"name":{"oneOf":[{"description":"Display name.","maxLength":255,"type":"string","uniqueKey":"from.name.oneOf.0","typeLabel":"string"},{"description":"Display name.","maxLength":255,"type":"null","uniqueKey":"from.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"from.name","typeLabel":"string | null"}},"required":["email"],"type":"object","uniqueKey":"from","typeLabel":"object"},"html_body":{"description":"HTML body, preserved when saved.","maxLength":1000000,"type":"string","uniqueKey":"html_body","typeLabel":"string"},"reply_to":{"description":"Authorised reply addresses; defaults to this inbox.","items":{"additionalProperties":false,"properties":{"email":{"description":"Email address.","format":"email","maxLength":254,"type":"string","isRequired":true,"uniqueKey":"reply_to.items.[INDEX].email","typeLabel":"string\u003cemail>"},"name":{"oneOf":[{"description":"Display name.","maxLength":255,"type":"string","uniqueKey":"reply_to.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"description":"Display name.","maxLength":255,"type":"null","uniqueKey":"reply_to.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"reply_to.items.[INDEX].name","typeLabel":"string | null"}},"required":["email"],"type":"object","uniqueKey":"reply_to.items.[INDEX]","typeLabel":"object"},"maxItems":20,"type":"array","uniqueKey":"reply_to","typeLabel":"object[]"},"reply_to_message_id":{"description":"Message in this inbox to reply to; thread headers are snapshotted.","maxLength":255,"minLength":1,"type":"string","uniqueKey":"reply_to_message_id","typeLabel":"string"},"source":{"additionalProperties":false,"description":"Source for this draft. Adoption requires Idempotency-Key. Explicit content fields override prepared defaults.","properties":{"action":{"description":"Prepare a reply, reply-all, forward or adopt an existing draft. Source content and attachments are saved with the draft.","enum":["reply","reply_all","forward","adopt"],"type":"string","isRequired":true,"uniqueKey":"source.action","typeLabel":"enum\u003cstring>"},"message_id":{"description":"Source message in this inbox.","maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"source.message_id","typeLabel":"string"}},"required":["message_id","action"],"type":"object","uniqueKey":"source","typeLabel":"object"},"subject":{"description":"Subject; may be empty.","maxLength":998,"type":"string","uniqueKey":"subject","typeLabel":"string"},"text_body":{"description":"Plain-text body.","maxLength":1000000,"type":"string","uniqueKey":"text_body","typeLabel":"string"},"to":{"description":"Primary recipients; at most 50 total across To, Cc and Bcc.","items":{"additionalProperties":false,"properties":{"email":{"description":"Email address.","format":"email","maxLength":254,"type":"string","isRequired":true,"uniqueKey":"to.items.[INDEX].email","typeLabel":"string\u003cemail>"},"name":{"oneOf":[{"description":"Display name.","maxLength":255,"type":"string","uniqueKey":"to.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"description":"Display name.","maxLength":255,"type":"null","uniqueKey":"to.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"to.items.[INDEX].name","typeLabel":"string | null"}},"required":["email"],"type":"object","uniqueKey":"to.items.[INDEX]","typeLabel":"object"},"maxItems":50,"type":"array","uniqueKey":"to","typeLabel":"object[]"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"attachments":[{"blob_id":"\u003cstring>","content_type":"\u003cstring>","filename":"\u003cstring>","size_bytes":3750000,"content_id":"\u003cstring>"}],"bcc":[{"email":"jsmith@example.com","name":"\u003cstring>"}],"cc":[{"email":"jsmith@example.com","name":"\u003cstring>"}],"custom_headers":{},"html_body":"\u003cstring>","reply_to":[{"email":"jsmith@example.com","name":"\u003cstring>"}],"reply_to_message_id":"\u003cstring>","subject":"\u003cstring>","text_body":"\u003cstring>","to":[{"email":"jsmith@example.com","name":"\u003cstring>"}]}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"cc966586-f31a-49ff-ab12-f3e9e63276e1":{"content":{"application/json":{"schema":{"type":"object","required":["data","ok","meta"],"properties":{"meta":{"type":"object","required":["request_id"],"properties":{"request_id":{"example":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx","type":"string","isRequired":true,"uniqueKey":"meta.request_id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"ok":{"enum":[true],"type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"enum\u003cboolean>"},"data":{"additionalProperties":false,"properties":{"failure_code":{"oneOf":[{"description":"Safe failure reason. Correct failed draft content or current permissions before retrying. Never retry an uncertain send as a new message.","enum":["preparation_failed","authorisation_revoked","send_rejected"],"type":"string","isRequired":true,"uniqueKey":"data.failure_code.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"Safe failure reason. Correct failed draft content or current permissions before retrying. Never retry an uncertain send as a new message.","enum":["preparation_failed","authorisation_revoked","send_rejected"],"type":"null","isRequired":true,"uniqueKey":"data.failure_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.failure_code","typeLabel":"enum\u003cstring> | null"},"id":{"description":"Stable draft ID.","type":"string","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"in_reply_to":{"description":"Snapshotted parent message identifiers.","items":{"type":"string","uniqueKey":"data.in_reply_to.items.[INDEX]","typeLabel":"string"},"type":"array","isRequired":true,"uniqueKey":"data.in_reply_to","typeLabel":"string[]"},"message_id":{"oneOf":[{"description":"Saved message ID; absent until saving finishes.","type":"string","isRequired":true,"uniqueKey":"data.message_id.oneOf.0","typeLabel":"string"},{"description":"Saved message ID; absent until saving finishes.","type":"null","isRequired":true,"uniqueKey":"data.message_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.message_id","typeLabel":"string | null"},"references":{"description":"Snapshotted conversation identifiers.","items":{"type":"string","uniqueKey":"data.references.items.[INDEX]","typeLabel":"string"},"type":"array","isRequired":true,"uniqueKey":"data.references","typeLabel":"string[]"},"revision":{"description":"Current draft revision.","exclusiveMinimum":0,"type":"integer","isRequired":true,"uniqueKey":"data.revision","typeLabel":"integer"},"schedule_version":{"description":"Schedule control version. Changes whenever a schedule is created, moved or cancelled.","minimum":0,"type":"integer","isRequired":true,"uniqueKey":"data.schedule_version","typeLabel":"integer"},"scheduled_for":{"oneOf":[{"description":"Requested earliest send time, retained after sending. Null when no schedule is set.","format":"date-time","type":"string","isRequired":true,"uniqueKey":"data.scheduled_for.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"Requested earliest send time, retained after sending. Null when no schedule is set.","format":"date-time","type":"null","isRequired":true,"uniqueKey":"data.scheduled_for.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.scheduled_for","typeLabel":"string\u003cdate-time> | null"},"status":{"description":"Saving or sending state.","enum":["preparing","ready","scheduled","sending","queued","uncertain","failed","deleted"],"type":"string","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"attachments":{"description":"Attachments and inline images.","items":{"additionalProperties":false,"properties":{"blob_id":{"description":"An attachment uploaded to this mailbox.","maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"data.attachments.items.[INDEX].blob_id","typeLabel":"string"},"content_type":{"description":"Attachment media type.","maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"data.attachments.items.[INDEX].content_type","typeLabel":"string"},"filename":{"description":"Attachment filename.","maxLength":255,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"data.attachments.items.[INDEX].filename","typeLabel":"string"},"size_bytes":{"description":"Attachment size in bytes; verified when saved.","maximum":7500000,"minimum":0,"type":"integer","isRequired":true,"uniqueKey":"data.attachments.items.[INDEX].size_bytes","typeLabel":"integer"},"content_id":{"description":"Content ID referenced by an inline image.","maxLength":998,"minLength":1,"type":"string","uniqueKey":"data.attachments.items.[INDEX].content_id","typeLabel":"string"},"disposition":{"description":"Whether the attachment appears within the message.","enum":["attachment","inline"],"type":"string","uniqueKey":"data.attachments.items.[INDEX].disposition","typeLabel":"enum\u003cstring>"}},"required":["blob_id","filename","content_type","size_bytes"],"type":"object","uniqueKey":"data.attachments.items.[INDEX]","typeLabel":"object"},"maxItems":10,"type":"array","uniqueKey":"data.attachments","typeLabel":"object[]"},"bcc":{"description":"Hidden copied recipients.","items":{"additionalProperties":false,"properties":{"email":{"description":"Email address.","format":"email","maxLength":254,"type":"string","isRequired":true,"uniqueKey":"data.bcc.items.[INDEX].email","typeLabel":"string\u003cemail>"},"name":{"oneOf":[{"description":"Display name.","maxLength":255,"type":"string","uniqueKey":"data.bcc.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"description":"Display name.","maxLength":255,"type":"null","uniqueKey":"data.bcc.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.bcc.items.[INDEX].name","typeLabel":"string | null"}},"required":["email"],"type":"object","uniqueKey":"data.bcc.items.[INDEX]","typeLabel":"object"},"maxItems":50,"type":"array","uniqueKey":"data.bcc","typeLabel":"object[]"},"cc":{"description":"Visible copied recipients.","items":{"additionalProperties":false,"properties":{"email":{"description":"Email address.","format":"email","maxLength":254,"type":"string","isRequired":true,"uniqueKey":"data.cc.items.[INDEX].email","typeLabel":"string\u003cemail>"},"name":{"oneOf":[{"description":"Display name.","maxLength":255,"type":"string","uniqueKey":"data.cc.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"description":"Display name.","maxLength":255,"type":"null","uniqueKey":"data.cc.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.cc.items.[INDEX].name","typeLabel":"string | null"}},"required":["email"],"type":"object","uniqueKey":"data.cc.items.[INDEX]","typeLabel":"object"},"maxItems":50,"type":"array","uniqueKey":"data.cc","typeLabel":"object[]"},"custom_headers":{"additionalProperties":{"type":"string","uniqueKey":"data.custom_headers.additionalProperties","typeLabel":"string"},"description":"Custom X-* headers preserved with this revision. Older drafts containing reserved headers remain readable.","type":"object","uniqueKey":"data.custom_headers","typeLabel":"object"},"from":{"additionalProperties":false,"description":"Authorised sender; defaults to this inbox.","properties":{"email":{"description":"Email address.","format":"email","maxLength":254,"type":"string","isRequired":true,"uniqueKey":"data.from.email","typeLabel":"string\u003cemail>"},"name":{"oneOf":[{"description":"Display name.","maxLength":255,"type":"string","uniqueKey":"data.from.name.oneOf.0","typeLabel":"string"},{"description":"Display name.","maxLength":255,"type":"null","uniqueKey":"data.from.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.from.name","typeLabel":"string | null"}},"required":["email"],"type":"object","uniqueKey":"data.from","typeLabel":"object"},"html_body":{"description":"HTML body, preserved when saved.","maxLength":1000000,"type":"string","uniqueKey":"data.html_body","typeLabel":"string"},"reply_to":{"description":"Authorised reply addresses; defaults to this inbox.","items":{"additionalProperties":false,"properties":{"email":{"description":"Email address.","format":"email","maxLength":254,"type":"string","isRequired":true,"uniqueKey":"data.reply_to.items.[INDEX].email","typeLabel":"string\u003cemail>"},"name":{"oneOf":[{"description":"Display name.","maxLength":255,"type":"string","uniqueKey":"data.reply_to.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"description":"Display name.","maxLength":255,"type":"null","uniqueKey":"data.reply_to.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.reply_to.items.[INDEX].name","typeLabel":"string | null"}},"required":["email"],"type":"object","uniqueKey":"data.reply_to.items.[INDEX]","typeLabel":"object"},"maxItems":20,"type":"array","uniqueKey":"data.reply_to","typeLabel":"object[]"},"reply_to_message_id":{"description":"Original message this draft replies to.","type":"string","uniqueKey":"data.reply_to_message_id","typeLabel":"string"},"subject":{"description":"Subject; may be empty.","maxLength":998,"type":"string","uniqueKey":"data.subject","typeLabel":"string"},"text_body":{"description":"Plain-text body.","maxLength":1000000,"type":"string","uniqueKey":"data.text_body","typeLabel":"string"},"to":{"description":"Primary recipients; at most 50 total across To, Cc and Bcc.","items":{"additionalProperties":false,"properties":{"email":{"description":"Email address.","format":"email","maxLength":254,"type":"string","isRequired":true,"uniqueKey":"data.to.items.[INDEX].email","typeLabel":"string\u003cemail>"},"name":{"oneOf":[{"description":"Display name.","maxLength":255,"type":"string","uniqueKey":"data.to.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"description":"Display name.","maxLength":255,"type":"null","uniqueKey":"data.to.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.to.items.[INDEX].name","typeLabel":"string | null"}},"required":["email"],"type":"object","uniqueKey":"data.to.items.[INDEX]","typeLabel":"object"},"maxItems":50,"type":"array","uniqueKey":"data.to","typeLabel":"object[]"}},"required":["id","revision","status","message_id","scheduled_for","schedule_version","failure_code","in_reply_to","references"],"type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":true,"data":{"failure_code":"preparation_failed","id":"\u003cstring>","in_reply_to":["\u003cstring>"],"message_id":"\u003cstring>","references":["\u003cstring>"],"revision":123,"schedule_version":1,"scheduled_for":"2023-11-07T05:31:56Z","status":"preparing","attachments":[{"blob_id":"\u003cstring>","content_type":"\u003cstring>","filename":"\u003cstring>","size_bytes":3750000,"content_id":"\u003cstring>","disposition":"attachment"}],"bcc":[{"email":"jsmith@example.com","name":"\u003cstring>"}],"cc":[{"email":"jsmith@example.com","name":"\u003cstring>"}],"custom_headers":{},"from":{"email":"jsmith@example.com","name":"\u003cstring>"},"html_body":"\u003cstring>","reply_to":[{"email":"jsmith@example.com","name":"\u003cstring>"}],"reply_to_message_id":"\u003cstring>","subject":"\u003cstring>","text_body":"\u003cstring>","to":[{"email":"jsmith@example.com","name":"\u003cstring>"}]}}}},"exampleType":"generated"}},"description":"Saved draft and its revision.","headers":{"Location":{"description":"Canonical draft URL.","schema":{"type":"string"}}},"exampleType":"generated"},"7c992b59-7a7a-46e9-82bb-4acdacaab516":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","enum":["invalid_parameter","missing_parameter","authentication_required","insufficient_permissions","not_found","conflict","limit_exceeded","idempotency_conflict","payload_too_large","validation_error","rate_limit_exceeded","service_unavailable","internal_error"],"example":"invalid_parameter","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether the caller may safely retry this request. 4xx are typically false (except 429); 5xx are typically true.","example":false,"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to relevant documentation","type":"string","uniqueKey":"error.doc_url","typeLabel":"string"},"errors":{"description":"Accumulated per-field issues for validation errors. Only present on 400/422 responses.","items":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable issue code from the validator (e.g. zod issue code).","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path of the offending request field.","example":"recipient.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue description.","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":"The 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":{"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":"invalid_parameter","message":"\u003cstring>","retryable":false,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"recipient.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Request could not be completed.","exampleType":"generated"},"968ea807-e8ae-40d5-8950-c6494f1a34e8":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","enum":["invalid_parameter","missing_parameter","authentication_required","insufficient_permissions","not_found","conflict","limit_exceeded","idempotency_conflict","payload_too_large","validation_error","rate_limit_exceeded","service_unavailable","internal_error"],"example":"invalid_parameter","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether the caller may safely retry this request. 4xx are typically false (except 429); 5xx are typically true.","example":false,"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to relevant documentation","type":"string","uniqueKey":"error.doc_url","typeLabel":"string"},"errors":{"description":"Accumulated per-field issues for validation errors. Only present on 400/422 responses.","items":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable issue code from the validator (e.g. zod issue code).","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path of the offending request field.","example":"recipient.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue description.","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":"The 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":{"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":"invalid_parameter","message":"\u003cstring>","retryable":false,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"recipient.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Request could not be completed.","exampleType":"generated"},"4f27f99c-f8f6-4e1a-9c32-0dd4338730d5":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","enum":["invalid_parameter","missing_parameter","authentication_required","insufficient_permissions","not_found","conflict","limit_exceeded","idempotency_conflict","payload_too_large","validation_error","rate_limit_exceeded","service_unavailable","internal_error"],"example":"invalid_parameter","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether the caller may safely retry this request. 4xx are typically false (except 429); 5xx are typically true.","example":false,"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to relevant documentation","type":"string","uniqueKey":"error.doc_url","typeLabel":"string"},"errors":{"description":"Accumulated per-field issues for validation errors. Only present on 400/422 responses.","items":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable issue code from the validator (e.g. zod issue code).","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path of the offending request field.","example":"recipient.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue description.","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":"The 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":{"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":"invalid_parameter","message":"\u003cstring>","retryable":false,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"recipient.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Request could not be completed.","exampleType":"generated"},"06a53e5f-a1e0-4561-83fd-3570528664ed":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","enum":["invalid_parameter","missing_parameter","authentication_required","insufficient_permissions","not_found","conflict","limit_exceeded","idempotency_conflict","payload_too_large","validation_error","rate_limit_exceeded","service_unavailable","internal_error"],"example":"invalid_parameter","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether the caller may safely retry this request. 4xx are typically false (except 429); 5xx are typically true.","example":false,"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to relevant documentation","type":"string","uniqueKey":"error.doc_url","typeLabel":"string"},"errors":{"description":"Accumulated per-field issues for validation errors. Only present on 400/422 responses.","items":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable issue code from the validator (e.g. zod issue code).","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path of the offending request field.","example":"recipient.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue description.","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":"The 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":{"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":"invalid_parameter","message":"\u003cstring>","retryable":false,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"recipient.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Request could not be completed.","exampleType":"generated"},"d2f2e64e-a0a7-48ca-8b8b-a99a0345cf40":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","enum":["invalid_parameter","missing_parameter","authentication_required","insufficient_permissions","not_found","conflict","limit_exceeded","idempotency_conflict","payload_too_large","validation_error","rate_limit_exceeded","service_unavailable","internal_error"],"example":"invalid_parameter","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether the caller may safely retry this request. 4xx are typically false (except 429); 5xx are typically true.","example":false,"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to relevant documentation","type":"string","uniqueKey":"error.doc_url","typeLabel":"string"},"errors":{"description":"Accumulated per-field issues for validation errors. Only present on 400/422 responses.","items":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable issue code from the validator (e.g. zod issue code).","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path of the offending request field.","example":"recipient.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue description.","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":"The 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":{"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":"invalid_parameter","message":"\u003cstring>","retryable":false,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"recipient.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Request could not be completed.","exampleType":"generated"},"bdeb851e-bb09-485e-988e-27dcda30220c":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","enum":["invalid_parameter","missing_parameter","authentication_required","insufficient_permissions","not_found","conflict","limit_exceeded","idempotency_conflict","payload_too_large","validation_error","rate_limit_exceeded","service_unavailable","internal_error"],"example":"invalid_parameter","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether the caller may safely retry this request. 4xx are typically false (except 429); 5xx are typically true.","example":false,"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to relevant documentation","type":"string","uniqueKey":"error.doc_url","typeLabel":"string"},"errors":{"description":"Accumulated per-field issues for validation errors. Only present on 400/422 responses.","items":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable issue code from the validator (e.g. zod issue code).","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path of the offending request field.","example":"recipient.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue description.","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":"The 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":{"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":"invalid_parameter","message":"\u003cstring>","retryable":false,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"recipient.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Request could not be completed.","exampleType":"generated"},"2d6634c0-1c6a-4b27-935c-85b1b5a7f192":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","enum":["invalid_parameter","missing_parameter","authentication_required","insufficient_permissions","not_found","conflict","limit_exceeded","idempotency_conflict","payload_too_large","validation_error","rate_limit_exceeded","service_unavailable","internal_error"],"example":"invalid_parameter","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether the caller may safely retry this request. 4xx are typically false (except 429); 5xx are typically true.","example":false,"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to relevant documentation","type":"string","uniqueKey":"error.doc_url","typeLabel":"string"},"errors":{"description":"Accumulated per-field issues for validation errors. Only present on 400/422 responses.","items":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable issue code from the validator (e.g. zod issue code).","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path of the offending request field.","example":"recipient.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue description.","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":"The 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":{"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":"invalid_parameter","message":"\u003cstring>","retryable":false,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"recipient.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Request could not be completed.","exampleType":"generated"},"efa9af39-a5bd-45f4-a979-4c748840e818":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","enum":["invalid_parameter","missing_parameter","authentication_required","insufficient_permissions","not_found","conflict","limit_exceeded","idempotency_conflict","payload_too_large","validation_error","rate_limit_exceeded","service_unavailable","internal_error"],"example":"invalid_parameter","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether the caller may safely retry this request. 4xx are typically false (except 429); 5xx are typically true.","example":false,"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to relevant documentation","type":"string","uniqueKey":"error.doc_url","typeLabel":"string"},"errors":{"description":"Accumulated per-field issues for validation errors. Only present on 400/422 responses.","items":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable issue code from the validator (e.g. zod issue code).","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path of the offending request field.","example":"recipient.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue description.","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":"The 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":{"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":"invalid_parameter","message":"\u003cstring>","retryable":false,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"recipient.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Request could not be completed.","exampleType":"generated"},"c906abd0-bd90-44d1-bd94-2b87169c5eef":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","enum":["invalid_parameter","missing_parameter","authentication_required","insufficient_permissions","not_found","conflict","limit_exceeded","idempotency_conflict","payload_too_large","validation_error","rate_limit_exceeded","service_unavailable","internal_error"],"example":"invalid_parameter","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether the caller may safely retry this request. 4xx are typically false (except 429); 5xx are typically true.","example":false,"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to relevant documentation","type":"string","uniqueKey":"error.doc_url","typeLabel":"string"},"errors":{"description":"Accumulated per-field issues for validation errors. Only present on 400/422 responses.","items":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable issue code from the validator (e.g. zod issue code).","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path of the offending request field.","example":"recipient.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue description.","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":"The 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":{"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":"invalid_parameter","message":"\u003cstring>","retryable":false,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"recipient.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Request could not be completed.","exampleType":"generated"},"56853765-a88b-4eb5-a358-c53ec5b10360":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable error code","enum":["invalid_parameter","missing_parameter","authentication_required","insufficient_permissions","not_found","conflict","limit_exceeded","idempotency_conflict","payload_too_large","validation_error","rate_limit_exceeded","service_unavailable","internal_error"],"example":"invalid_parameter","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human-readable error description","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether the caller may safely retry this request. 4xx are typically false (except 429); 5xx are typically true.","example":false,"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"doc_url":{"description":"Link to relevant documentation","type":"string","uniqueKey":"error.doc_url","typeLabel":"string"},"errors":{"description":"Accumulated per-field issues for validation errors. Only present on 400/422 responses.","items":{"additionalProperties":false,"properties":{"code":{"description":"Machine-readable issue code from the validator (e.g. zod issue code).","example":"invalid_string","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].code","typeLabel":"string"},"field":{"description":"Dot-path of the offending request field.","example":"recipient.email","type":"string","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable issue description.","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":"The 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":{"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":"invalid_parameter","message":"\u003cstring>","retryable":false,"doc_url":"\u003cstring>","errors":[{"code":"invalid_string","field":"recipient.email","message":"\u003cstring>"}],"param":"\u003cstring>"},"meta":{"request_id":"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"},"ok":false}}},"exampleType":"generated"}},"description":"Request could not be completed.","exampleType":"generated"}},"security":{"8f12a47c-630c-4bdc-b7d2-1711296c8955":{"bearerAuth":{"bearerFormat":"API Key","description":"Qubrics API key. Use a root API key for Management API routes, or a mailbox credential for Mailbox API routes. Obtain keys from the dashboard under API Keys.","scheme":"bearer","type":"http","scopes":[],"schemeName":"bearerAuth"}},"87be7b9a-cbf5-49a0-9c64-f3e053c22b64":{"oauth2":{"description":"Use the authorisation-code flow with S256 PKCE and resource=https://qubrics.com/api. The user selects the team, API access and mailboxes during consent. OAuth access tokens authenticate HTTP API requests; use separate credentials for SMTP and IMAP.","flows":{"authorizationCode":{"authorizationUrl":"https://app.qubrics.com/oauth/authorize","refreshUrl":"https://app.qubrics.com/oauth/token","scopes":{"analytics.*":"All analytics operations","analytics.read":"View key usage analytics and verification logs","billing.*":"All billing operations","billing.auto_topup":"Configure auto top-up settings","billing.read":"View balance, transactions, invoices","billing.topup":"Purchase balance top-ups","calendar.read":"Read calendars and events in this mailbox","calendar.write":"Create calendars and create, edit and delete events in this mailbox","domain.*":"All domain operations","domain.create":"Add sending domains","domain.delete":"Remove domains","domain.read":"List/view domains and DNS status","domain.verify":"Trigger domain verification","email.receive":"Authorise email reception","email.send":"Send email through the HTTP API","key.*":"All key management operations","key.create":"Create new API keys (both root and mailbox)","key.read":"List/view API keys and their metadata","key.revoke":"Revoke API keys","key.rotate":"Rotate API keys","logs.*":"All log operations","logs.read":"View delivery logs","mailbox.admin.*":"All mailbox admin operations","mailbox.admin.create":"Create mailboxes (admin-level)","mailbox.admin.delete":"Delete mailboxes (admin-level)","mailbox.admin.manage":"Manage all mailbox settings","mailbox.admin.read":"List/view mailboxes (admin-level)","mailbox.drafts.write":"Create and edit saved mailbox drafts","mailbox.read":"Read mailbox contents (folders, messages)","mailbox.settings.update":"Update own mailbox settings (signature, auto-reply)","provider.*":"All provider operations","provider.create":"Add email provider accounts (Google, Microsoft, SMTP)","provider.delete":"Remove provider accounts","provider.read":"List/view provider accounts and connection status","provider.update":"Update provider settings, refresh tokens","routing.*":"All routing operations","routing.create":"Create delivery groups","routing.delete":"Remove delivery groups","routing.read":"List/view delivery groups and routing rules","routing.update":"Update delivery group configuration","team.*":"All team operations","team.members.invite":"Invite team members","team.members.remove":"Remove team members","team.members.roles":"Change member roles","team.read":"View team settings and members","team.update":"Update team settings","webhook.*":"All webhook operations","webhook.create":"Create webhook subscriptions","webhook.delete":"Delete webhook subscriptions","webhook.manage":"Rotate signing secret + send test events","webhook.read":"List/view webhook subscriptions","webhook.update":"Update webhook URL, event types, enabled flag"},"tokenUrl":"https://app.qubrics.com/oauth/token"}},"type":"oauth2","scopes":["mailbox.read","mailbox.drafts.write"],"schemeName":"oauth2"}}},"servers":{"47cfcb91-0c9c-47bb-8bd6-fe2f163124de":{"description":"API v1","url":"https://app.qubrics.com/api/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"bearerFormat":"API Key","description":"Qubrics API key. Use a root API key for Management API routes, or a mailbox credential for Mailbox API routes. Obtain keys from the dashboard under API Keys.","scheme":"bearer","type":"http","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Qubrics API key. Use a root API key for Management API routes, or a mailbox credential for Mailbox API routes. Obtain keys from the dashboard under API Keys.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"description":"Use the authorisation-code flow with S256 PKCE and resource=https://qubrics.com/api. The user selects the team, API access and mailboxes during consent. OAuth access tokens authenticate HTTP API requests; use separate credentials for SMTP and IMAP.","flows":{"authorizationCode":{"authorizationUrl":"https://app.qubrics.com/oauth/authorize","refreshUrl":"https://app.qubrics.com/oauth/token","scopes":{"analytics.*":"All analytics operations","analytics.read":"View key usage analytics and verification logs","billing.*":"All billing operations","billing.auto_topup":"Configure auto top-up settings","billing.read":"View balance, transactions, invoices","billing.topup":"Purchase balance top-ups","calendar.read":"Read calendars and events in this mailbox","calendar.write":"Create calendars and create, edit and delete events in this mailbox","domain.*":"All domain operations","domain.create":"Add sending domains","domain.delete":"Remove domains","domain.read":"List/view domains and DNS status","domain.verify":"Trigger domain verification","email.receive":"Authorise email reception","email.send":"Send email through the HTTP API","key.*":"All key management operations","key.create":"Create new API keys (both root and mailbox)","key.read":"List/view API keys and their metadata","key.revoke":"Revoke API keys","key.rotate":"Rotate API keys","logs.*":"All log operations","logs.read":"View delivery logs","mailbox.admin.*":"All mailbox admin operations","mailbox.admin.create":"Create mailboxes (admin-level)","mailbox.admin.delete":"Delete mailboxes (admin-level)","mailbox.admin.manage":"Manage all mailbox settings","mailbox.admin.read":"List/view mailboxes (admin-level)","mailbox.drafts.write":"Create and edit saved mailbox drafts","mailbox.read":"Read mailbox contents (folders, messages)","mailbox.settings.update":"Update own mailbox settings (signature, auto-reply)","provider.*":"All provider operations","provider.create":"Add email provider accounts (Google, Microsoft, SMTP)","provider.delete":"Remove provider accounts","provider.read":"List/view provider accounts and connection status","provider.update":"Update provider settings, refresh tokens","routing.*":"All routing operations","routing.create":"Create delivery groups","routing.delete":"Remove delivery groups","routing.read":"List/view delivery groups and routing rules","routing.update":"Update delivery group configuration","team.*":"All team operations","team.members.invite":"Invite team members","team.members.remove":"Remove team members","team.members.roles":"Change member roles","team.read":"View team settings and members","team.update":"Update team settings","webhook.*":"All webhook operations","webhook.create":"Create webhook subscriptions","webhook.delete":"Delete webhook subscriptions","webhook.manage":"Rotate signing secret + send test events","webhook.read":"List/view webhook subscriptions","webhook.update":"Update webhook URL, event types, enabled flag"},"tokenUrl":"https://app.qubrics.com/oauth/token"}},"type":"oauth2","scopes":["mailbox.read","mailbox.drafts.write"],"schemeName":"oauth2"},"schema":{"title":"OAuth2 Auth","type":"string","isRequired":true,"description":"Use the authorisation-code flow with S256 PKCE and resource=https://qubrics.com/api. The user selects the team, API access and mailboxes during consent. OAuth access tokens authenticate HTTP API requests; use separate credentials for SMTP and IMAP.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"oauth2","name":"Authorization"}],"title":"oauth2"}]},"originalFileLocation":"openapi-app.json"},"subdomain":"sendmux","siteName":"Qubrics","title":"Create a saved draft - Qubrics","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T05:44:28.661Z","originalFileLocation":"api/mailbox-api/create-a-saved-draft.mdx"},"headHtml":"\u003cscript data-mint-head\u003e(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\u003e\u003cmeta data-mint-head name=\"application-name\" content=\"Qubrics\"\u003e\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\"\u003e\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/qubrics/QBifi-yrmD9atxWJ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\"\u003e\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/qubrics/QBifi-yrmD9atxWJ/_generated/favicon/apple-touch-icon.png\"\u003e\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/qubrics/QBifi-yrmD9atxWJ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\"\u003e\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/qubrics/QBifi-yrmD9atxWJ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\"\u003e\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/qubrics/QBifi-yrmD9atxWJ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\"\u003e\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/qubrics/QBifi-yrmD9atxWJ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\"\u003e\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/qubrics/QBifi-yrmD9atxWJ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\"\u003e\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/qubrics/QBifi-yrmD9atxWJ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\"\u003e\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/qubrics/QBifi-yrmD9atxWJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\"\u003e\u003cmeta data-mint-head property=\"og:title\" content=\"Create a saved draft - Qubrics\"\u003e\u003cmeta data-mint-head property=\"og:site_name\" content=\"Qubrics\"\u003e\u003cmeta data-mint-head property=\"og:url\" content=\"https://qubrics.com/docs/api/mailbox-api/create-a-saved-draft\"\u003e\u003cmeta data-mint-head property=\"og:type\" content=\"website\"\u003e\u003cmeta data-mint-head property=\"og:image\" content=\"https://qubrics.com/docs/_mintlify/api/og/v2?division=Saved+drafts\u0026amp;title=Create+a+saved+draft\u0026amp;theme=8d3480837e3238732b09c327\u0026amp;signature=72ba4dc4dc6c85750e3d30dd2e45e2c6089702a7d0b0f02eea1cf18a6af5054c\"\u003e\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\"\u003e\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\"\u003e\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\"\u003e\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a saved draft - Qubrics\"\u003e\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://qubrics.com/docs/_mintlify/api/og/v2?division=Saved+drafts\u0026amp;title=Create+a+saved+draft\u0026amp;theme=8d3480837e3238732b09c327\u0026amp;signature=72ba4dc4dc6c85750e3d30dd2e45e2c6089702a7d0b0f02eea1cf18a6af5054c\"\u003e\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\"\u003e\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\"\u003e\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/sendmux/QBifi-yrmD9atxWJ/_generated/favicon/browserconfig.xml\"\u003e\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Qubrics\"\u003e\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6a75f1\"\u003e\u003clink data-mint-head rel=\"canonical\" href=\"https://qubrics.com/docs/api/mailbox-api/create-a-saved-draft\"\u003e\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\"\u003e\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api/mailbox-api/create-a-saved-draft.md\"\u003e\u003cscript data-mint-head type=\"application/ld+json\"\u003e{\"@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/mailbox-api/create-a-saved-draft#webpage\",\"url\":\"https://qubrics.com/docs/api/mailbox-api/create-a-saved-draft\",\"name\":\"Create a saved draft\",\"dateModified\":\"2026-11-19T05:44:28.661Z\",\"isPartOf\":{\"@id\":\"https://qubrics.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://qubrics.com/docs/api/mailbox-api/create-a-saved-draft#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://qubrics.com/docs/api/mailbox-api/create-a-saved-draft#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Saved drafts\",\"item\":\"https://qubrics.com/docs/api/mailbox-api/list-saved-drafts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a saved draft\",\"item\":\"https://qubrics.com/docs/api/mailbox-api/create-a-saved-draft\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://qubrics.com/docs/api/mailbox-api/create-a-saved-draft#apireference\",\"headline\":\"Create a saved draft\",\"name\":\"Create a saved draft\",\"url\":\"https://qubrics.com/docs/api/mailbox-api/create-a-saved-draft\",\"mainEntityOfPage\":{\"@id\":\"https://qubrics.com/docs/api/mailbox-api/create-a-saved-draft#webpage\"},\"dateModified\":\"2026-11-19T05:44:28.661Z\",\"publisher\":{\"@id\":\"https://qubrics.com/#organization\"},\"isPartOf\":{\"@id\":\"https://qubrics.com/docs#website\"}}]}\u003c/script\u003e\u003cscript data-mint-head type=\"application/ld+json\"\u003e{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Qubrics\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Qubrics\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script\u003e","agentPointerHref":"/docs/api/mailbox-api/create-a-saved-draft.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","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/mailbox-api/introduction"},{"title":"Errors","href":"/mailbox-api/errors"},{"title":"Get Mailbox connection","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/connection","href":"/api/mailbox-api/get-mailbox-connection"}]},{"group":"Mailboxes","pages":[{"title":"List granted mailboxes","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/mailboxes","href":"/api/mailbox-api/list-granted-mailboxes"}]},{"group":"Session and identity","pages":[{"title":"Self-introspect the calling mailbox","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/me","href":"/api/mailbox-api/self-introspect-the-calling-mailbox"},{"title":"Get mailbox API session","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/session","href":"/api/mailbox-api/get-mailbox-api-session"},{"title":"Get permitted sender choices","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/sender-choices","href":"/api/mailbox-api/get-permitted-sender-choices"},{"title":"Get mailbox sender identity","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/identity","href":"/api/mailbox-api/get-mailbox-sender-identity"},{"title":"Update mailbox sender identity","deprecated":null,"version":null,"openapi":"/openapi-app.json patch /mailbox/identity","href":"/api/mailbox-api/update-mailbox-sender-identity"},{"title":"List mailbox sender identities","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/identities","href":"/api/mailbox-api/list-mailbox-sender-identities"}]},{"group":"Messages","pages":[{"title":"List mailbox messages","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/messages","href":"/api/mailbox-api/list-mailbox-messages"},{"title":"Batch get mailbox messages","deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/messages:batch-get","href":"/api/mailbox-api/batch-get-mailbox-messages"},{"title":"Batch update mailbox messages","deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/messages:batch-update","href":"/api/mailbox-api/batch-update-mailbox-messages"},{"title":"Batch delete mailbox messages","deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/messages:batch-delete","href":"/api/mailbox-api/batch-delete-mailbox-messages"},{"title":"Count mailbox messages","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/messages/count","href":"/api/mailbox-api/count-mailbox-messages"},{"title":"Get message query changes","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/messages/query-changes","href":"/api/mailbox-api/get-message-query-changes"},{"title":"Get message search snippets","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/messages/search-snippets","href":"/api/mailbox-api/get-message-search-snippets"},{"title":"Get a mailbox message","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/messages/{message_id}","href":"/api/mailbox-api/get-a-mailbox-message"},{"title":"Get raw message body","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/messages/{message_id}/body","href":"/api/mailbox-api/get-raw-message-body"},{"title":"Get clean message content","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/messages/{message_id}/content","href":"/api/mailbox-api/get-clean-message-content"},{"title":"Download the original message","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/messages/{message_id}/raw","href":"/api/mailbox-api/download-the-original-message"},{"title":"Update mailbox message flags","deprecated":null,"version":null,"openapi":"/openapi-app.json patch /mailbox/messages/{message_id}","href":"/api/mailbox-api/update-mailbox-message-flags"},{"title":"Delete a mailbox message","deprecated":null,"version":null,"openapi":"/openapi-app.json delete /mailbox/messages/{message_id}","href":"/api/mailbox-api/delete-a-mailbox-message"},{"title":"Send a mailbox message","deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/messages/send","href":"/api/mailbox-api/send-a-mailbox-message"}]},{"group":"Saved drafts","pages":[{"title":"List saved drafts","description":null,"deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/drafts","href":"/api/mailbox-api/list-saved-drafts"},{"title":"Create a saved draft","deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/drafts","href":"/api/mailbox-api/create-a-saved-draft"},{"title":"Read a saved draft","description":null,"deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/drafts/{draftId}","href":"/api/mailbox-api/read-a-saved-draft"},{"title":"Edit a saved draft","deprecated":null,"version":null,"openapi":"/openapi-app.json patch /mailbox/drafts/{draftId}","href":"/api/mailbox-api/edit-a-saved-draft"},{"title":"Delete a saved draft","deprecated":null,"version":null,"openapi":"/openapi-app.json delete /mailbox/drafts/{draftId}","href":"/api/mailbox-api/delete-a-saved-draft"},{"title":"Send a saved draft revision","deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/drafts/{draftId}/send","href":"/api/mailbox-api/send-a-saved-draft-revision"},{"title":"Reschedule or cancel a saved draft send","deprecated":null,"version":null,"openapi":"/openapi-app.json patch /mailbox/drafts/{draftId}/schedule","href":"/api/mailbox-api/reschedule-or-cancel-a-saved-draft-send"}]},{"group":"Attachments","pages":[{"title":"Upload a mailbox attachment","deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/attachments:upload","href":"/api/mailbox-api/upload-a-mailbox-attachment"},{"title":"Create a presigned mailbox attachment upload","deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/attachment-uploads","href":"/api/mailbox-api/create-a-presigned-mailbox-attachment-upload"},{"title":"Download a message attachment","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/messages/{message_id}/attachments/{attachment_id}","href":"/api/mailbox-api/download-a-message-attachment"},{"title":"Request attachment text","deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/messages/{message_id}/attachments/{attachment_id}/text","href":"/api/mailbox-api/request-attachment-text"},{"title":"Read attachment text","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/messages/{message_id}/attachments/{attachment_id}/text","href":"/api/mailbox-api/read-attachment-text"}]},{"group":"Threads","pages":[{"title":"List mailbox threads","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/threads","href":"/api/mailbox-api/list-mailbox-threads"},{"title":"Get a mailbox thread","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/threads/{thread_id}","href":"/api/mailbox-api/get-a-mailbox-thread"},{"title":"List thread messages","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/threads/{thread_id}/messages","href":"/api/mailbox-api/list-thread-messages"},{"title":"Get clean thread content","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/threads/{thread_id}/content","href":"/api/mailbox-api/get-clean-thread-content"}]},{"group":"Folders","pages":[{"title":"List mailbox folders","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/folders","href":"/api/mailbox-api/list-mailbox-folders"},{"title":"Create a mailbox folder","deprecated":null,"version":null,"openapi":"/openapi-app.json post /mailbox/folders","href":"/api/mailbox-api/create-a-mailbox-folder"},{"title":"Get folder changes","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/folders/changes","href":"/api/mailbox-api/get-folder-changes"},{"title":"Get folder query changes","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/folders/query-changes","href":"/api/mailbox-api/get-folder-query-changes"},{"title":"Get a mailbox folder","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/folders/{folder_id}","href":"/api/mailbox-api/get-a-mailbox-folder"},{"title":"Update a mailbox folder","deprecated":null,"version":null,"openapi":"/openapi-app.json patch /mailbox/folders/{folder_id}","href":"/api/mailbox-api/update-a-mailbox-folder"},{"title":"Delete a mailbox folder","deprecated":null,"version":null,"openapi":"/openapi-app.json delete /mailbox/folders/{folder_id}","href":"/api/mailbox-api/delete-a-mailbox-folder"}]},{"group":"Submissions","pages":[{"title":"List mailbox submissions","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/submissions","href":"/api/mailbox-api/list-mailbox-submissions"},{"title":"Get submission changes","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/submissions/changes","href":"/api/mailbox-api/get-submission-changes"},{"title":"Get a mailbox submission","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/submissions/{submission_id}","href":"/api/mailbox-api/get-a-mailbox-submission"}]},{"group":"Usage","pages":[{"title":"List mailbox quotas","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/quotas","href":"/api/mailbox-api/list-mailbox-quotas"},{"title":"Get quota changes","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/quotas/changes","href":"/api/mailbox-api/get-quota-changes"},{"title":"Get mailbox usage","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/usage","href":"/api/mailbox-api/get-mailbox-usage"}]},{"group":"Sync","pages":[{"title":"Get mailbox changes","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/changes","href":"/api/mailbox-api/get-mailbox-changes"},{"title":"Stream mailbox events","deprecated":null,"version":null,"openapi":"/openapi-app.json get /mailbox/events","href":"/api/mailbox-api/stream-mailbox-events"}]}]},{"tab":"Sending API","pages":[{"title":"Sending API","href":"/sending-api/introduction"}]}]},"basePath":"","title":"Create a saved draft - Qubrics","deploymentId":"dpl_2MqcLy8smQrrovUehgcZEsoo1tJX","buildId":"dpl_2MqcLy8smQrrovUehgcZEsoo1tJX","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DyP0AOE1.js","snippetPresets-CuYPAUIG.js","utils-ez5j6NBT.js","style-to-object-BY3JEAdk.js","utils-DG4aeUOF.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DFhcMUrP.js","conditional-requirements-CFM0id0Q.js","cloneDeep-ByDTqllG.js","_Uint8Array-CJ2WjX_H.js","isObject-FP1Yky1u.js","Page-CInwEL5w.js","CodeSnippet-CCk6UVRR.js","DynamicMarkdown-CU5QIokU.js","SectionHeading-BoT1NwPU.js","icon-MsvNhD56.js","ApiExamples-fyn9sMD9.js","usePlaygroundInputsStore-Bf0N_Y6L.js","shallow-CnU26VTn.js","isEqual-OWIKZzop.js","CodeSnippets-CZ9-M31v.js","getApiPlaygroundDisplay-BUw5JwZB.js","MethodPill-CC7p0-fp.js","getPastedJson-BOWYR2ND.js","DuplicateIcon-DOWJyC1b.js","createIcon-BsNyCaLY.js","axios-CsQoIw0U.js","Markdown-L0uigQE0.js","AssistantPageLink-Cur5OU4v.js","dist-CLdzWocy.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}