Send a template, rendered with data, to one destination at schedule.send_at or the earliest moment after it that the delivery_conditions allow. recurrence repeats it. Credits are spent when each send happens, not now. Presence conditions are accepted in shape and refused with 422 until presence delivery is enabled. Send an Idempotency-Key to make retries safe.
LithoBlocks API key obtained from your organization dashboard. The LithoBlocks MCP server also presents a Supabase-issued user session token here on the user's behalf; such a token acts as that user with the scopes their organization role allows.
Any unique string (a UUID is fine). Repeating a request with the same key and body within 24 hours replays the original response with Idempotency-Replayed: true instead of running again; the same key with a different body is a 409. Incomplete and 5xx outcomes are retained for reconciliation beyond 24 hours. Applies only on the documented endpoints. Never automatically change keys to bypass an uncertain outcome.
true sends whatever version of the template is live at send time, recurring sends included. Omitted or false, the message is pinned to the version live now, as it always has been
Expire the message: replace it with a notice, or delete it. Precise to about a minute; a button clicked after the deadline does nothing even before the message is replaced.
The version this message is pinned to. null sends whatever version is live when it sends (follow_live); a legacy policy-driven message with no pin of its own uses its policy's
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LithoBlocks","colors":{"primary":"#0891b2","light":"#cffafe","dark":"#0e7490"},"logo":{"light":"https://mintcdn.com/lithoblocks/KGZFBT_KPY8H2VP2/logo/light.png?fit=max\u0026auto=format\u0026n=KGZFBT_KPY8H2VP2\u0026q=85\u0026s=99f8cf65528bebb78dec112d77f923c9","dark":"https://mintcdn.com/lithoblocks/KGZFBT_KPY8H2VP2/logo/dark.png?fit=max\u0026auto=format\u0026n=KGZFBT_KPY8H2VP2\u0026q=85\u0026s=b6b4fd2bca60dc8ed583e3676c957b57"},"favicon":"https://mintcdn.com/lithoblocks/KGZFBT_KPY8H2VP2/favicon.svg?fit=max\u0026auto=format\u0026n=KGZFBT_KPY8H2VP2\u0026q=85\u0026s=e04b2e285f25e00cea6112bb57507308","api":{"playground":{"display":"none"}},"navbar":{"links":[{"href":"mailto:support@lithoblocks.com","label":"Support"}],"primary":{"type":"button","label":"Preview dashboard","href":"https://next.app.lithoblocks.com"}},"footer":{"socials":{"github":"https://github.com/lithoblocks","linkedin":"https://linkedin.com/company/lithoblocks"}},"banner":{"content":"Release preview — review [environments and availability](/guides/availability) before testing.","dismissible":false},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Preview dashboard","icon":"arrow-right","href":"https://next.app.lithoblocks.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lithoblocks","hasAudioNarration":false,"actualSubdomain":"lithoblocks","customDomains":["docs.lithoblocks.com"],"gitSource":{"type":"github","owner":"lithoblocks","repo":"lithoblocks","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adcc23c2892a8a2da120815","collectionId":"d2c69ba1-1109-47e2-940b-4fddd2313bf9","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adcc23c2892a8a2da120815"},"entitlements":{},"buildId":"6adccb2375476ff3698df547","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"Reference","count":90},{"language":"default","tag":"API endpoints","count":82},{"language":"default","tag":"Templates","count":20},{"language":"default","tag":"Interactivity","count":17},{"language":"default","tag":"Automate","count":16},{"language":"default","tag":"Build","count":14},{"language":"default","tag":"Integrate","count":13},{"language":"default","tag":"Queues","count":12},{"language":"default","tag":"Messages","count":10},{"language":"default","tag":"Start","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","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":"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":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/scheduled-messages/schedule-a-message","slug":"/api-reference/scheduled-messages/schedule-a-message","pageMetadata":{"title":"Schedule a message","description":"Send a template, rendered with `data`, to one destination at `schedule.send_at` or the earliest moment after it that the `delivery_conditions` allow. `recurrence` repeats it. Credits are spent when each send happens, not now. Presence conditions are accepted in shape and refused with 422 until presence delivery is enabled. Send an `Idempotency-Key` to make retries safe.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/scheduled-messages","href":"/api-reference/scheduled-messages/schedule-a-message","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Send a template, rendered with \", _jsx(_components.code, {\n children: \"data\"\n }), \", to one destination at \", _jsx(_components.code, {\n children: \"schedule.send_at\"\n }), \" or the earliest moment after it that the \", _jsx(_components.code, {\n children: \"delivery_conditions\"\n }), \" allow. \", _jsx(_components.code, {\n children: \"recurrence\"\n }), \" repeats it. Credits are spent when each send happens, not now. Presence conditions are accepted in shape and refused with 422 until presence delivery is enabled. Send an \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" to make retries safe.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Schedule a message","description":"Send a template, rendered with `data`, to one destination at `schedule.send_at` or the earliest moment after it that the `delivery_conditions` allow. `recurrence` repeats it. Credits are spent when each send happens, not now. Presence conditions are accepted in shape and refused with 422 until presence delivery is enabled. Send an `Idempotency-Key` to make retries safe.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/scheduled-messages","href":"/api-reference/scheduled-messages/schedule-a-message","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Scheduled messages"],"summary":"Schedule a message","description":"Send a template, rendered with `data`, to one destination at `schedule.send_at` or the earliest moment after it that the `delivery_conditions` allow. `recurrence` repeats it. Credits are spent when each send happens, not now. Presence conditions are accepted in shape and refused with 422 until presence delivery is enabled. Send an `Idempotency-Key` to make retries safe.","security":["6ee6f71d-66f9-4200-b79e-b6c94af38c26"],"parameters":["176e9ad3-15e4-45e9-94b5-68cba1116bcb"],"requestBody":"bdf1f264-e60a-416d-a54b-3336b2147b38","responses":{"201":"88eb9141-3920-47da-9094-522f0f67daa9","400":"742cad95-ecde-4c5b-bf54-7aa37fb15ba5","401":"2efa211c-ff4d-4d1c-9061-f1c657e94ee5","403":"40607433-f12f-40cf-93a7-a1b816fe8432","404":"dd738bed-22d9-4685-aaa4-e39a981700ea","422":"85aac82c-64ed-4483-8e2b-b89afaed44f8","500":"b14e8cae-fa99-40d4-93ee-a3c05a273e65"},"method":"post","type":"path","servers":["7d0c3f43-b728-43e4-890f-4b5fcd8955dd","3e80eef4-e2e2-4ad0-9415-b5e2e8a59216"],"path":"/v1/scheduled-messages","baseUrlOptions":["https://api.lithoblocks.com","http://localhost:9999"],"title":"Schedule a message","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"176e9ad3-15e4-45e9-94b5-68cba1116bcb":{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID is fine). Repeating a request with the same key and body within 24 hours replays the original response with `Idempotency-Replayed: true` instead of running again; the same key with a different body is a 409. Incomplete and 5xx outcomes are retained for reconciliation beyond 24 hours. Applies only on the documented endpoints. Never automatically change keys to bypass an uncertain outcome.","example":"3f7d2c1a-9b4e-4f0a-8c6d-2e1b5a7c9d10","isRequired":false,"uniqueKey":"","typeLabel":"string"},"required":false,"in":"header","name":"Idempotency-Key"}},"requestBody":{"description":"The message to schedule","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"template_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"template_id","typeLabel":"string\u003cuuid>"},"data":{"type":"object","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"data.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.additionalProperties","typeLabel":"null"},"description":"Values for the template's placeholders (its request_format)","isRequired":true,"uniqueKey":"data","typeLabel":"object"},"destination":{"oneOf":[{"type":"object","required":["channel_id"],"properties":{"channel_id":{"type":"string","isRequired":true,"uniqueKey":"destination.oneOf.0.channel_id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"destination.oneOf.0","typeLabel":"object"},{"type":"object","required":["recipient_email"],"properties":{"recipient_email":{"type":"string","format":"email","isRequired":true,"uniqueKey":"destination.oneOf.1.recipient_email","typeLabel":"string\u003cemail>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"destination.oneOf.1","typeLabel":"object"},{"type":"object","required":["recipient_slack_id"],"properties":{"recipient_slack_id":{"type":"string","isRequired":true,"uniqueKey":"destination.oneOf.2.recipient_slack_id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"destination.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"destination","typeLabel":"object"},"schedule":{"type":"object","properties":{"send_at":{"type":"string","format":"date-time","description":"Earliest send time, ISO 8601 with offset","isRequired":true,"uniqueKey":"schedule.send_at","typeLabel":"string\u003cdate-time>"},"timezone":{"type":"string","minLength":1,"description":"IANA timezone for time-window conditions that name none","uniqueKey":"schedule.timezone","typeLabel":"string"}},"required":["send_at"],"isRequired":true,"uniqueKey":"schedule","typeLabel":"object"},"recurrence":{"type":"object","properties":{"interval_minutes":{"type":"integer","minimum":0,"exclusiveMinimum":true,"isRequired":true,"uniqueKey":"recurrence.interval_minutes","typeLabel":"integer"},"max_repeats":{"type":"integer","minimum":0,"exclusiveMinimum":true,"uniqueKey":"recurrence.max_repeats","typeLabel":"integer"},"end_at":{"type":"string","format":"date-time","uniqueKey":"recurrence.end_at","typeLabel":"string\u003cdate-time>"}},"required":["interval_minutes"],"description":"Repeat every interval_minutes from the previous send until max_repeats or end_at","uniqueKey":"recurrence","typeLabel":"object"},"delivery_conditions":{"type":"object","properties":{"conditions":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","start","end"],"properties":{"type":{"type":"string","enum":["time_window"],"isRequired":true,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","isRequired":true,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.0.start","typeLabel":"string"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","isRequired":true,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.0.end","typeLabel":"string"},"days":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.0.days.items.[INDEX]","typeLabel":"integer"},"minItems":1,"default":[1,2,3,4,5],"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.0.days","typeLabel":"integer[]"},"timezone":{"type":"string","minLength":1,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.0.timezone","typeLabel":"string"}},"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","target","mode"],"properties":{"type":{"type":"string","enum":["presence"],"isRequired":true,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"string","enum":["recipient"],"isRequired":true,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.1.target.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","required":["slack_user_id"],"properties":{"slack_user_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.1.target.oneOf.1.slack_user_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.1.target.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.1.target","typeLabel":"enum\u003cstring> | object"},"mode":{"type":"string","enum":["active","after_active_minutes"],"isRequired":true,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.1.mode","typeLabel":"enum\u003cstring>"},"minutes":{"type":"integer","minimum":0,"exclusiveMinimum":true,"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.1.minutes","typeLabel":"integer"}},"uniqueKey":"delivery_conditions.conditions.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"delivery_conditions.conditions.items.[INDEX]","typeLabel":"object"},"default":[],"uniqueKey":"delivery_conditions.conditions","typeLabel":"object[]"},"max_delay_minutes":{"type":"integer","minimum":0,"exclusiveMinimum":true,"uniqueKey":"delivery_conditions.max_delay_minutes","typeLabel":"integer"},"on_miss":{"type":"string","enum":["send","expire"],"uniqueKey":"delivery_conditions.on_miss","typeLabel":"enum\u003cstring>"}},"uniqueKey":"delivery_conditions","typeLabel":"object"},"follow_live":{"type":"boolean","description":"`true` sends whatever version of the template is live at send time, recurring sends included. Omitted or `false`, the message is pinned to the version live now, as it always has been","uniqueKey":"follow_live","typeLabel":"boolean"},"expiration":{"type":"object","properties":{"after_seconds":{"type":"integer","minimum":60,"maximum":31622400,"description":"Seconds after the message is delivered. At least 60: expiry runs about once a minute.","uniqueKey":"expiration.after_seconds","typeLabel":"integer"},"at":{"type":"string","format":"date-time","description":"An absolute time, at least 60 seconds from now.","uniqueKey":"expiration.at","typeLabel":"string\u003cdate-time>"},"mode":{"type":"string","enum":["replace","delete"],"default":"replace","description":"`replace` (default): the message is replaced with a notice that it expired, and its buttons stop working. `delete`: it is deleted from Slack.","uniqueKey":"expiration.mode","typeLabel":"enum\u003cstring>"},"retain_content":{"type":"boolean","default":false,"description":"By default LithoBlocks clears its own copies of what the message said when it expires. `true` keeps them.","uniqueKey":"expiration.retain_content","typeLabel":"boolean"}},"additionalProperties":false,"description":"Expire the message: replace it with a notice, or delete it. Precise to about a minute; a button clicked after the deadline does nothing even before the message is replaced.","uniqueKey":"expiration","typeLabel":"object"}},"required":["template_id","data","destination","schedule"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"template_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","data":{},"destination":{"channel_id":"\u003cstring>"},"schedule":{"send_at":"2023-11-07T05:31:56Z","timezone":"\u003cstring>"},"delivery_conditions":{"conditions":[],"max_delay_minutes":1},"follow_live":true,"expiration":{"after_seconds":15811230,"at":"2023-11-07T05:31:56Z","mode":"replace","retain_content":false}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"88eb9141-3920-47da-9094-522f0f67daa9":{"description":"Scheduled","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"status":{"type":"string","enum":["scheduled","processing","sent","failed","cancelled","expired"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"template_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"template_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"template_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"template_id","typeLabel":"string | null"},"template_version_id":{"oneOf":[{"type":"string","description":"The version this message is pinned to. `null` sends whatever version is live when it sends (`follow_live`); a legacy policy-driven message with no pin of its own uses its policy's","isRequired":true,"uniqueKey":"template_version_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The version this message is pinned to. `null` sends whatever version is live when it sends (`follow_live`); a legacy policy-driven message with no pin of its own uses its policy's","isRequired":true,"uniqueKey":"template_version_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"template_version_id","typeLabel":"string | null"},"queue_policy_id":{"oneOf":[{"type":"string","description":"Set on legacy policy-driven messages only","isRequired":true,"uniqueKey":"queue_policy_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set on legacy policy-driven messages only","isRequired":true,"uniqueKey":"queue_policy_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"queue_policy_id","typeLabel":"string | null"},"destination":{"oneOf":[{"type":"object","required":["channel_id"],"properties":{"channel_id":{"type":"string","isRequired":true,"uniqueKey":"destination.oneOf.0.channel_id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"destination.oneOf.0","typeLabel":"object"},{"type":"object","required":["recipient_email"],"properties":{"recipient_email":{"type":"string","format":"email","isRequired":true,"uniqueKey":"destination.oneOf.1.recipient_email","typeLabel":"string\u003cemail>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"destination.oneOf.1","typeLabel":"object"},{"type":"object","required":["recipient_slack_id"],"properties":{"recipient_slack_id":{"type":"string","isRequired":true,"uniqueKey":"destination.oneOf.2.recipient_slack_id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"destination.oneOf.2","typeLabel":"object"},{"isRequired":true},{"type":"null","isRequired":true,"uniqueKey":"destination.oneOf.4","typeLabel":"null"}],"isRequired":true,"uniqueKey":"destination","typeLabel":"object · object · object · null"},"data":{"type":"object","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"data.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.additionalProperties","typeLabel":"null"},"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"schedule":{"type":"object","properties":{"send_at":{"type":"string","format":"date-time","description":"Earliest send time, ISO 8601 with offset","isRequired":true,"uniqueKey":"schedule.send_at","typeLabel":"string\u003cdate-time>"},"timezone":{"type":"string","minLength":1,"description":"IANA timezone for time-window conditions that name none","uniqueKey":"schedule.timezone","typeLabel":"string"}},"required":["send_at"],"isRequired":true,"uniqueKey":"schedule","typeLabel":"object"},"recurrence":{"oneOf":[{"type":"object","properties":{"interval_minutes":{"type":"integer","minimum":0,"exclusiveMinimum":true,"isRequired":true,"uniqueKey":"recurrence.oneOf.0.interval_minutes","typeLabel":"integer"},"max_repeats":{"type":"integer","minimum":0,"exclusiveMinimum":true,"uniqueKey":"recurrence.oneOf.0.max_repeats","typeLabel":"integer"},"end_at":{"type":"string","format":"date-time","uniqueKey":"recurrence.oneOf.0.end_at","typeLabel":"string\u003cdate-time>"}},"required":["interval_minutes"],"isRequired":true,"uniqueKey":"recurrence.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"interval_minutes":{"type":"integer","minimum":0,"exclusiveMinimum":true},"max_repeats":{"type":"integer","minimum":0,"exclusiveMinimum":true},"end_at":{"type":"string","format":"date-time"}},"required":["interval_minutes"],"isRequired":true,"uniqueKey":"recurrence.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"recurrence","typeLabel":"object | null"},"repeat_count":{"type":"integer","isRequired":true,"uniqueKey":"repeat_count","typeLabel":"integer"},"delivery_conditions":{"oneOf":[{"type":"object","properties":{"conditions":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","start","end"],"properties":{"type":{"type":"string","enum":["time_window"],"isRequired":true,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","isRequired":true,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.0.start","typeLabel":"string"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","isRequired":true,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.0.end","typeLabel":"string"},"days":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.0.days.items.[INDEX]","typeLabel":"integer"},"minItems":1,"default":[1,2,3,4,5],"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.0.days","typeLabel":"integer[]"},"timezone":{"type":"string","minLength":1,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.0.timezone","typeLabel":"string"}},"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","target","mode"],"properties":{"type":{"type":"string","enum":["presence"],"isRequired":true,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"string","enum":["recipient"],"isRequired":true,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.1.target.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","required":["slack_user_id"],"properties":{"slack_user_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.1.target.oneOf.1.slack_user_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.1.target.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.1.target","typeLabel":"enum\u003cstring> | object"},"mode":{"type":"string","enum":["active","after_active_minutes"],"isRequired":true,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.1.mode","typeLabel":"enum\u003cstring>"},"minutes":{"type":"integer","minimum":0,"exclusiveMinimum":true,"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.1.minutes","typeLabel":"integer"}},"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"delivery_conditions.oneOf.0.conditions.items.[INDEX]","typeLabel":"object"},"default":[],"uniqueKey":"delivery_conditions.oneOf.0.conditions","typeLabel":"object[]"},"max_delay_minutes":{"type":"integer","minimum":0,"exclusiveMinimum":true,"uniqueKey":"delivery_conditions.oneOf.0.max_delay_minutes","typeLabel":"integer"},"on_miss":{"type":"string","enum":["send","expire"],"uniqueKey":"delivery_conditions.oneOf.0.on_miss","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"delivery_conditions.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"conditions":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","start","end"],"properties":{"type":{"type":"string","enum":["time_window"]},"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"days":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"minItems":1,"default":[1,2,3,4,5]},"timezone":{"type":"string","minLength":1}}},{"type":"object","required":["type","target","mode"],"properties":{"type":{"type":"string","enum":["presence"]},"target":{"oneOf":[{"type":"string","enum":["recipient"]},{"type":"object","required":["slack_user_id"],"properties":{"slack_user_id":{"type":"string","minLength":1}}}]},"mode":{"type":"string","enum":["active","after_active_minutes"]},"minutes":{"type":"integer","minimum":0,"exclusiveMinimum":true}}}]},"default":[]},"max_delay_minutes":{"type":"integer","minimum":0,"exclusiveMinimum":true},"on_miss":{"type":"string","enum":["send","expire"]}},"isRequired":true,"uniqueKey":"delivery_conditions.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"delivery_conditions","typeLabel":"object | null"},"max_delay_at":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"max_delay_at.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"max_delay_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"max_delay_at","typeLabel":"string | null"},"expiration":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["replace","delete"],"isRequired":true,"uniqueKey":"expiration.oneOf.0.mode","typeLabel":"enum\u003cstring>"},"retain_content":{"type":"boolean","isRequired":true,"uniqueKey":"expiration.oneOf.0.retain_content","typeLabel":"boolean"},"after_seconds":{"type":"integer","uniqueKey":"expiration.oneOf.0.after_seconds","typeLabel":"integer"},"at":{"type":"string","uniqueKey":"expiration.oneOf.0.at","typeLabel":"string"}},"required":["mode","retain_content"],"description":"The schedule's own expiry for each message it sends; the template's default and maximum apply too","isRequired":true,"uniqueKey":"expiration.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"after_seconds":{"type":"integer"},"at":{"type":"string"},"mode":{"type":"string","enum":["replace","delete"]},"retain_content":{"type":"boolean"}},"required":["mode","retain_content"],"description":"The schedule's own expiry for each message it sends; the template's default and maximum apply too","isRequired":true,"uniqueKey":"expiration.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"expiration","typeLabel":"object | null"},"source":{"type":"string","isRequired":true,"uniqueKey":"source","typeLabel":"string"},"error_message":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"error_message.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"error_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error_message","typeLabel":"string | null"},"created_at":{"type":"string","isRequired":true,"uniqueKey":"created_at","typeLabel":"string"},"processed_at":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"processed_at.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"processed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"processed_at","typeLabel":"string | null"}},"required":["id","status","template_id","template_version_id","queue_policy_id","destination","data","schedule","recurrence","repeat_count","delivery_conditions","max_delay_at","expiration","source","error_message","created_at","processed_at"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","status":"scheduled","template_id":"\u003cstring>","template_version_id":"\u003cstring>","queue_policy_id":"\u003cstring>","destination":{"channel_id":"\u003cstring>"},"data":{},"schedule":{"send_at":"2023-11-07T05:31:56Z","timezone":"\u003cstring>"},"recurrence":{"interval_minutes":1,"max_repeats":1,"end_at":"2023-11-07T05:31:56Z"},"repeat_count":123,"delivery_conditions":{"conditions":[],"max_delay_minutes":1,"on_miss":"send"},"max_delay_at":"\u003cstring>","expiration":{"mode":"replace","retain_content":true,"after_seconds":123,"at":"\u003cstring>"},"source":"\u003cstring>","error_message":"\u003cstring>","created_at":"\u003cstring>","processed_at":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"742cad95-ecde-4c5b-bf54-7aa37fb15ba5":{"description":"The database refused the row: `details` carries the trigger's message (`invalid_data`)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable summary. Not stable; match on `code`.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","enum":["unauthenticated","invalid_token","insufficient_scope","access_denied","validation_failed","invalid_request","invalid_data","invalid_destination","invalid_search_query","not_found","template_not_found","version_not_found","organization_not_found","entity_not_found","field_not_found","user_not_found","profile_not_found","credits_not_found","insufficient_credits","overage_limit_exceeded","credit_deduction_failed","compilation_failed","no_blocks_to_send","slack_not_connected","slack_user_not_found","slack_dm_failed","slack_token_decrypt_failed","slack_api_error","already_exists","invitation_pending","idempotency_conflict","idempotency_in_progress","rate_limited","tier_limit","invalid_state","template_archived","template_in_use","template_not_activated","current_version_changed","message_not_found","not_message_sender","revision_conflict","message_not_live","mutation_in_progress","reconciliation_required","nothing_to_reconcile","text_not_editable","slack_refused","slack_outcome_unknown","expiration_in_past","expiration_in_progress","no_expiration","expiration_exceeds_maximum","maintenance","misconfigured","internal_error"],"description":"Machine-readable reason for the failure. Match on this, not on `error`. New codes may be added; existing ones are stable.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Echoed from the request's X-Request-Id header, or generated. Quote it in support requests.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","uniqueKey":"details","typeLabel":"string"},"error_details":{"type":"string","uniqueKey":"error_details","typeLabel":"string"},"success":{"type":"boolean","enum":[false],"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"valid":{"type":"boolean","enum":[false],"uniqueKey":"valid","typeLabel":"enum\u003cboolean>"},"required_scopes":{"type":"array","items":{"type":"string","uniqueKey":"required_scopes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"required_scopes","typeLabel":"string[]"},"user_scopes":{"type":"array","items":{"type":"string","uniqueKey":"user_scopes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"user_scopes","typeLabel":"string[]"}},"required":["error","code","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"unauthenticated","request_id":"\u003cstring>","message":"\u003cstring>","details":"\u003cstring>","error_details":"\u003cstring>","success":false,"valid":false,"required_scopes":["\u003cstring>"],"user_scopes":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"2efa211c-ff4d-4d1c-9061-f1c657e94ee5":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable summary. Not stable; match on `code`.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","enum":["unauthenticated","invalid_token","insufficient_scope","access_denied","validation_failed","invalid_request","invalid_data","invalid_destination","invalid_search_query","not_found","template_not_found","version_not_found","organization_not_found","entity_not_found","field_not_found","user_not_found","profile_not_found","credits_not_found","insufficient_credits","overage_limit_exceeded","credit_deduction_failed","compilation_failed","no_blocks_to_send","slack_not_connected","slack_user_not_found","slack_dm_failed","slack_token_decrypt_failed","slack_api_error","already_exists","invitation_pending","idempotency_conflict","idempotency_in_progress","rate_limited","tier_limit","invalid_state","template_archived","template_in_use","template_not_activated","current_version_changed","message_not_found","not_message_sender","revision_conflict","message_not_live","mutation_in_progress","reconciliation_required","nothing_to_reconcile","text_not_editable","slack_refused","slack_outcome_unknown","expiration_in_past","expiration_in_progress","no_expiration","expiration_exceeds_maximum","maintenance","misconfigured","internal_error"],"description":"Machine-readable reason for the failure. Match on this, not on `error`. New codes may be added; existing ones are stable.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Echoed from the request's X-Request-Id header, or generated. Quote it in support requests.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","uniqueKey":"details","typeLabel":"string"},"error_details":{"type":"string","uniqueKey":"error_details","typeLabel":"string"},"success":{"type":"boolean","enum":[false],"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"valid":{"type":"boolean","enum":[false],"uniqueKey":"valid","typeLabel":"enum\u003cboolean>"},"required_scopes":{"type":"array","items":{"type":"string","uniqueKey":"required_scopes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"required_scopes","typeLabel":"string[]"},"user_scopes":{"type":"array","items":{"type":"string","uniqueKey":"user_scopes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"user_scopes","typeLabel":"string[]"}},"required":["error","code","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"unauthenticated","request_id":"\u003cstring>","message":"\u003cstring>","details":"\u003cstring>","error_details":"\u003cstring>","success":false,"valid":false,"required_scopes":["\u003cstring>"],"user_scopes":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"40607433-f12f-40cf-93a7-a1b816fe8432":{"description":"Insufficient permissions, or the organization's tier does not include scheduling (`tier_limit`)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable summary. Not stable; match on `code`.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","enum":["unauthenticated","invalid_token","insufficient_scope","access_denied","validation_failed","invalid_request","invalid_data","invalid_destination","invalid_search_query","not_found","template_not_found","version_not_found","organization_not_found","entity_not_found","field_not_found","user_not_found","profile_not_found","credits_not_found","insufficient_credits","overage_limit_exceeded","credit_deduction_failed","compilation_failed","no_blocks_to_send","slack_not_connected","slack_user_not_found","slack_dm_failed","slack_token_decrypt_failed","slack_api_error","already_exists","invitation_pending","idempotency_conflict","idempotency_in_progress","rate_limited","tier_limit","invalid_state","template_archived","template_in_use","template_not_activated","current_version_changed","message_not_found","not_message_sender","revision_conflict","message_not_live","mutation_in_progress","reconciliation_required","nothing_to_reconcile","text_not_editable","slack_refused","slack_outcome_unknown","expiration_in_past","expiration_in_progress","no_expiration","expiration_exceeds_maximum","maintenance","misconfigured","internal_error"],"description":"Machine-readable reason for the failure. Match on this, not on `error`. New codes may be added; existing ones are stable.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Echoed from the request's X-Request-Id header, or generated. Quote it in support requests.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","uniqueKey":"details","typeLabel":"string"},"error_details":{"type":"string","uniqueKey":"error_details","typeLabel":"string"},"success":{"type":"boolean","enum":[false],"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"valid":{"type":"boolean","enum":[false],"uniqueKey":"valid","typeLabel":"enum\u003cboolean>"},"required_scopes":{"type":"array","items":{"type":"string","uniqueKey":"required_scopes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"required_scopes","typeLabel":"string[]"},"user_scopes":{"type":"array","items":{"type":"string","uniqueKey":"user_scopes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"user_scopes","typeLabel":"string[]"}},"required":["error","code","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"unauthenticated","request_id":"\u003cstring>","message":"\u003cstring>","details":"\u003cstring>","error_details":"\u003cstring>","success":false,"valid":false,"required_scopes":["\u003cstring>"],"user_scopes":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"dd738bed-22d9-4685-aaa4-e39a981700ea":{"description":"Template not found in your organization","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable summary. Not stable; match on `code`.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","enum":["unauthenticated","invalid_token","insufficient_scope","access_denied","validation_failed","invalid_request","invalid_data","invalid_destination","invalid_search_query","not_found","template_not_found","version_not_found","organization_not_found","entity_not_found","field_not_found","user_not_found","profile_not_found","credits_not_found","insufficient_credits","overage_limit_exceeded","credit_deduction_failed","compilation_failed","no_blocks_to_send","slack_not_connected","slack_user_not_found","slack_dm_failed","slack_token_decrypt_failed","slack_api_error","already_exists","invitation_pending","idempotency_conflict","idempotency_in_progress","rate_limited","tier_limit","invalid_state","template_archived","template_in_use","template_not_activated","current_version_changed","message_not_found","not_message_sender","revision_conflict","message_not_live","mutation_in_progress","reconciliation_required","nothing_to_reconcile","text_not_editable","slack_refused","slack_outcome_unknown","expiration_in_past","expiration_in_progress","no_expiration","expiration_exceeds_maximum","maintenance","misconfigured","internal_error"],"description":"Machine-readable reason for the failure. Match on this, not on `error`. New codes may be added; existing ones are stable.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Echoed from the request's X-Request-Id header, or generated. Quote it in support requests.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","uniqueKey":"details","typeLabel":"string"},"error_details":{"type":"string","uniqueKey":"error_details","typeLabel":"string"},"success":{"type":"boolean","enum":[false],"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"valid":{"type":"boolean","enum":[false],"uniqueKey":"valid","typeLabel":"enum\u003cboolean>"},"required_scopes":{"type":"array","items":{"type":"string","uniqueKey":"required_scopes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"required_scopes","typeLabel":"string[]"},"user_scopes":{"type":"array","items":{"type":"string","uniqueKey":"user_scopes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"user_scopes","typeLabel":"string[]"}},"required":["error","code","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"unauthenticated","request_id":"\u003cstring>","message":"\u003cstring>","details":"\u003cstring>","error_details":"\u003cstring>","success":false,"valid":false,"required_scopes":["\u003cstring>"],"user_scopes":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"85aac82c-64ed-4483-8e2b-b89afaed44f8":{"description":"The request body, query string or path parameters failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.issues.items.[INDEX].code","typeLabel":"string"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"isRequired":true,"uniqueKey":"error.issues.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.issues.items.[INDEX].message","typeLabel":"string"}},"required":["code","path","message"],"uniqueKey":"error.issues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[]"},"name":{"type":"string","isRequired":true,"uniqueKey":"error.name","typeLabel":"string"}},"required":["issues","name"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"message":{"type":"string","description":"The issues as one line, `path: message; path: message`, for callers that show a string (form builders such as Make)","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["validation_failed"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","error","message","code","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"issues":[{"code":"\u003cstring>","path":["\u003cstring>"],"message":"\u003cstring>"}],"name":"\u003cstring>"},"message":"\u003cstring>","code":"validation_failed","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b14e8cae-fa99-40d4-93ee-a3c05a273e65":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable summary. Not stable; match on `code`.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","enum":["unauthenticated","invalid_token","insufficient_scope","access_denied","validation_failed","invalid_request","invalid_data","invalid_destination","invalid_search_query","not_found","template_not_found","version_not_found","organization_not_found","entity_not_found","field_not_found","user_not_found","profile_not_found","credits_not_found","insufficient_credits","overage_limit_exceeded","credit_deduction_failed","compilation_failed","no_blocks_to_send","slack_not_connected","slack_user_not_found","slack_dm_failed","slack_token_decrypt_failed","slack_api_error","already_exists","invitation_pending","idempotency_conflict","idempotency_in_progress","rate_limited","tier_limit","invalid_state","template_archived","template_in_use","template_not_activated","current_version_changed","message_not_found","not_message_sender","revision_conflict","message_not_live","mutation_in_progress","reconciliation_required","nothing_to_reconcile","text_not_editable","slack_refused","slack_outcome_unknown","expiration_in_past","expiration_in_progress","no_expiration","expiration_exceeds_maximum","maintenance","misconfigured","internal_error"],"description":"Machine-readable reason for the failure. Match on this, not on `error`. New codes may be added; existing ones are stable.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"request_id":{"type":"string","description":"Echoed from the request's X-Request-Id header, or generated. Quote it in support requests.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","uniqueKey":"details","typeLabel":"string"},"error_details":{"type":"string","uniqueKey":"error_details","typeLabel":"string"},"success":{"type":"boolean","enum":[false],"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"valid":{"type":"boolean","enum":[false],"uniqueKey":"valid","typeLabel":"enum\u003cboolean>"},"required_scopes":{"type":"array","items":{"type":"string","uniqueKey":"required_scopes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"required_scopes","typeLabel":"string[]"},"user_scopes":{"type":"array","items":{"type":"string","uniqueKey":"user_scopes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"user_scopes","typeLabel":"string[]"}},"required":["error","code","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"unauthenticated","request_id":"\u003cstring>","message":"\u003cstring>","details":"\u003cstring>","error_details":"\u003cstring>","success":false,"valid":false,"required_scopes":["\u003cstring>"],"user_scopes":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"6ee6f71d-66f9-4200-b79e-b6c94af38c26":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"LithoBlocks API key obtained from your organization dashboard. The LithoBlocks MCP server also presents a Supabase-issued user session token here on the user's behalf; such a token acts as that user with the scopes their organization role allows.","scopes":["scheduled:write"],"schemeName":"bearerAuth"}}},"servers":{"7d0c3f43-b728-43e4-890f-4b5fcd8955dd":{"url":"https://api.lithoblocks.com","description":"Production (paths in this spec are rooted at /v1/...)"},"3e80eef4-e2e2-4ad0-9415-b5e2e8a59216":{"url":"http://localhost:9999","description":"Local dev (paths in this spec are rooted at /v1/...)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"LithoBlocks API key obtained from your organization dashboard. The LithoBlocks MCP server also presents a Supabase-issued user session token here on the user's behalf; such a token acts as that user with the scopes their organization role allows.","scopes":["scheduled:write"],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"LithoBlocks API key obtained from your organization dashboard. The LithoBlocks MCP server also presents a Supabase-issued user session token here on the user's behalf; such a token acts as that user with the scopes their organization role allows.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"lithoblocks","siteName":"LithoBlocks","title":"Schedule a message - LithoBlocks","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-23T12:19:24.343Z","originalFileLocation":"api-reference/scheduled-messages/schedule-a-message.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send a template, rendered with data, to one destination at schedule.send_at or the earliest moment after it that the delivery_conditions allow. recurrence repeats it. Credits are spent when each send happens, not now. Presence conditions are accepted in shape and refused with 422 until presence delivery is enabled. Send an Idempotency-Key to make retries safe.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LithoBlocks\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lithoblocks/iXe-cKTkiEit2LxE/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lithoblocks/iXe-cKTkiEit2LxE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lithoblocks/iXe-cKTkiEit2LxE/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lithoblocks/iXe-cKTkiEit2LxE/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lithoblocks/iXe-cKTkiEit2LxE/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lithoblocks/iXe-cKTkiEit2LxE/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lithoblocks/iXe-cKTkiEit2LxE/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lithoblocks/iXe-cKTkiEit2LxE/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lithoblocks/iXe-cKTkiEit2LxE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Schedule a message - LithoBlocks\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send a template, rendered with data, to one destination at schedule.send_at or the earliest moment after it that the delivery_conditions allow. recurrence repeats it. Credits are spent when each send happens, not now. Presence conditions are accepted in shape and refused with 422 until presence delivery is enabled. Send an Idempotency-Key to make retries safe.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LithoBlocks\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lithoblocks.com/api-reference/scheduled-messages/schedule-a-message\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lithoblocks.mintlify.app/_mintlify/api/og/v2?division=Scheduled+messages\u0026amp;title=Schedule+a+message\u0026amp;description=Send+a+template%2C+rendered+with+%60data%60%2C+to+one+destination+at+%60schedule.send_at%60+or+the+earliest+moment+after+it+that+the+%60delivery_conditions%60+allow.+%60recurrenc\u0026amp;theme=e4b95b926ded7506313bc7e6\u0026amp;signature=c3bdf81c039130f843f43c8a85cfedc77ba165cfb048b2924a92286469136547\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Schedule a message - LithoBlocks\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send a template, rendered with data, to one destination at schedule.send_at or the earliest moment after it that the delivery_conditions allow. recurrence repeats it. Credits are spent when each send happens, not now. Presence conditions are accepted in shape and refused with 422 until presence delivery is enabled. Send an Idempotency-Key to make retries safe.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lithoblocks.mintlify.app/_mintlify/api/og/v2?division=Scheduled+messages\u0026amp;title=Schedule+a+message\u0026amp;description=Send+a+template%2C+rendered+with+%60data%60%2C+to+one+destination+at+%60schedule.send_at%60+or+the+earliest+moment+after+it+that+the+%60delivery_conditions%60+allow.+%60recurrenc\u0026amp;theme=e4b95b926ded7506313bc7e6\u0026amp;signature=c3bdf81c039130f843f43c8a85cfedc77ba165cfb048b2924a92286469136547\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lithoblocks/iXe-cKTkiEit2LxE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LithoBlocks\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0891b2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lithoblocks.com/api-reference/scheduled-messages/schedule-a-message\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/scheduled-messages/schedule-a-message.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lithoblocks.com/#organization\",\"name\":\"LithoBlocks\",\"url\":\"https://docs.lithoblocks.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lithoblocks/KGZFBT_KPY8H2VP2/logo/light.png?fit=max\u0026auto=format\u0026n=KGZFBT_KPY8H2VP2\u0026q=85\u0026s=99f8cf65528bebb78dec112d77f923c9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lithoblocks.com#website\",\"name\":\"LithoBlocks\",\"url\":\"https://docs.lithoblocks.com\",\"publisher\":{\"@id\":\"https://docs.lithoblocks.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lithoblocks.com/api-reference/scheduled-messages/schedule-a-message#webpage\",\"url\":\"https://docs.lithoblocks.com/api-reference/scheduled-messages/schedule-a-message\",\"name\":\"Schedule a message\",\"description\":\"Send a template, rendered with data, to one destination at schedule.send_at or the earliest moment after it that the delivery_conditions allow. recurrence repeats it. Credits are spent when each send happens, not now. Presence conditions are accepted in shape and refused with 422 until presence delivery is enabled. Send an Idempotency-Key to make retries safe.\",\"dateModified\":\"2026-10-23T12:19:24.343Z\",\"isPartOf\":{\"@id\":\"https://docs.lithoblocks.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lithoblocks.com/api-reference/scheduled-messages/schedule-a-message#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lithoblocks.com/api-reference/scheduled-messages/schedule-a-message#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API endpoints\",\"item\":\"https://docs.lithoblocks.com/api-reference/interactivity/list-destinations\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Scheduled messages\",\"item\":\"https://docs.lithoblocks.com/api-reference/scheduled-messages/list-scheduled-messages\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Schedule a message\",\"item\":\"https://docs.lithoblocks.com/api-reference/scheduled-messages/schedule-a-message\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lithoblocks.com/api-reference/scheduled-messages/schedule-a-message#apireference\",\"headline\":\"Schedule a message\",\"name\":\"Schedule a message\",\"description\":\"Send a template, rendered with data, to one destination at schedule.send_at or the earliest moment after it that the delivery_conditions allow. recurrence repeats it. Credits are spent when each send happens, not now. Presence conditions are accepted in shape and refused with 422 until presence delivery is enabled. Send an Idempotency-Key to make retries safe.\",\"url\":\"https://docs.lithoblocks.com/api-reference/scheduled-messages/schedule-a-message\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lithoblocks.com/api-reference/scheduled-messages/schedule-a-message#webpage\"},\"dateModified\":\"2026-10-23T12:19:24.343Z\",\"publisher\":{\"@id\":\"https://docs.lithoblocks.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lithoblocks.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LithoBlocks\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"LithoBlocks","nav":{"global":{"anchors":[{"anchor":"Preview dashboard","icon":"arrow-right","href":"https://next.app.lithoblocks.com"}]},"tabs":[{"tab":"Start","pages":[{"title":"Start","href":""}]},{"tab":"Build","pages":[{"title":"Build","href":"/guides/templates-blocks"}]},{"tab":"Automate","pages":[{"title":"Automate","href":"/guides/send-with-api"}]},{"tab":"Integrate","pages":[{"title":"Integrate","href":"/guides/low-code-overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"Reference","groups":[{"group":"Contracts and permissions","pages":[{"title":"API introduction","href":"/api-reference/introduction"},{"title":"Create and manage API keys","href":"/guides/api-keys"},{"title":"Limits and validation","href":"/guides/limits"},{"title":"Webhook payload variables","href":"/guides/webhook-variables"}]},{"group":"Interactive APIs (preview)","pages":[{"title":"Interactive templates over the API","href":"/guides/interactive-templates-api"},{"title":"Manage destinations with the API","href":"/guides/destinations-api"},{"title":"Create and version modals with the API","href":"/guides/modals-api"},{"title":"Inspect interactions and track clicks","href":"/guides/interaction-history"}]},{"group":"API endpoints","pages":[{"group":"Interactivity","pages":[{"title":"List destinations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/destinations","href":"/api-reference/interactivity/list-destinations"},{"title":"Create destination","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/destinations","href":"/api-reference/interactivity/create-destination"},{"title":"Get destination","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/destinations/{id}","href":"/api-reference/interactivity/get-destination"},{"title":"Delete destination","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/destinations/{id}","href":"/api-reference/interactivity/delete-destination"},{"title":"Update destination","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/destinations/{id}","href":"/api-reference/interactivity/update-destination"},{"title":"Test destination","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/destinations/{id}/test","href":"/api-reference/interactivity/test-destination"},{"title":"List interactions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/interactions","href":"/api-reference/interactivity/list-interactions"},{"title":"Get interaction","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/interactions/{id}","href":"/api-reference/interactivity/get-interaction"},{"title":"List modal submissions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/modal-submissions","href":"/api-reference/interactivity/list-modal-submissions"},{"title":"List modals","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/modals","href":"/api-reference/interactivity/list-modals"},{"title":"Create modal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/modals","href":"/api-reference/interactivity/create-modal"},{"title":"Validate modal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/modals/validate","href":"/api-reference/interactivity/validate-modal"},{"title":"Get modal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/modals/{id}","href":"/api-reference/interactivity/get-modal"},{"title":"Update modal","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/modals/{id}","href":"/api-reference/interactivity/update-modal"},{"title":"List modal versions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/modals/{id}/versions","href":"/api-reference/interactivity/list-modal-versions"},{"title":"Create modal version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/modals/{id}/versions","href":"/api-reference/interactivity/create-modal-version"},{"title":"Activate modal version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/modals/{id}/versions/{version_id}/activate","href":"/api-reference/interactivity/activate-modal-version"}]},{"group":"Templates","pages":[{"title":"What the platform accepts in a template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/templates/block-schema","href":"/api-reference/templates/what-the-platform-accepts-in-a-template"},{"title":"Validate blocks without saving","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates/validate","href":"/api-reference/templates/validate-blocks-without-saving"},{"title":"Get all templates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/templates","href":"/api-reference/templates/get-all-templates"},{"title":"Create a template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates","href":"/api-reference/templates/create-a-template"},{"title":"Get a template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/templates/{id}","href":"/api-reference/templates/get-a-template"},{"title":"Update template metadata","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/templates/{id}","href":"/api-reference/templates/update-template-metadata"},{"title":"Describe a template's input","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/templates/{id}/input-schema","href":"/api-reference/templates/describe-a-templates-input"},{"title":"Describe a template's input as Make parameters","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/templates/{id}/input-schema/make","href":"/api-reference/templates/describe-a-templates-input-as-make-parameters"},{"title":"Archive a template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates/{id}/archive","href":"/api-reference/templates/archive-a-template"},{"title":"Unarchive a template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates/{id}/unarchive","href":"/api-reference/templates/unarchive-a-template"},{"title":"Compile a template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates/compile","href":"/api-reference/templates/compile-a-template"},{"title":"Send a template message to Slack","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates/send","href":"/api-reference/templates/send-a-template-message-to-slack"},{"title":"Send a template message to multiple Slack destinations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates/send-bulk","href":"/api-reference/templates/send-a-template-message-to-multiple-slack-destinations"}]},{"group":"Credits","pages":[{"title":"Get credit balance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/credits/{organization_id}","href":"/api-reference/credits/get-credit-balance"},{"title":"Get credit logs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/credits/{organization_id}/logs","href":"/api-reference/credits/get-credit-logs"}]},{"group":"Organizations","pages":[{"title":"Get organization details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organizations/{id}","href":"/api-reference/organizations/get-organization-details"},{"title":"Update organization name","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/organizations/{id}","href":"/api-reference/organizations/update-organization-name"},{"title":"List organization members","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organizations/{id}/members","href":"/api-reference/organizations/list-organization-members"},{"title":"Invite user to organization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/organizations/{id}/invite","href":"/api-reference/organizations/invite-user-to-organization"}]},{"group":"Users","pages":[{"title":"Get current user profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/users/profile","href":"/api-reference/users/get-current-user-profile"},{"title":"Update user profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/users/profile","href":"/api-reference/users/update-user-profile"},{"title":"Get user by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/users/{id}","href":"/api-reference/users/get-user-by-id"},{"title":"Delete user","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/users/{id}","href":"/api-reference/users/delete-user"}]},{"group":"Template Versions","pages":[{"title":"List template versions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/templates/{id}/versions","href":"/api-reference/template-versions/list-template-versions"},{"title":"Create new template version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates/{id}/versions","href":"/api-reference/template-versions/create-new-template-version"},{"title":"Get specific template version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/templates/{id}/versions/{version_id}","href":"/api-reference/template-versions/get-specific-template-version"},{"title":"Activate template version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates/{id}/versions/{version_id}/activate","href":"/api-reference/template-versions/activate-template-version"},{"title":"List template activations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/templates/{id}/activations","href":"/api-reference/template-versions/list-template-activations"}]},{"group":"Entities","pages":[{"title":"List organization entities","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/organizations/{id}/entities","href":"/api-reference/entities/list-organization-entities"},{"title":"Get entity with fields","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/entities/{id}","href":"/api-reference/entities/get-entity-with-fields"},{"title":"Delete entity","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/entities/{id}","href":"/api-reference/entities/delete-entity"},{"title":"Update entity metadata","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/entities/{id}","href":"/api-reference/entities/update-entity-metadata"},{"title":"Delete entity field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/entities/{entity_id}/fields/{field_id}","href":"/api-reference/entities/delete-entity-field"},{"title":"Update entity field","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/entities/{entity_id}/fields/{field_id}","href":"/api-reference/entities/update-entity-field"}]},{"group":"Search","pages":[{"title":"Search templates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/search/templates","href":"/api-reference/search/search-templates"},{"title":"Search entities","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/search/entities","href":"/api-reference/search/search-entities"}]},{"group":"Authentication","pages":[{"title":"Validate authentication token","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/auth/validate","href":"/api-reference/authentication/validate-authentication-token"}]},{"group":"Queues","pages":[{"title":"List queues","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/queues","href":"/api-reference/queues/list-queues"},{"title":"Create a queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/queues","href":"/api-reference/queues/create-a-queue"},{"title":"List queue and scheduled-message executions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/queue-executions","href":"/api-reference/queues/list-queue-and-scheduled-message-executions"},{"title":"Get a queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/queues/{id}","href":"/api-reference/queues/get-a-queue"},{"title":"Delete a queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/queues/{id}","href":"/api-reference/queues/delete-a-queue"},{"title":"Update a queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/queues/{id}","href":"/api-reference/queues/update-a-queue"},{"title":"List a queue's events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/queues/{id}/events","href":"/api-reference/queues/list-a-queues-events"},{"title":"Push events to a queue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/queues/{id}/events","href":"/api-reference/queues/push-events-to-a-queue"},{"title":"Send the open batch now","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/queues/{id}/flush","href":"/api-reference/queues/send-the-open-batch-now"},{"title":"Preview the open batch's aggregated data","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/queues/{id}/preview","href":"/api-reference/queues/preview-the-open-batchs-aggregated-data"},{"title":"Drop pending events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/queues/{id}/drop-pending","href":"/api-reference/queues/drop-pending-events"},{"title":"List a queue's batches","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/queues/{id}/batches","href":"/api-reference/queues/list-a-queues-batches"}]},{"group":"Scheduled messages","pages":[{"title":"List scheduled messages","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/scheduled-messages","href":"/api-reference/scheduled-messages/list-scheduled-messages"},{"title":"Schedule a message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/scheduled-messages","href":"/api-reference/scheduled-messages/schedule-a-message"},{"title":"Get a scheduled message","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/scheduled-messages/{id}","href":"/api-reference/scheduled-messages/get-a-scheduled-message"},{"title":"Cancel a scheduled message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/scheduled-messages/{id}","href":"/api-reference/scheduled-messages/cancel-a-scheduled-message"},{"title":"Reschedule or edit a scheduled message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/scheduled-messages/{id}","href":"/api-reference/scheduled-messages/reschedule-or-edit-a-scheduled-message"},{"title":"Send a scheduled message now","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/scheduled-messages/{id}/send-now","href":"/api-reference/scheduled-messages/send-a-scheduled-message-now"}]},{"group":"Messages","pages":[{"title":"List sent messages","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/messages","href":"/api-reference/messages/list-sent-messages"},{"title":"Get a sent message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/messages/{id}","href":"/api-reference/messages/get-a-sent-message"},{"title":"Delete a sent message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/messages/{id}","href":"/api-reference/messages/delete-a-sent-message"},{"title":"Correct a sent message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/messages/{id}","href":"/api-reference/messages/correct-a-sent-message"},{"title":"List a sent message's change history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/messages/{id}/events","href":"/api-reference/messages/list-a-sent-messages-change-history"},{"title":"Resolve a change whose outcome was lost","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/messages/{id}/reconcile","href":"/api-reference/messages/resolve-a-change-whose-outcome-was-lost"},{"title":"Set when a sent message expires","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/messages/{id}/expiration","href":"/api-reference/messages/set-when-a-sent-message-expires"},{"title":"Cancel a sent message's expiry","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/messages/{id}/expiration","href":"/api-reference/messages/cancel-a-sent-messages-expiry"},{"title":"Expire a sent message now","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/messages/{id}/expire","href":"/api-reference/messages/expire-a-sent-message-now"},{"title":"Expire every message with a reference","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/messages/expire","href":"/api-reference/messages/expire-every-message-with-a-reference"}]}]}]},{"tab":"Operate","pages":[{"title":"Operate","href":"/guides/logs"}]}]},"title":"Schedule a message - LithoBlocks","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-B-Glu166.js","dist-zbf22OZA.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-Cs6nMGht.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-DmVyH30O.js","utils-BHQqGGOd.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CD-E4BIt.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp5Lq9Ds.js","snippetPresets-C4xAVCFP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CgXVLxUC.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BF8I5oUf.js","shallow-Byd0lWnC.js","getApiPlaygroundDisplay-BGOZG1OK.js","CodeSnippet-CpvQL0CY.js","CodeSnippets-B8wkBKXa.js","Page-CBCH2P7b.js","getPastedJson-Ry3scI3Y.js","icon-D7a9HcdD.js","MethodPill-CJ8pmHhz.js","DuplicateIcon-rh1HJF0t.js","createIcon-DvGznqYs.js","DynamicMarkdown-Cc6AuSHS.js","SectionHeading-B4A0S-ep.js","axios-vUo_bRtp.js","Markdown-Cc16CX65.js","AssistantPageLink-C_fs-y5n.js"]}