Export Tenant Compliance Audit Log as NDJSON Stream
GET /api/v1/compliance/audit-export — streams audit records as NDJSON. Filter by HUMAN, AGENT, or ALL activity. Both from and to are required.
The audit export endpoint streams every action taken in your tenant as newline-delimited JSON (NDJSON) for a specified time window. Use it to generate compliance reports, feed audit data into your SIEM, or produce records for regulatory requirements.
Endpoint
GET /api/v1/compliance/audit-export
Authorization
Requires an API key with the COMPLIANCE_EXPORT scope.
Query Parameters
string
required
Inclusive lower bound of the export window. ISO-8601 instant (e.g. 2024-01-01T00:00:00Z).
string
required
Exclusive upper bound of the export window. ISO-8601 instant. Must be after from.
string
Filter audit records by actor type. One of: HUMAN, AGENT, ALL. Default: ALL.
Request Example
# Export all activity for January 2024curl "https://api.your-domain.com/api/v1/compliance/audit-export?from=2024-01-01T00:00:00Z&to=2024-02-01T00:00:00Z&type=ALL" \ -H "Authorization: Bearer $IDEM_API_KEY"# Export only agent-originated activity and parse with jqcurl "https://api.your-domain.com/api/v1/compliance/audit-export?from=2024-01-01T00:00:00Z&to=2024-02-01T00:00:00Z&type=AGENT" \ -H "Authorization: Bearer $IDEM_API_KEY" | jq -c '.'
Response
The response body is an NDJSON stream — each line is a complete JSON object representing one audit record.
For high-volume tenants, use short time windows (e.g., daily) to avoid very large response streams. Process the NDJSON line-by-line to avoid loading the entire export into memory.
Error Codes
Code
Meaning
400
Missing from or to, or from is after to
401
Missing or invalid API key
403
API key does not have COMPLIANCE_EXPORT scope
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Idem","colors":{"primary":"#1FB8AC","light":"#2DD4C5","dark":"#0C6B64"},"logo":{"light":"https://mintcdn.com/idemfinance/CGXusX9PnQe9rEky/images/instagram-avatar-1080.png?fit=max\u0026auto=format\u0026n=CGXusX9PnQe9rEky\u0026q=85\u0026s=62f3c072ca9b2e2c9ad7960fa7f48b23","dark":"https://mintcdn.com/idemfinance/CGXusX9PnQe9rEky/images/instagram-avatar-1080.png?fit=max\u0026auto=format\u0026n=CGXusX9PnQe9rEky\u0026q=85\u0026s=62f3c072ca9b2e2c9ad7960fa7f48b23"},"favicon":"https://mintcdn.com/idemfinance/8VAGSG3_nfgJcko5/favicon.svg?fit=max\u0026auto=format\u0026n=8VAGSG3_nfgJcko5\u0026q=85\u0026s=ea7524b17a3559d6521a1e37a7f281c9","appearance":{"default":"system","strict":false},"navbar":{"primary":{"type":"button","label":"Get API Access","href":"mailto:hello@idemfinance.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"idemfinance","hasAudioNarration":false,"actualSubdomain":"idemfinance","customDomains":["docs.idem.finance"],"gitSource":{"type":"github","owner":"idem-finance","repo":"idem-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a982cc0a137d085e57be940","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"API Reference","count":20},{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"Administration","count":8},{"language":"default","tag":"Guides","count":8},{"language":"default","tag":"Accounts","count":5},{"language":"default","tag":"Settlements","count":4},{"language":"default","tag":"Core Concepts","count":4},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Compliance","count":1},{"language":"default","tag":"Reconciliation","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/compliance/audit-export","slug":"/api-reference/compliance/audit-export","pageMetadata":{"title":"Export Tenant Compliance Audit Log as NDJSON Stream","sidebarTitle":"Audit Export","description":"GET /api/v1/compliance/audit-export — streams audit records as NDJSON. Filter by HUMAN, AGENT, or ALL activity. Both from and to are required.","href":"/api-reference/compliance/audit-export"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"GET /api/v1/compliance/audit-export — streams audit records as NDJSON. Filter by HUMAN, AGENT, or ALL activity. Both from and to are required.\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The audit export endpoint streams every action taken in your tenant as newline-delimited JSON (NDJSON) for a specified time window. Use it to generate compliance reports, feed audit data into your SIEM, or produce records for regulatory requirements.`}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /api/v1/compliance/audit-export`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsxs(_components.p,{children:[`Requires an API key with the `,_jsx(_components.code,{children:`COMPLIANCE_EXPORT`}),` scope.`]}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsx(ParamField,{query:`from`,type:`string`,required:true,id:`param-from`,children:_jsxs(_components.p,{children:[`Inclusive lower bound of the export window. ISO-8601 instant (e.g. `,_jsx(_components.code,{children:`2024-01-01T00:00:00Z`}),`).`]})}),`\n`,_jsx(ParamField,{query:`to`,type:`string`,required:true,id:`param-to`,children:_jsxs(_components.p,{children:[`Exclusive upper bound of the export window. ISO-8601 instant. Must be after `,_jsx(_components.code,{children:`from`}),`.`]})}),`\n`,_jsx(ParamField,{query:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[`Filter audit records by actor type. One of: `,_jsx(_components.code,{children:`HUMAN`}),`, `,_jsx(_components.code,{children:`AGENT`}),`, `,_jsx(_components.code,{children:`ALL`}),`. Default: `,_jsx(_components.code,{children:`ALL`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-example`,children:`Request Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Export all activity for January 2024`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.your-domain.com/api/v1/compliance/audit-export?from=2024-01-01T00:00:00Z\u0026to=2024-02-01T00:00:00Z\u0026type=ALL\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$IDEM_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Export only agent-originated activity and parse with jq`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.your-domain.com/api/v1/compliance/audit-export?from=2024-01-01T00:00:00Z\u0026to=2024-02-01T00:00:00Z\u0026type=AGENT\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$IDEM_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`The response body is an NDJSON stream — each line is a complete JSON object representing one audit record.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{\"id\":\"...\",\"type\":\"HUMAN\",\"action\":\"POST_TRANSACTION\",...}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{\"id\":\"...\",\"type\":\"AGENT\",\"action\":\"AGENTS_EXECUTE\",...}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`Unique audit record ID.`})}),`\n`,_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type-1`,children:_jsxs(_components.p,{children:[`Actor type: `,_jsx(_components.code,{children:`HUMAN`}),` (API key holder) or `,_jsx(_components.code,{children:`AGENT`}),` (automated agent).`]})}),`\n`,_jsx(ResponseField,{name:`action`,type:`string`,id:`param-action`,children:_jsxs(_components.p,{children:[`The action performed (e.g. `,_jsx(_components.code,{children:`POST_TRANSACTION`}),`, `,_jsx(_components.code,{children:`CREATE_ACCOUNT`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`actorKeyId`,type:`string`,id:`param-actor-key-id`,children:_jsx(_components.p,{children:`The ID of the API key that performed the action.`})}),`\n`,_jsx(ResponseField,{name:`occurredAt`,type:`string`,id:`param-occurred-at`,children:_jsx(_components.p,{children:`ISO-8601 timestamp of when the action occurred.`})}),`\n`,_jsx(ResponseField,{name:`payload`,type:`object`,id:`param-payload`,children:_jsx(_components.p,{children:`Action-specific details (varies by action type).`})}),`\n`,_jsx(Heading,{level:`2`,id:`response-example`,children:`Response Example`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{\"id\":\"rec_001\",\"type\":\"HUMAN\",\"action\":\"POST_TRANSACTION\",\"actorKeyId\":\"key_abc\",\"occurredAt\":\"2024-01-15T10:30:00Z\",\"payload\":{\"transactionId\":\"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d\"}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{\"id\":\"rec_002\",\"type\":\"AGENT\",\"action\":\"AGENTS_EXECUTE\",\"actorKeyId\":\"key_agent\",\"occurredAt\":\"2024-01-15T10:31:00Z\",\"payload\":{\"transactionId\":\"3fa85f64-5717-4562-b3fc-2c963f66afa6\"}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`For high-volume tenants, use short time windows (e.g., daily) to avoid very large response streams. Process the NDJSON line-by-line to avoid loading the entire export into memory.`})}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`Missing `,_jsx(_components.code,{children:`from`}),` or `,_jsx(_components.code,{children:`to`}),`, or `,_jsx(_components.code,{children:`from`}),` is after `,_jsx(_components.code,{children:`to`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Missing or invalid API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsxs(_components.td,{children:[`API key does not have `,_jsx(_components.code,{children:`COMPLIANCE_EXPORT`}),` scope`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Export Tenant Compliance Audit Log as NDJSON Stream","sidebarTitle":"Audit Export","description":"GET /api/v1/compliance/audit-export — streams audit records as NDJSON. Filter by HUMAN, AGENT, or ALL activity. Both from and to are required.","href":"/api-reference/compliance/audit-export"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Endpoint","slug":"endpoint","depth":2,"children":[]},{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"Query Parameters","slug":"query-parameters","depth":2,"children":[]},{"title":"Request Example","slug":"request-example","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Response Example","slug":"response-example","depth":2,"children":[]},{"title":"Error Codes","slug":"error-codes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"idemfinance","siteName":"Idem","title":"Export Tenant Compliance Audit Log as NDJSON Stream - Idem","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-18T02:16:14.074Z","originalFileLocation":"api-reference/compliance/audit-export.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"GET /api/v1/compliance/audit-export — streams audit records as NDJSON. Filter by HUMAN, AGENT, or ALL activity. Both from and to are required.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Idem\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_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/idemfinance/F9G5QXrjJgY4h0Rb/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Export Tenant Compliance Audit Log as NDJSON Stream - Idem\">\u003cmeta data-mint-head property=\"og:description\" content=\"GET /api/v1/compliance/audit-export — streams audit records as NDJSON. Filter by HUMAN, AGENT, or ALL activity. Both from and to are required.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Idem\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.idem.finance/api-reference/compliance/audit-export\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://idemfinance.mintlify.site/_mintlify/api/og/v2?division=Compliance\u0026amp;title=Export+Tenant+Compliance+Audit+Log+as+NDJSON+Stream\u0026amp;description=GET+%2Fapi%2Fv1%2Fcompliance%2Faudit-export+%E2%80%94+streams+audit+records+as+NDJSON.+Filter+by+HUMAN%2C+AGENT%2C+or+ALL+activity.+Both+from+and+to+are+required.\u0026amp;theme=20058cba77ad131756a5ef33\u0026amp;signature=a68600106f2382c64670769003de475530cba53ac55ca4d7e7dc9678dcaf89ca\">\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=\"Export Tenant Compliance Audit Log as NDJSON Stream - Idem\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"GET /api/v1/compliance/audit-export — streams audit records as NDJSON. Filter by HUMAN, AGENT, or ALL activity. Both from and to are required.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://idemfinance.mintlify.site/_mintlify/api/og/v2?division=Compliance\u0026amp;title=Export+Tenant+Compliance+Audit+Log+as+NDJSON+Stream\u0026amp;description=GET+%2Fapi%2Fv1%2Fcompliance%2Faudit-export+%E2%80%94+streams+audit+records+as+NDJSON.+Filter+by+HUMAN%2C+AGENT%2C+or+ALL+activity.+Both+from+and+to+are+required.\u0026amp;theme=20058cba77ad131756a5ef33\u0026amp;signature=a68600106f2382c64670769003de475530cba53ac55ca4d7e7dc9678dcaf89ca\">\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/idemfinance/F9G5QXrjJgY4h0Rb/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Idem\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1FB8AC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.idem.finance/api-reference/compliance/audit-export\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/compliance/audit-export.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.idem.finance/#organization\",\"name\":\"Idem\",\"url\":\"https://docs.idem.finance\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/idemfinance/CGXusX9PnQe9rEky/images/instagram-avatar-1080.png?fit=max\u0026auto=format\u0026n=CGXusX9PnQe9rEky\u0026q=85\u0026s=62f3c072ca9b2e2c9ad7960fa7f48b23\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.idem.finance#website\",\"name\":\"Idem\",\"url\":\"https://docs.idem.finance\",\"publisher\":{\"@id\":\"https://docs.idem.finance/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.idem.finance/api-reference/compliance/audit-export#webpage\",\"url\":\"https://docs.idem.finance/api-reference/compliance/audit-export\",\"name\":\"Export Tenant Compliance Audit Log as NDJSON Stream\",\"description\":\"GET /api/v1/compliance/audit-export — streams audit records as NDJSON. Filter by HUMAN, AGENT, or ALL activity. Both from and to are required.\",\"dateModified\":\"2026-08-18T02:16:14.074Z\",\"isPartOf\":{\"@id\":\"https://docs.idem.finance#website\"},\"breadcrumb\":{\"@id\":\"https://docs.idem.finance/api-reference/compliance/audit-export#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.idem.finance/api-reference/compliance/audit-export#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Idem\",\"item\":\"https://docs.idem.finance\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Export Tenant Compliance Audit Log as NDJSON Stream\",\"item\":\"https://docs.idem.finance/api-reference/compliance/audit-export\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.idem.finance/api-reference/compliance/audit-export#article\",\"headline\":\"Export Tenant Compliance Audit Log as NDJSON Stream\",\"name\":\"Export Tenant Compliance Audit Log as NDJSON Stream\",\"description\":\"GET /api/v1/compliance/audit-export — streams audit records as NDJSON. Filter by HUMAN, AGENT, or ALL activity. Both from and to are required.\",\"url\":\"https://docs.idem.finance/api-reference/compliance/audit-export\",\"mainEntityOfPage\":{\"@id\":\"https://docs.idem.finance/api-reference/compliance/audit-export#webpage\"},\"dateModified\":\"2026-08-18T02:16:14.074Z\",\"publisher\":{\"@id\":\"https://docs.idem.finance/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.idem.finance#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Idem\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Idem\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/compliance/audit-export.md","siteName":"Idem","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Accounts","pages":[{"title":"List All Ledger Accounts for Your Tenant — Overview","sidebarTitle":"List Accounts","href":"/api-reference/accounts/list-accounts"},{"title":"Create a Ledger Account With Currency, Type, and Name","sidebarTitle":"Create Account","href":"/api-reference/accounts/create-account"},{"title":"Get Account Balance — Current or Point in Time Query","sidebarTitle":"Get Balance","href":"/api-reference/accounts/get-balance"},{"title":"Retrieve All Paginated Journal Entries for an Account","sidebarTitle":"List Entries","href":"/api-reference/accounts/list-entries"},{"title":"Generate an Account Statement for a Custom Date Range","sidebarTitle":"Account Statement","href":"/api-reference/accounts/get-statement"}]},{"group":"Transactions","pages":[{"title":"POST /api/v1/transactions — Post a Balanced Transaction","sidebarTitle":"Post Transaction","href":"/api-reference/transactions/post-transaction"}]},{"group":"Settlements","pages":[{"title":"List Settlements with Filtering and Pagination","sidebarTitle":"List Settlements","href":"/api-reference/settlements/list-settlements"},{"title":"Register a Settlement Expectation for Wallet Watching","sidebarTitle":"Register Settlement","href":"/api-reference/settlements/register-settlement"},{"title":"Retrieve Settlement Details and Current Status by ID","sidebarTitle":"Get Settlement","href":"/api-reference/settlements/get-settlement"},{"title":"Cancel a Pending Settlement and Stop Transfer Watching","sidebarTitle":"Cancel Settlement","href":"/api-reference/settlements/cancel-settlement"}]},{"group":"Reconciliation","pages":[{"title":"Trigger Batch Reconciliation for Multiple Transactions","sidebarTitle":"Batch Reconcile","description":"POST /api/v1/reconciliation/batch — re-runs reconciliation for up to 100 transaction IDs. Useful for transactions not matched on initial commit.","href":"/api-reference/reconciliation/batch-reconcile"}]},{"group":"Compliance","pages":[{"title":"Export Tenant Compliance Audit Log as NDJSON Stream","sidebarTitle":"Audit Export","href":"/api-reference/compliance/audit-export"}]},{"group":"Administration","pages":[{"title":"List All API Keys and Their Scopes for Your Tenant","sidebarTitle":"List API Keys","description":"GET /api/v1/api-keys — lists all API keys for your tenant. Raw key values are never returned. Requires ADMIN scope to protect key management.","href":"/api-reference/admin/list-api-keys"},{"title":"Create a Scoped API Key with Least-Privilege Permissions","sidebarTitle":"Create API Key","href":"/api-reference/admin/create-api-key"},{"title":"Revoke an API Key and Immediately Invalidate Access","sidebarTitle":"Revoke API Key","href":"/api-reference/admin/revoke-api-key"},{"title":"List All Agent Policy Rules Configured for Your Tenant","sidebarTitle":"List Policy Rules","href":"/api-reference/admin/list-policy-rules"},{"title":"Create an Agent Policy Rule to Restrict Transactions","sidebarTitle":"Create Policy Rule","href":"/api-reference/admin/create-policy-rule"},{"title":"Delete a Policy Rule and Revoke Agent Authorization","sidebarTitle":"Delete Policy Rule","href":"/api-reference/admin/delete-policy-rule"},{"title":"Retrieve the Current Webhook Configuration for Your Tenant","sidebarTitle":"Get Webhook","href":"/api-reference/admin/get-webhook"},{"title":"Register or Update Your Tenant Webhook URL and Secret","sidebarTitle":"Update Webhook","href":"/api-reference/admin/update-webhook"}]}]}]},"basePath":"","title":"Export Tenant Compliance Audit Log as NDJSON Stream - Idem","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":[],"chunks":[]}