(Archived) Data event formats for packaging sensor data (text, JSON, base64 image, numeric array); the payload shapes are also used by the Direct Query API’s events parameter.
Data events allow a developer to package and combine multimodal sensor so it can be used as real-time inputs to an active lens or to build offline datasets for fine-tuning and evaluating models.Each data event has a type (e.g. data.text, data.json, data.base64_img) that identifies the category of multimodal data, with the event_data containing the associated payload (e.g. the text data, the json data, the base64 image).The current data events are:
The data.text event can be used to embed textual data within an event message as part of a multimodal message.
data.text parameters
string
required
The data.text key identifies that this event is a text event.
object
required
Contains the text payload and associated metadata.
event_data parameters
str
required
The contents key contains the main body of the text data.
data.text example
type: data.textevent_data: contents: "Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy lies a small unregarded yellow sun."
data.json
The data.json event can be used to embed a base64 encoded image directly into an event message.The data.json event is used to send images directly as input to a lens.
data.json parameters
string
required
The data.json key identifies that this event is a json dictonary.
The data.base64_img event can be used to embed a base64 encoded image directly into an event message.The data.base64_img event is used to send images directly as input to a lens.
data.base64_img parameters
string
required
The data.base64_img key identifies that this event is a base64 image event.
object
required
Contains the image payload and associated metadata.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Archetype AI Documentation","colors":{"primary":"#0047FF","light":"#9EBBFF","dark":"#0047FF"},"logo":{"light":"https://mintcdn.com/archetypeai-bd6fb3cf/Fml2i7FmPyxjLCP7/logo/light.svg?fit=max\u0026auto=format\u0026n=Fml2i7FmPyxjLCP7\u0026q=85\u0026s=4b1f94a0bc6c65c3905d1a55d725b05f","dark":"https://mintcdn.com/archetypeai-bd6fb3cf/Fml2i7FmPyxjLCP7/logo/dark.svg?fit=max\u0026auto=format\u0026n=Fml2i7FmPyxjLCP7\u0026q=85\u0026s=b652785f67f97925eb5177264ffc9e50"},"favicon":"https://mintcdn.com/archetypeai-bd6fb3cf/PEoHdVWOSWJmHgSg/favicon.svg?fit=max\u0026auto=format\u0026n=PEoHdVWOSWJmHgSg\u0026q=85\u0026s=4ea6587ffdd8e925003e9e12319702aa","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://platform.u1.archetypeai.app/api"}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"https://platform.u1.archetypeai.app/","label":"Console"}]},"footer":{"socials":{"twitter":"https://x.com/physicalai","github":"https://github.com/archetypeai","linkedin":"https://www.linkedin.com/company/archetype-ai"}},"search":{"prompt":"Search Archetype Platform docs..."},"seo":{"indexing":"navigable"},"styling":{"codeblocks":"system","latex":false},"integrations":{"amplitude":{"apiKey":"84e8a1610cf8b3c7d8a49d945917606d"}},"markdown":{"instructions":"Start with /introduction/getting-started. Use the Inference API's Direct Query endpoint (POST /api/inference/query) with the newton-c-2.6 or newton-fusion-1.0 model (text, image, and video reasoning) or the omega-embedding encoder (time-series embeddings). ATAI_API_ENDPOINT is the base URL https://platform.u1.archetypeai.app with no version path; every endpoint path begins with /api. Pages whose descriptions are marked (Archived) document the legacy Lens runtime — do not use them for new projects."},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"archetypeai-bd6fb3cf","hasAudioNarration":false,"actualSubdomain":"archetypeai-bd6fb3cf","customDomains":["docs.archetypeai.app"],"gitSource":{"type":"github","owner":"archetypeai","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae399f43888be9481e90634"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aff7cc9fb9c824e7740658f","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"API Reference","count":272},{"language":"default","tag":"Documentation","count":82},{"language":"default","tag":"Agents API","count":55},{"language":"default","tag":"Archive","count":28},{"language":"default","tag":"Core Concepts","count":25},{"language":"default","tag":"Agents","count":24},{"language":"default","tag":"Batch Processing API","count":20},{"language":"default","tag":"Developer Console","count":18},{"language":"default","tag":"Files API","count":16},{"language":"default","tag":"Sessions","count":14}]},"assistantConfig":{"deflection":{"enabled":true,"email":"[email protected]"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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":false},"customCss":[{"filePath":"style.css","content":"*{border-radius:0px!important}[data-theme=\"light\"] pre,[data-theme=\"light\"] pre code{background-color:#f6f8fa!important;color:#24292e!important}[data-theme=\"dark\"] pre,[data-theme=\"dark\"] pre code{background-color:#161b22!important;color:#e1e4e8!important}[data-theme=\"light\"] code:not(pre code){color:#0969da!important;background-color:#f6f8fa!important;padding:2px 4px;border-radius:3px}[data-theme=\"dark\"] code:not(pre code){color:#79c0ff!important;background-color:#161b22!important;padding:2px 4px;border-radius:3px}"}]}
{"page":{"pagePath":"core-concepts/streams/events/data-events","slug":"/core-concepts/streams/events/data-events","pageMetadata":{"title":"Data Events","description":"(Archived) Data event formats for packaging sensor data (text, JSON, base64 image, numeric array); the payload shapes are also used by the Direct Query API's events parameter.","deprecated":true,"href":"/core-concepts/streams/events/data-events"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"(Archived) Data event formats for packaging sensor data (text, JSON, base64 image, numeric array); the payload shapes are also used by the Direct Query API’s events parameter.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Heading,ParamField}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Data events allow a developer to package and combine multimodal sensor so it can be used as real-time inputs to an active lens or to build offline datasets for fine-tuning and evaluating models.`}),`\n`,_jsx(_components.p,{children:`Each data event has a type (e.g. data.text, data.json, data.base64_img) that identifies the category of multimodal data, with the event_data containing the associated payload (e.g. the text data, the json data, the base64 image).`}),`\n`,_jsx(_components.p,{children:`The current data events are:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`#data-text`,children:`data.text`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`#data-json`,children:`data.json`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`#data-base64_img`,children:`data.base64_img`})}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`data-text`,children:`data.text`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`data.text`}),` event can be used to embed textual data within an event message as part of a multimodal message.`]}),`\n`,_jsx(Heading,{level:`3`,id:`data-text-parameters`,children:`data.text parameters`}),`\n`,_jsx(ParamField,{body:`type: data.text`,type:`string`,required:true,id:`param-type-data-text`,children:_jsx(_components.p,{children:`The data.text key identifies that this event is a text event.`})}),`\n`,_jsxs(ParamField,{path:`event_data`,type:`object`,required:true,id:`param-event-data`,children:[_jsx(_components.p,{children:`Contains the text payload and associated metadata.`}),_jsx(Accordion,{title:`event_data parameters`,id:`event-data-parameters`,children:_jsx(ParamField,{path:`contents`,type:`str`,required:true,id:`param-contents`,children:_jsx(_components.p,{children:`The contents key contains the main body of the text data.`})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`data-text-example`,children:`data.text example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`data.text`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`event_data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` contents`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy lies a small unregarded yellow sun.\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`data-json`,children:`data.json`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`data.json`}),` event can be used to embed a base64 encoded image directly into an event message.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`data.json`}),` event is used to send images directly as input to a lens.`]}),`\n`,_jsx(Heading,{level:`3`,id:`data-json-parameters`,children:`data.json parameters`}),`\n`,_jsx(ParamField,{body:`type: data.json`,type:`string`,required:true,id:`param-type-data-json`,children:_jsx(_components.p,{children:`The data.json key identifies that this event is a json dictonary.`})}),`\n`,_jsx(ParamField,{path:`event_data`,type:`object`,required:true,id:`param-event-data-1`,children:_jsx(_components.p,{children:`Contains the JSON payload.`})}),`\n`,_jsx(Heading,{level:`3`,id:`data-json-example`,children:`data.json example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`data.json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`event_data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` some_key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`some_value`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` another_key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`another_value`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`data-base64_img`,children:`data.base64_img`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`data.base64_img`}),` event can be used to embed a base64 encoded image directly into an event message.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`data.base64_img`}),` event is used to send images directly as input to a lens.`]}),`\n`,_jsx(Heading,{level:`3`,id:`data-base64_img-parameters`,children:`data.base64_img parameters`}),`\n`,_jsx(ParamField,{body:`type: data.base64_img`,type:`string`,required:true,id:`param-type-data-base64-img`,children:_jsx(_components.p,{children:`The data.base64_img key identifies that this event is a base64 image event.`})}),`\n`,_jsxs(ParamField,{path:`event_data`,type:`object`,required:true,id:`param-event-data-2`,children:[_jsx(_components.p,{children:`Contains the image payload and associated metadata.`}),_jsx(Accordion,{title:`event_data parameters`,id:`event-data-parameters-1`,children:_jsx(ParamField,{path:`contents`,type:`str`,required:true,id:`param-contents-1`,children:_jsx(_components.p,{children:`The base64 encoded image as a byte string.`})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`data-base64_img-example`,children:`data.base64_img example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`data.base64_img`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`event_data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` contents`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`iVBORw0KGgoAAAANSUhEUgAAAAUAAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Data Events","description":"(Archived) Data event formats for packaging sensor data (text, JSON, base64 image, numeric array); the payload shapes are also used by the Direct Query API's events parameter.","deprecated":true,"href":"/core-concepts/streams/events/data-events"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"data.text","slug":"data-text","depth":2,"children":[{"title":"data.text parameters","slug":"data-text-parameters","depth":3,"children":[]},{"title":"data.text example","slug":"data-text-example","depth":3,"children":[]}]},{"title":"data.json","slug":"data-json","depth":2,"children":[{"title":"data.json parameters","slug":"data-json-parameters","depth":3,"children":[]},{"title":"data.json example","slug":"data-json-example","depth":3,"children":[]}]},{"title":"data.base64_img","slug":"data-base64_img","depth":2,"children":[{"title":"data.base64_img parameters","slug":"data-base64_img-parameters","depth":3,"children":[]},{"title":"data.base64_img example","slug":"data-base64_img-example","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"archetypeai-bd6fb3cf","siteName":"Archetype AI Documentation","title":"Data Events - Archetype AI Documentation","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"manual"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-08T16:26:53.347Z","originalFileLocation":"core-concepts/streams/events/data-events.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=\"(Archived) Data event formats for packaging sensor data (text, JSON, base64 image, numeric array); the payload shapes are also used by the Direct Query API\u0026#x27;s events parameter.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Archetype AI Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Data Events - Archetype AI Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"(Archived) Data event formats for packaging sensor data (text, JSON, base64 image, numeric array); the payload shapes are also used by the Direct Query API\u0026#x27;s events parameter.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Archetype AI Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.archetypeai.app/core-concepts/streams/events/data-events\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://archetypeai-bd6fb3cf.mintlify.site/_mintlify/api/og/v2?division=Events\u0026amp;title=Data+Events\u0026amp;description=%28Archived%29+Data+event+formats+for+packaging+sensor+data+%28text%2C+JSON%2C+base64+image%2C+numeric+array%29%3B+the+payload+shapes+are+also+used+by+the+Direct+Query+API%27s+ev\u0026amp;theme=baca9d5089929997d797e9d7\u0026amp;signature=3395b1f50bafffd3ca053ba4905dfdecf1271a1141ec9a8bdf70f29a93a0f246\">\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=\"Data Events - Archetype AI Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"(Archived) Data event formats for packaging sensor data (text, JSON, base64 image, numeric array); the payload shapes are also used by the Direct Query API\u0026#x27;s events parameter.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://archetypeai-bd6fb3cf.mintlify.site/_mintlify/api/og/v2?division=Events\u0026amp;title=Data+Events\u0026amp;description=%28Archived%29+Data+event+formats+for+packaging+sensor+data+%28text%2C+JSON%2C+base64+image%2C+numeric+array%29%3B+the+payload+shapes+are+also+used+by+the+Direct+Query+API%27s+ev\u0026amp;theme=baca9d5089929997d797e9d7\u0026amp;signature=3395b1f50bafffd3ca053ba4905dfdecf1271a1141ec9a8bdf70f29a93a0f246\">\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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Archetype AI Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0047FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.archetypeai.app/core-concepts/streams/events/data-events\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/core-concepts/streams/events/data-events.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.archetypeai.app/#organization\",\"name\":\"Archetype AI Documentation\",\"url\":\"https://docs.archetypeai.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/archetypeai-bd6fb3cf/Fml2i7FmPyxjLCP7/logo/light.svg?fit=max\u0026auto=format\u0026n=Fml2i7FmPyxjLCP7\u0026q=85\u0026s=4b1f94a0bc6c65c3905d1a55d725b05f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.archetypeai.app#website\",\"name\":\"Archetype AI Documentation\",\"url\":\"https://docs.archetypeai.app\",\"publisher\":{\"@id\":\"https://docs.archetypeai.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.archetypeai.app/core-concepts/streams/events/data-events#webpage\",\"url\":\"https://docs.archetypeai.app/core-concepts/streams/events/data-events\",\"name\":\"Data Events\",\"description\":\"(Archived) Data event formats for packaging sensor data (text, JSON, base64 image, numeric array); the payload shapes are also used by the Direct Query API's events parameter.\",\"dateModified\":\"2026-10-08T16:26:53.347Z\",\"isPartOf\":{\"@id\":\"https://docs.archetypeai.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.archetypeai.app/core-concepts/streams/events/data-events#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.archetypeai.app/core-concepts/streams/events/data-events#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Archive\",\"item\":\"https://docs.archetypeai.app/core-concepts/lenses/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Streams\",\"item\":\"https://docs.archetypeai.app/core-concepts/streams/data-streams\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Events\",\"item\":\"https://docs.archetypeai.app/core-concepts/streams/events/overview\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Data Events\",\"item\":\"https://docs.archetypeai.app/core-concepts/streams/events/data-events\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.archetypeai.app/core-concepts/streams/events/data-events#article\",\"headline\":\"Data Events\",\"name\":\"Data Events\",\"description\":\"(Archived) Data event formats for packaging sensor data (text, JSON, base64 image, numeric array); the payload shapes are also used by the Direct Query API's events parameter.\",\"url\":\"https://docs.archetypeai.app/core-concepts/streams/events/data-events\",\"mainEntityOfPage\":{\"@id\":\"https://docs.archetypeai.app/core-concepts/streams/events/data-events#webpage\"},\"dateModified\":\"2026-10-08T16:26:53.347Z\",\"publisher\":{\"@id\":\"https://docs.archetypeai.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.archetypeai.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Archetype AI Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Archetype AI Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/core-concepts/streams/events/data-events.md","siteName":"Archetype AI Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Introduction","public":true,"pages":[{"title":"Overview","href":"/introduction/overview"},{"title":"The Archetype AI Free Trial","sidebarTitle":"Free Trial","href":"/support/free-trial/features"},{"title":"Developer Quickstart: Direct Query API","sidebarTitle":"Getting Started: Direct Query API","href":"/introduction/getting-started"},{"title":"Developer Quickstart: Inference API","sidebarTitle":"Getting Started: Inference API","href":"/introduction/getting-started-inference-api"}]},{"group":"Core Concepts","public":true,"pages":[{"title":"Overview","href":"/core-concepts/introduction/introduction"},{"group":"Agents","pages":[{"title":"Overview","href":"/core-concepts/agents/overview"},{"title":"Managing Agents Using the Agents API","sidebarTitle":"Using the Agents API","href":"/core-concepts/agents/api"},{"title":"Batch and Serving Modes","sidebarTitle":"Batch and Serving Modes","href":"/core-concepts/agents/batch-and-serving"},{"group":"Agent Blueprints","pages":[{"title":"Anomaly Discovery Agent","href":"/core-concepts/agents/anomaly-discovery"},{"title":"Manual Generation Agent","href":"/core-concepts/agents/manual-generation"},{"title":"Operational State Monitoring Agent","href":"/core-concepts/agents/osm"},{"title":"Rare Event Detection Agent","href":"/core-concepts/agents/rare-event-detection"},{"title":"Task Verification Agent","href":"/core-concepts/agents/task-verification"},{"group":"Preview Agents","pages":[{"title":"Catastrophic Failure Prediction Agent","href":"/core-concepts/agents/catastrophic-failure-prediction"},{"title":"Contextualization Agent","href":"/core-concepts/agents/contextualization"},{"title":"Interpretation Agent","href":"/core-concepts/agents/interpretation"},{"title":"Label-Free Anomaly Discovery Agent","href":"/core-concepts/agents/label-free-ad"},{"title":"Omega Encoder Agent","href":"/core-concepts/agents/omega-encoder"},{"title":"State Discovery Agent","href":"/core-concepts/agents/state-discovery"}]}]},{"title":"Optimizations and Evals","href":"/core-concepts/agents/optimize-and-eval"},{"title":"Migrating from Bundles and Instances","tag":"v2.0.1+","href":"/core-concepts/agents/migrate-from-bundles"}]},{"group":"Files","pages":[{"title":"Introduction to the Files API","sidebarTitle":"Introduction","href":"/core-concepts/files/files"},{"title":"Direct-to-Cloud Uploads","sidebarTitle":"Direct-to-Cloud","href":"/core-concepts/files/cloud-upload"}]},{"group":"Batch Processing","pages":[{"title":"Overview","href":"/core-concepts/batch-processing/overview"},{"title":"YAML Parameter Reference","sidebarTitle":"YAML Parameters","href":"/core-concepts/batch-processing/yaml-parameters"}]},{"title":"Improving Model Performance","sidebarTitle":"Model Performance","href":"/core-concepts/models/model-performance"},{"group":"Customization","pages":[{"title":"Overview","href":"/core-concepts/customization/overview"},{"title":"N-Shot Examples","href":"/core-concepts/customization/n-shot-examples"},{"title":"Fine-Tuning","href":"/core-concepts/customization/fine-tuning"}]}]},{"group":"Developer Console","public":true,"pages":[{"title":"Overview","href":"/developer-console/overview"},{"title":"Account Management","href":"/developer-console/account-management"},{"title":"Projects","tag":"v2.0.1+","href":"/developer-console/projects"},{"group":"Agents","pages":[{"title":"Using Agents in the Developer Console","sidebarTitle":"Overview","href":"/developer-console/agents/overview"},{"title":"Agent Gallery","href":"/developer-console/agents/agent-gallery"},{"title":"Blueprints","tag":"v2.0.1+","href":"/developer-console/agents/blueprints"},{"title":"Packages","tag":"v2.0.1+","href":"/developer-console/agents/packages"},{"title":"Deployments","tag":"v2.0.1+","href":"/developer-console/agents/deployments"},{"title":"Sessions","tag":"v2.0.1+","href":"/developer-console/agents/sessions"},{"title":"Optimizations","href":"/developer-console/agents/optimizations"},{"title":"Evals","href":"/developer-console/agents/evals"}]},{"title":"File Manager","href":"/developer-console/file-manager/overview"},{"title":"Batch Manager","href":"/developer-console/batch-manager"},{"title":"Fine-Tuning","href":"/developer-console/fine-tuning/fine-tuning"},{"title":"Model Registry","href":"/developer-console/model-registry/model-registry"}]},{"group":"Libraries","public":true,"pages":[{"title":"Overview","href":"/libraries/libraries"},{"title":"Python","href":"/libraries/python"},{"title":"Environment Variables","href":"/libraries/environment-variables"}]},{"group":"Integrations","public":true,"pages":[{"title":"NVIDIA VSS with Newton Fusion","href":"/integrations/nvidia-vss"}]},{"group":"Examples","public":true,"pages":[{"title":"Example Projects","href":"/code-examples/example-projects"}]},{"group":"Help \u0026 Support","public":true,"pages":[{"title":"Support","href":"/support/support"},{"title":"Troubleshooting","href":"/support/troubleshooting"},{"title":"Error Codes","href":"/support/error-codes"},{"group":"Release Notes","pages":[{"title":"v2.0.x","href":"/release-notes/2.0.x"},{"title":"v1.1.x","href":"/release-notes/1.1.x"}]}]},{"group":"Archive","public":true,"pages":[{"group":"Lenses","pages":[{"title":"What is a Lens?","deprecated":true,"href":"/core-concepts/lenses/overview"},{"group":"Starter Lens","pages":[{"title":"Activity Monitor","deprecated":true,"href":"/core-concepts/lenses/lens-templates/activity-monitor"},{"title":"Machine State Lens","deprecated":true,"href":"/core-concepts/lenses/lens-templates/machine-state"},{"title":"Test Lens","deprecated":true,"href":"/core-concepts/lenses/lens-templates/test-lens"}]},{"title":"Lens Parameters","sidebarTitle":"Lens Parameters","deprecated":true,"href":"/core-concepts/lenses/lens-parameter"},{"title":"Lens Processors","deprecated":true,"href":"/core-concepts/lenses/lens-processors"},{"title":"Lens Customization","deprecated":true,"href":"/core-concepts/customization/lens-customization"}]},{"group":"Streams","pages":[{"title":"Data Streams","deprecated":true,"href":"/core-concepts/streams/data-streams"},{"group":"Data Connectors","pages":[{"group":"Readers","pages":[{"title":"CSV File Reader","deprecated":true,"href":"/core-concepts/streams/data-connectors/readers/csv-reader"},{"title":"Video File Reader","deprecated":true,"href":"/core-concepts/streams/data-connectors/readers/video-reader"},{"title":"RTSP Video Reader","deprecated":true,"href":"/core-concepts/streams/data-connectors/readers/rtsp-video-reader"},{"title":"JSONL File Reader","deprecated":true,"href":"/core-concepts/streams/data-connectors/readers/jsonl-file-reader"}]},{"group":"Writers","pages":[{"title":"SSE Writer","deprecated":true,"href":"/core-concepts/streams/data-connectors/writers/sse-writer"}]}]},{"group":"Events","pages":[{"title":"Events","deprecated":true,"href":"/core-concepts/streams/events/overview"},{"title":"Session Events","deprecated":true,"href":"/core-concepts/streams/events/session-events"},{"title":"Stream Events","description":"(Archived) Legacy Lens runtime: input/output stream configuration events for lens sessions.","deprecated":true,"href":"/core-concepts/streams/events/stream-events"},{"title":"Data Events","deprecated":true,"href":"/core-concepts/streams/events/data-events"},{"title":"SSE Streaming","description":"(Archived) Legacy Lens runtime: real-time SSE streaming of lens session output.","deprecated":true,"href":"/core-concepts/streams/events/sse-streaming"}]}]},{"group":"Developer Console","pages":[{"title":"Getting Started","deprecated":true,"href":"/developer-console/introduction"},{"group":"Workbench Starter Lenses","pages":[{"title":"Activity Monitor Lens","deprecated":true,"href":"/developer-console/workbench/activity"},{"title":"Machine State Lens","deprecated":true,"href":"/developer-console/workbench/machine-state"}]}]},{"group":"Examples","pages":[{"group":"Command Line Examples","pages":[{"title":"Activity Monitor","deprecated":true,"href":"/code-examples/command-line-demos/activity-monitor/activity-monitor"},{"title":"Machine State Lens","deprecated":true,"href":"/code-examples/command-line-demos/machine-state/machine-state"}]},{"group":"Alerts with Telegram","pages":[{"title":"Real-time Camera Alerts","deprecated":true,"href":"/code-examples/telegram-alerts/telegram-alerts"},{"group":"Setup","pages":[{"title":"RTSP Configuration","deprecated":true,"href":"/code-examples/telegram-alerts/setup/rtsp-setup"},{"title":"Telegram Bot Setup","deprecated":true,"href":"/code-examples/telegram-alerts/setup/bot-setup"}]}]},{"group":"Sensor Analysis with Sheets","pages":[{"title":"Google Sheets Integration","deprecated":true,"href":"/code-examples/machine-state/sensor-analysis-with-sheets"},{"group":"Setup","pages":[{"title":"Google Sheets API Credentials","deprecated":true,"href":"/code-examples/machine-state/setup/credentials-setup"}]}]}]}]}]},{"tab":"API Reference","directory":"accordion","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"For Agents","pages":[{"title":"For Agents","href":"/for-agents/agent-skills"}]},{"tab":"Admin","pages":[{"title":"Admin","href":"/developer-console/org-admin/overview"}]}]},"basePath":"","title":"Data Events - Archetype AI Documentation","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":[],"chunks":[]}