Where this page ended. Pass it back as cursor to read on; it is returned even when the page is short, so a poller always has its place. Null only when there was no position to report.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PromptGuard","description":"AI security firewall. Protect LLM applications from prompt injection, data leaks, jailbreaks, and PII exposure.","colors":{"primary":"#3B82F6","light":"#60A5FA","dark":"#1D4ED8"},"logo":{"light":"https://mintcdn.com/promptguard/sBVZPqZYn263LC-L/logo/light.svg?fit=max\u0026auto=format\u0026n=sBVZPqZYn263LC-L\u0026q=85\u0026s=8bf0b3b1f4e6fcd571bd4fefce2cda92","dark":"https://mintcdn.com/promptguard/sBVZPqZYn263LC-L/logo/dark.svg?fit=max\u0026auto=format\u0026n=sBVZPqZYn263LC-L\u0026q=85\u0026s=5448b21f857c43e1208ae10e3d2b09e7","href":"https://promptguard.co"},"favicon":{"light":"https://mintcdn.com/promptguard/spb60-yqv9beaOFS/favicon.ico?fit=max\u0026auto=format\u0026n=spb60-yqv9beaOFS\u0026q=85\u0026s=ccf87036090bd89bb275dd47d8e66cac","dark":"https://mintcdn.com/promptguard/spb60-yqv9beaOFS/favicon.ico?fit=max\u0026auto=format\u0026n=spb60-yqv9beaOFS\u0026q=85\u0026s=ccf87036090bd89bb275dd47d8e66cac"},"api":{"playground":{"display":"interactive"},"mdx":{"server":"https://api.promptguard.co"}},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://promptguard.co/contact","label":"Support"}],"primary":{"type":"button","label":"Get API Key","href":"https://app.promptguard.co"}},"footer":{"socials":{"twitter":"https://x.com/PromptGuardco","linkedin":"https://www.linkedin.com/company/promptguardco"},"links":[{"items":[{"label":"Dashboard","href":"https://app.promptguard.co"},{"label":"Pricing","href":"https://promptguard.co/pricing"},{"label":"Changelog","href":"/changelog"}]},{"items":[{"label":"Quick Start","href":"/quickstart"},{"label":"API Reference","href":"/api-reference/introduction"},{"label":"Python SDK","href":"/guides/python-sdk"},{"label":"Node.js SDK","href":"/guides/node-sdk"},{"label":"CLI","href":"/tools/cli"}]},{"items":[{"label":"Blog","href":"https://promptguard.co/blog"},{"label":"Support","href":"https://promptguard.co/contact"},{"label":"Terms","href":"https://promptguard.co/terms"},{"label":"Privacy","href":"https://promptguard.co/privacy"}]},{"items":[{"label":"llms.txt","href":"https://docs.promptguard.co/llms.txt"},{"label":"llms-full.txt","href":"https://docs.promptguard.co/llms-full.txt"}]}]},"search":{},"seo":{"metatags":{"og:type":"website","og:site_name":"PromptGuard Docs"},"indexing":"navigable"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":true},"contextual":{"options":["copy","chatgpt","claude","perplexity","add-mcp","cursor","vscode"],"display":"header"},"interaction":{"drilldown":true},"metadata":{"timestamp":true},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"rectangle-terminal","href":"https://app.promptguard.co"},{"anchor":"Blog","icon":"newspaper","href":"https://promptguard.co/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"promptguard","hasAudioNarration":false,"actualSubdomain":"promptguard","customDomains":["docs.promptguard.co"],"gitSource":{"type":"github","owner":"promptguardhq","repo":"promptguard","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6ae67b21a8f9aedbcd15e200"},"chroma":{"liveDeploymentHistoryId":"6ae777b052c8551247d82fc9","collectionId":"c72ab137-f46b-445e-af33-af4fce74895c","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae777b052c8551247d82fc9"},"entitlements":{},"buildId":"6ae777b052c8551247d82fc9","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Documentation","count":115},{"language":"default","tag":"API Reference","count":72},{"language":"default","tag":"Integrations","count":22},{"language":"default","tag":"Shadow AI","count":14},{"language":"default","tag":"LLM Providers","count":13},{"language":"default","tag":"Core Concepts","count":13},{"language":"default","tag":"Platform","count":12},{"language":"default","tag":"Resources","count":11},{"language":"default","tag":"Gateway","count":9},{"language":"default","tag":"Going to Production","count":9}]},"assistantConfig":{},"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":"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#banner{background:linear-gradient(135deg,#1e3a5f 0,#1d4ed8 50%,#3b82f6 100%)}#banner a{color:#93c5fd;text-decoration:underline;text-underline-offset:2px}#banner a:hover{color:#bfdbfe}"}],"page":{"pagePath":"api-reference/siem-export/export-audit-events","slug":"/api-reference/siem-export/export-audit-events","pageMetadata":{"title":"Export Audit Events","description":"The Organization's audit trail, oldest first: what its people, keys and\nthe system did there -- role changes, key rotations, policy edits, sign-ins.\n\nEvery entry but each scan's own decision, which is an event on\n`/api/v1/interactions`. Requires a Plan that includes the audit trail.\n\nGuide: [SIEM export](https://docs.promptguard.co/integrations/siem-export#audit-events)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/audit-events","href":"/api-reference/siem-export/export-audit-events","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"The Organization’s audit trail, oldest first: what its people, keys and\\nthe system did there — role changes, key rotations, policy edits, sign-ins.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Every entry but each scan’s own decision, which is an event on\\n\", _jsx(_components.code, {\n children: \"/api/v1/interactions\"\n }), \". Requires a Plan that includes the audit trail.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Guide: \", _jsx(_components.a, {\n href: \"https://docs.promptguard.co/integrations/siem-export#audit-events\",\n children: \"SIEM export\"\n })]\n })]\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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Export Audit Events","description":"The Organization's audit trail, oldest first: what its people, keys and\nthe system did there -- role changes, key rotations, policy edits, sign-ins.\n\nEvery entry but each scan's own decision, which is an event on\n`/api/v1/interactions`. Requires a Plan that includes the audit trail.\n\nGuide: [SIEM export](https://docs.promptguard.co/integrations/siem-export#audit-events)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/audit-events","href":"/api-reference/siem-export/export-audit-events","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["SIEM export"],"summary":"Export Audit Events","description":"The Organization's audit trail, oldest first: what its people, keys and\nthe system did there -- role changes, key rotations, policy edits, sign-ins.\n\nEvery entry but each scan's own decision, which is an event on\n`/api/v1/interactions`. Requires a Plan that includes the audit trail.\n\nGuide: [SIEM export](https://docs.promptguard.co/integrations/siem-export#audit-events)","operationId":"export_audit_events_api_v1_audit_events_get","parameters":["17ea3e62-7f38-42da-b511-7a889817e6ef","c3eeb6b8-51b7-488e-b978-d8305045ea7d","2578f9f0-5858-4201-9795-0d8f3951b463","f2bdaee8-2a6c-493e-8856-8d388af35dfc","0fb44e54-ea31-4f8b-a2ff-beea9452d09e"],"responses":{"200":"459379a9-7df4-4ba9-bd11-9487ee852f32","401":"4a88e3a0-cc06-488d-af16-44cc68faae4a","403":"37fa4f72-9051-4d7b-a32c-5e7562e148f5","422":"b4cdd494-b972-4657-bbf7-8cc25c9794ce","429":"46edb49d-a0cf-4f99-8d8f-4a42a5727ebe"},"externalDocs":{"description":"Guide: SIEM export","url":"https://docs.promptguard.co/integrations/siem-export#audit-events"},"method":"get","type":"path","servers":["5fae73a7-dbe3-44de-b8cd-3523c706ed2d"],"security":["803af4d6-9bf1-44cf-bac5-48ba8a202004"],"path":"/api/v1/audit-events","baseUrlOptions":["https://api.promptguard.co"],"title":"Export Audit Events","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"17ea3e62-7f38-42da-b511-7a889817e6ef":{"name":"since","in":"query","required":false,"schema":{"oneOf":[{"type":"string","title":"Since","description":"Read events from this time (ISO 8601). Default: 24 hours ago.","format":"date-time","uniqueKey":"oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Since","description":"Read events from this time (ISO 8601). Default: 24 hours ago.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string\u003cdate-time> | null"},"description":"Read events from this time (ISO 8601). Default: 24 hours ago."},"c3eeb6b8-51b7-488e-b978-d8305045ea7d":{"name":"until","in":"query","required":false,"schema":{"oneOf":[{"type":"string","title":"Until","description":"Read events before this time.","format":"date-time","uniqueKey":"oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Until","description":"Read events before this time.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string\u003cdate-time> | null"},"description":"Read events before this time."},"2578f9f0-5858-4201-9795-0d8f3951b463":{"name":"cursor","in":"query","required":false,"schema":{"oneOf":[{"type":"string","title":"Cursor","description":"`next_cursor` from the previous page; replaces `since`.","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Cursor","description":"`next_cursor` from the previous page; replaces `since`.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"`next_cursor` from the previous page; replaces `since`."},"f2bdaee8-2a6c-493e-8856-8d388af35dfc":{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Events per page.","default":100,"title":"Limit","isRequired":false,"uniqueKey":"","typeLabel":"integer"},"description":"Events per page."},"0fb44e54-ea31-4f8b-a2ff-beea9452d09e":{"name":"x-api-key","in":"header","required":false,"schema":{"oneOf":[{"type":"string","title":"X-Api-Key","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"X-Api-Key","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"}}},"responses":{"459379a9-7df4-4ba9-bd11-9487ee852f32":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"organization_id":{"type":"string","title":"Organization Id","isRequired":true,"uniqueKey":"organization_id","typeLabel":"string"},"organization_name":{"oneOf":[{"type":"string","title":"Organization Name","isRequired":true,"uniqueKey":"organization_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Organization Name","isRequired":true,"uniqueKey":"organization_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"organization_name","typeLabel":"string | null"},"events":{"items":{"properties":{"schema_version":{"type":"string","title":"Schema Version","isRequired":true,"uniqueKey":"events.items.[INDEX].schema_version","typeLabel":"string"},"event":{"type":"string","title":"Event","description":"`audit_event`.","isRequired":true,"uniqueKey":"events.items.[INDEX].event","typeLabel":"string"},"event_id":{"type":"string","title":"Event Id","isRequired":true,"uniqueKey":"events.items.[INDEX].event_id","typeLabel":"string"},"timestamp":{"type":"string","title":"Timestamp","description":"When it happened, ISO 8601 with offset.","isRequired":true,"uniqueKey":"events.items.[INDEX].timestamp","typeLabel":"string"},"organization_id":{"oneOf":[{"type":"string","title":"Organization Id","isRequired":true,"uniqueKey":"events.items.[INDEX].organization_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Organization Id","isRequired":true,"uniqueKey":"events.items.[INDEX].organization_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].organization_id","typeLabel":"string | null"},"organization_name":{"oneOf":[{"type":"string","title":"Organization Name","isRequired":true,"uniqueKey":"events.items.[INDEX].organization_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Organization Name","isRequired":true,"uniqueKey":"events.items.[INDEX].organization_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].organization_name","typeLabel":"string | null"},"project_id":{"oneOf":[{"type":"string","title":"Project Id","description":"Null for an action on the whole organization.","isRequired":true,"uniqueKey":"events.items.[INDEX].project_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Project Id","description":"Null for an action on the whole organization.","isRequired":true,"uniqueKey":"events.items.[INDEX].project_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].project_id","typeLabel":"string | null"},"project":{"oneOf":[{"type":"string","title":"Project","description":"The project's name.","isRequired":true,"uniqueKey":"events.items.[INDEX].project.oneOf.0","typeLabel":"string"},{"type":"null","title":"Project","description":"The project's name.","isRequired":true,"uniqueKey":"events.items.[INDEX].project.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].project","typeLabel":"string | null"},"category":{"type":"string","title":"Category","description":"`authentication`, `authorization`, `data_access`, `data_modification`, `configuration`, `security`, `system` or `compliance`.","isRequired":true,"uniqueKey":"events.items.[INDEX].category","typeLabel":"string"},"action":{"type":"string","title":"Action","description":"What was done, such as `member_role_changed`.","isRequired":true,"uniqueKey":"events.items.[INDEX].action","typeLabel":"string"},"severity":{"type":"string","title":"Severity","description":"`debug`, `info`, `warning`, `error` or `critical`.","isRequired":true,"uniqueKey":"events.items.[INDEX].severity","typeLabel":"string"},"outcome":{"type":"string","title":"Outcome","description":"`success`, `failure`, `denied` or `error`.","isRequired":true,"uniqueKey":"events.items.[INDEX].outcome","typeLabel":"string"},"actor_type":{"type":"string","title":"Actor Type","description":"`user`, `api_key`, `service` or `system`.","isRequired":true,"uniqueKey":"events.items.[INDEX].actor_type","typeLabel":"string"},"actor_id":{"oneOf":[{"type":"string","title":"Actor Id","description":"Who did it: a user id, or null for the system.","isRequired":true,"uniqueKey":"events.items.[INDEX].actor_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Actor Id","description":"Who did it: a user id, or null for the system.","isRequired":true,"uniqueKey":"events.items.[INDEX].actor_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].actor_id","typeLabel":"string | null"},"actor_ip":{"oneOf":[{"type":"string","title":"Actor Ip","isRequired":true,"uniqueKey":"events.items.[INDEX].actor_ip.oneOf.0","typeLabel":"string"},{"type":"null","title":"Actor Ip","isRequired":true,"uniqueKey":"events.items.[INDEX].actor_ip.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].actor_ip","typeLabel":"string | null"},"resource_type":{"oneOf":[{"type":"string","title":"Resource Type","isRequired":true,"uniqueKey":"events.items.[INDEX].resource_type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Resource Type","isRequired":true,"uniqueKey":"events.items.[INDEX].resource_type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].resource_type","typeLabel":"string | null"},"resource_id":{"oneOf":[{"type":"string","title":"Resource Id","isRequired":true,"uniqueKey":"events.items.[INDEX].resource_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Resource Id","isRequired":true,"uniqueKey":"events.items.[INDEX].resource_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].resource_id","typeLabel":"string | null"},"description":{"type":"string","title":"Description","isRequired":true,"uniqueKey":"events.items.[INDEX].description","typeLabel":"string"},"details":{"additionalProperties":true,"type":"object","title":"Details","isRequired":true,"uniqueKey":"events.items.[INDEX].details","typeLabel":"Details · object"},"integrity_hash":{"oneOf":[{"type":"string","title":"Integrity Hash","description":"The entry's seal on its organization's tamper-evident chain.","isRequired":true,"uniqueKey":"events.items.[INDEX].integrity_hash.oneOf.0","typeLabel":"string"},{"type":"null","title":"Integrity Hash","description":"The entry's seal on its organization's tamper-evident chain.","isRequired":true,"uniqueKey":"events.items.[INDEX].integrity_hash.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].integrity_hash","typeLabel":"string | null"},"dashboard_url":{"type":"string","title":"Dashboard Url","description":"Opens the audit log in its Organization.","isRequired":true,"uniqueKey":"events.items.[INDEX].dashboard_url","typeLabel":"string"},"text":{"type":"string","title":"Text","isRequired":true,"uniqueKey":"events.items.[INDEX].text","typeLabel":"string"}},"type":"object","required":["schema_version","event","event_id","timestamp","organization_id","organization_name","project_id","project","category","action","severity","outcome","actor_type","actor_id","actor_ip","resource_type","resource_id","description","details","integrity_hash","dashboard_url","text"],"title":"AuditEventRecord","description":"One entry of an Organization's audit trail, in the SIEM event contract\n(schema_version 1): what a person, a key or the system did there.","uniqueKey":"events.items.[INDEX]","typeLabel":"AuditEventRecord · object"},"type":"array","title":"Events","isRequired":true,"uniqueKey":"events","typeLabel":"AuditEventRecord · object[]"},"next_cursor":{"oneOf":[{"type":"string","title":"Next Cursor","description":"Where this page ended. Pass it back as `cursor` to read on; it is returned even when the page is short, so a poller always has its place. Null only when there was no position to report.","isRequired":true,"uniqueKey":"next_cursor.oneOf.0","typeLabel":"string"},{"type":"null","title":"Next Cursor","description":"Where this page ended. Pass it back as `cursor` to read on; it is returned even when the page is short, so a poller always has its place. Null only when there was no position to report.","isRequired":true,"uniqueKey":"next_cursor.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"next_cursor","typeLabel":"string | null"},"has_more":{"type":"boolean","title":"Has More","description":"Whether another page is ready now.","isRequired":true,"uniqueKey":"has_more","typeLabel":"boolean"}},"type":"object","required":["organization_id","organization_name","events","next_cursor","has_more"],"title":"AuditExportPage","description":"One page of an Organization's audit trail, oldest first.","uniqueKey":"","typeLabel":"AuditExportPage · object"},"example":{"organization_id":"12613a5a-ff26-4e72-8105-a36b40327a7c","organization_name":"Acme Corp","events":[{"schema_version":"1","event":"audit_event","event_id":"audit_1730453400123_9f2c41d07a6e","timestamp":"2026-11-01T09:30:00.123000+00:00","organization_id":"12613a5a-ff26-4e72-8105-a36b40327a7c","organization_name":"Acme Corp","project_id":null,"project":null,"actor_type":"user","actor_id":"9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f","actor_ip":"203.0.113.7","category":"configuration","action":"member_role_changed","severity":"warning","outcome":"success","resource_type":"membership","resource_id":"5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9","description":"Changed a member's role from member to admin","details":{"old_role":"member","new_role":"admin"},"integrity_hash":"3b1f9a0c6d2e4f8a7b5c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e1f0a","text":"[PromptGuard] Audit: member role changed in *Acme Corp* (success)","dashboard_url":"https://app.promptguard.co/dashboard/audit-log?org=12613a5a-ff26-4e72-8105-a36b40327a7c"},{"schema_version":"1","event":"audit_event","event_id":"audit_1730453455871_04be7c9132fa","timestamp":"2026-11-01T09:30:55.871000+00:00","organization_id":"12613a5a-ff26-4e72-8105-a36b40327a7c","organization_name":"Acme Corp","project_id":null,"project":null,"actor_type":"user","actor_id":"9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f","actor_ip":"203.0.113.7","category":"security","action":"api_key_rotated","severity":"info","outcome":"success","resource_type":"api_key","resource_id":"473ae10c-5be1-467a-8c3a-341dec5a7e88","description":"Rotated API key Production API","details":{},"integrity_hash":"8e2d4c6b0a9f7e5d3c1b2a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d","text":"[PromptGuard] Audit: api key rotated in *Acme Corp* (success)","dashboard_url":"https://app.promptguard.co/dashboard/audit-log?org=12613a5a-ff26-4e72-8105-a36b40327a7c"}],"next_cursor":"YXVkaXR8MTg0Mg","has_more":false},"examples":{"Example":{"title":"Example","value":{"organization_id":"12613a5a-ff26-4e72-8105-a36b40327a7c","organization_name":"Acme Corp","events":[{"schema_version":"1","event":"audit_event","event_id":"audit_1730453400123_9f2c41d07a6e","timestamp":"2026-11-01T09:30:00.123000+00:00","organization_id":"12613a5a-ff26-4e72-8105-a36b40327a7c","organization_name":"Acme Corp","project_id":null,"project":null,"actor_type":"user","actor_id":"9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f","actor_ip":"203.0.113.7","category":"configuration","action":"member_role_changed","severity":"warning","outcome":"success","resource_type":"membership","resource_id":"5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9","description":"Changed a member's role from member to admin","details":{"old_role":"member","new_role":"admin"},"integrity_hash":"3b1f9a0c6d2e4f8a7b5c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e1f0a","text":"[PromptGuard] Audit: member role changed in *Acme Corp* (success)","dashboard_url":"https://app.promptguard.co/dashboard/audit-log?org=12613a5a-ff26-4e72-8105-a36b40327a7c"},{"schema_version":"1","event":"audit_event","event_id":"audit_1730453455871_04be7c9132fa","timestamp":"2026-11-01T09:30:55.871000+00:00","organization_id":"12613a5a-ff26-4e72-8105-a36b40327a7c","organization_name":"Acme Corp","project_id":null,"project":null,"actor_type":"user","actor_id":"9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f","actor_ip":"203.0.113.7","category":"security","action":"api_key_rotated","severity":"info","outcome":"success","resource_type":"api_key","resource_id":"473ae10c-5be1-467a-8c3a-341dec5a7e88","description":"Rotated API key Production API","details":{},"integrity_hash":"8e2d4c6b0a9f7e5d3c1b2a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d","text":"[PromptGuard] Audit: api key rotated in *Acme Corp* (success)","dashboard_url":"https://app.promptguard.co/dashboard/audit-log?org=12613a5a-ff26-4e72-8105-a36b40327a7c"}],"next_cursor":"YXVkaXR8MTg0Mg","has_more":false}}},"exampleType":"examples"}},"exampleType":"examples"},"4a88e3a0-cc06-488d-af16-44cc68faae4a":{"description":"Missing, malformed, unknown, disabled or expired API key","content":{"application/json":{"examples":{"missing_api_key":{"title":"missing_api_key","value":{"error":{"message":"PromptGuard API key required. Please provide via X-API-Key header.","type":"authentication_error","code":"missing_api_key","doc_url":"https://docs.promptguard.co/production/error-handling#missing_api_key"}}},"malformed_api_key":{"title":"malformed_api_key","value":{"error":{"message":"Invalid API key format","type":"authentication_error","code":"invalid_api_key","doc_url":"https://docs.promptguard.co/production/error-handling#invalid_api_key"}}},"unknown_api_key":{"title":"unknown_api_key","value":{"error":{"message":"Invalid API key","type":"authentication_error","code":"invalid_api_key","doc_url":"https://docs.promptguard.co/production/error-handling#invalid_api_key"}}},"disabled_api_key":{"title":"disabled_api_key","value":{"error":{"message":"API key is disabled","type":"authentication_error","code":"disabled_api_key","doc_url":"https://docs.promptguard.co/production/error-handling#disabled_api_key"}}},"expired_api_key":{"title":"expired_api_key","value":{"error":{"message":"API key has expired","type":"authentication_error","code":"expired_api_key","doc_url":"https://docs.promptguard.co/production/error-handling#expired_api_key"}}}},"schema":{"properties":{"error":{"properties":{"message":{"type":"string","title":"Message","description":"Human-readable error description","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"Error category, e.g. 'authentication_error'","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","title":"Code","description":"Machine-readable error code","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"doc_url":{"oneOf":[{"type":"string","title":"Doc Url","description":"The error catalogue's entry for `code` (cause and fix); present when the catalogue documents the code","uniqueKey":"error.doc_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Doc Url","description":"The error catalogue's entry for `code` (cause and fix); present when the catalogue documents the code","uniqueKey":"error.doc_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.doc_url","typeLabel":"string | null"}},"type":"object","required":["message","type","code"],"title":"ErrorDetail","examples":[{"code":"missing_api_key","message":"PromptGuard API key required. Please provide via X-API-Key header.","type":"authentication_error"}],"isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetail · object"}},"type":"object","required":["error"],"title":"AuthErrorEnvelope","uniqueKey":"","typeLabel":"AuthErrorEnvelope · object"},"exampleType":"examples"}},"exampleType":"examples"},"37fa4f72-9051-4d7b-a32c-5e7562e148f5":{"description":"Refused by the key's scopes or the organization's IP allowlist","content":{"application/json":{"examples":{"scope_denied":{"title":"scope_denied","value":{"error":{"message":"This API key's scopes do not permit this endpoint. Create a key with the required scope or use an unrestricted key.","type":"insufficient_scope","code":"scope_denied","doc_url":"https://docs.promptguard.co/production/error-handling#scope_denied"}}},"scan_only_credential":{"title":"scan_only_credential","value":{"error":{"message":"This credential is scan-only; endpoint not permitted.","type":"insufficient_scope","code":"scope_denied","doc_url":"https://docs.promptguard.co/production/error-handling#scope_denied"}}},"read_only_key":{"title":"read_only_key","value":{"error":{"message":"This is a read-only export key. It may only GET /api/v1/alerts, /api/v1/audit-events, /api/v1/audit-events/stream, /api/v1/interactions and /api/v1/interactions/stream.","type":"insufficient_scope","code":"read_only_key","doc_url":"https://docs.promptguard.co/production/error-handling#read_only_key"}}},"ip_not_allowed":{"title":"ip_not_allowed","value":{"error":{"message":"Request IP is not in the organization's allowlist","type":"permission_error","code":"ip_not_allowed","doc_url":"https://docs.promptguard.co/production/error-handling#ip_not_allowed"}}},"ip_allowlist_error":{"title":"ip_allowlist_error","value":{"error":{"message":"IP allowlist validation failed","type":"permission_error","code":"ip_allowlist_error","doc_url":"https://docs.promptguard.co/production/error-handling#ip_allowlist_error"}}}},"schema":{"properties":{"error":{"properties":{"message":{"type":"string","title":"Message","description":"Human-readable error description","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"Error category, e.g. 'authentication_error'","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","title":"Code","description":"Machine-readable error code","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"doc_url":{"oneOf":[{"type":"string","title":"Doc Url","description":"The error catalogue's entry for `code` (cause and fix); present when the catalogue documents the code","uniqueKey":"error.doc_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Doc Url","description":"The error catalogue's entry for `code` (cause and fix); present when the catalogue documents the code","uniqueKey":"error.doc_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.doc_url","typeLabel":"string | null"}},"type":"object","required":["message","type","code"],"title":"ErrorDetail","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetail · object"}},"type":"object","required":["error"],"title":"ErrorEnvelope","uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"exampleType":"examples"}},"exampleType":"examples"},"b4cdd494-b972-4657-bbf7-8cc25c9794ce":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","example":{"detail":[{"type":"missing","loc":["body","messages"],"msg":"Field required","input":{"direction":"input"}}]},"uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"type":"missing","loc":["body","messages"],"msg":"Field required","input":{"direction":"input"}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"46edb49d-a0cf-4f99-8d8f-4a42a5727ebe":{"description":"Per-minute rate limit reached; retry after `retry_after` seconds","content":{"application/json":{"examples":{"rate_limit_exceeded":{"title":"rate_limit_exceeded","value":{"error":{"message":"Rate limit exceeded: your plan allows 60 requests per minute. Please retry later.","type":"rate_limit_exceeded","code":"rate_limit_exceeded","retry_after":42,"doc_url":"https://docs.promptguard.co/production/error-handling#rate_limit_exceeded"}}}},"schema":{"properties":{"error":{"properties":{"message":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"'rate_limit_exceeded'","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","title":"Code","description":"'rate_limit_exceeded'","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"retry_after":{"type":"integer","title":"Retry After","description":"Seconds until the window resets; also `Retry-After`","isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer"},"doc_url":{"oneOf":[{"type":"string","title":"Doc Url","description":"The error catalogue's entry for `code` (cause and fix); present when the catalogue documents the code","uniqueKey":"error.doc_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Doc Url","description":"The error catalogue's entry for `code` (cause and fix); present when the catalogue documents the code","uniqueKey":"error.doc_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.doc_url","typeLabel":"string | null"}},"type":"object","required":["message","type","code","retry_after"],"title":"RateLimitErrorDetail","isRequired":true,"uniqueKey":"error","typeLabel":"RateLimitErrorDetail · object"}},"type":"object","required":["error"],"title":"RateLimitErrorEnvelope","uniqueKey":"","typeLabel":"RateLimitErrorEnvelope · object"},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"803af4d6-9bf1-44cf-bac5-48ba8a202004":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"5fae73a7-dbe3-44de-b8cd-3523c706ed2d":{"url":"https://api.promptguard.co","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi-developer.json"},"subdomain":"promptguard","siteName":"PromptGuard","title":"Export Audit Events - PromptGuard","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/siem-export/export-audit-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=\"The Organization\u0026#x27;s audit trail, oldest first: what its people, keys and the system did there -- role changes, key rotations, policy edits, sign-ins. Every entry but each scan\u0026#x27;s own decision, which is an event on /api/v1/interactions. Requires a Plan that includes the audit trail. Guide: SIEM export\">\u003cmeta data-mint-head name=\"application-name\" content=\"PromptGuard\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_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/promptguard/qMghc8kofYAB8Q5A/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_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/promptguard/qMghc8kofYAB8Q5A/_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/promptguard/qMghc8kofYAB8Q5A/_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/promptguard/qMghc8kofYAB8Q5A/_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/promptguard/qMghc8kofYAB8Q5A/_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/promptguard/qMghc8kofYAB8Q5A/_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/promptguard/qMghc8kofYAB8Q5A/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Export Audit Events - PromptGuard\">\u003cmeta data-mint-head property=\"og:description\" content=\"The Organization\u0026#x27;s audit trail, oldest first: what its people, keys and the system did there -- role changes, key rotations, policy edits, sign-ins. Every entry but each scan\u0026#x27;s own decision, which is an event on /api/v1/interactions. Requires a Plan that includes the audit trail. Guide: SIEM export\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PromptGuard Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.promptguard.co/api-reference/siem-export/export-audit-events\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://promptguard.mintlify.app/_mintlify/api/og/v2?division=SIEM+export\u0026amp;title=Export+Audit+Events\u0026amp;description=The+Organization%27s+audit+trail%2C+oldest+first%3A+what+its+people%2C+keys+and%0Athe+system+did+there+--+role+changes%2C+key+rotations%2C+policy+edits%2C+sign-ins.%0A%0AEvery+entr\u0026amp;theme=ce8c95952c632da2fc78e486\u0026amp;signature=bf516b2f2558268ea26d43777009687a0b349993b3990e1c6e46a16bd69abe8a\">\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 Audit Events - PromptGuard\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The Organization\u0026#x27;s audit trail, oldest first: what its people, keys and the system did there -- role changes, key rotations, policy edits, sign-ins. Every entry but each scan\u0026#x27;s own decision, which is an event on /api/v1/interactions. Requires a Plan that includes the audit trail. Guide: SIEM export\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://promptguard.mintlify.app/_mintlify/api/og/v2?division=SIEM+export\u0026amp;title=Export+Audit+Events\u0026amp;description=The+Organization%27s+audit+trail%2C+oldest+first%3A+what+its+people%2C+keys+and%0Athe+system+did+there+--+role+changes%2C+key+rotations%2C+policy+edits%2C+sign-ins.%0A%0AEvery+entr\u0026amp;theme=ce8c95952c632da2fc78e486\u0026amp;signature=bf516b2f2558268ea26d43777009687a0b349993b3990e1c6e46a16bd69abe8a\">\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/promptguard/qMghc8kofYAB8Q5A/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PromptGuard\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.promptguard.co/api-reference/siem-export/export-audit-events\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/siem-export/export-audit-events.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.promptguard.co/#organization\",\"name\":\"PromptGuard\",\"url\":\"https://docs.promptguard.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/promptguard/sBVZPqZYn263LC-L/logo/light.svg?fit=max\u0026auto=format\u0026n=sBVZPqZYn263LC-L\u0026q=85\u0026s=8bf0b3b1f4e6fcd571bd4fefce2cda92\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.promptguard.co#website\",\"name\":\"PromptGuard\",\"url\":\"https://docs.promptguard.co\",\"publisher\":{\"@id\":\"https://docs.promptguard.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.promptguard.co/api-reference/siem-export/export-audit-events#webpage\",\"url\":\"https://docs.promptguard.co/api-reference/siem-export/export-audit-events\",\"name\":\"Export Audit Events\",\"description\":\"The Organization's audit trail, oldest first: what its people, keys and the system did there -- role changes, key rotations, policy edits, sign-ins. Every entry but each scan's own decision, which is an event on /api/v1/interactions. Requires a Plan that includes the audit trail. Guide: SIEM export\",\"isPartOf\":{\"@id\":\"https://docs.promptguard.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.promptguard.co/api-reference/siem-export/export-audit-events#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.promptguard.co/api-reference/siem-export/export-audit-events#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SIEM export\",\"item\":\"https://docs.promptguard.co/api-reference/siem-export/export-alerts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Export Audit Events\",\"item\":\"https://docs.promptguard.co/api-reference/siem-export/export-audit-events\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.promptguard.co/api-reference/siem-export/export-audit-events#apireference\",\"headline\":\"Export Audit Events\",\"name\":\"Export Audit Events\",\"description\":\"The Organization's audit trail, oldest first: what its people, keys and the system did there -- role changes, key rotations, policy edits, sign-ins. Every entry but each scan's own decision, which is an event on /api/v1/interactions. Requires a Plan that includes the audit trail. Guide: SIEM export\",\"url\":\"https://docs.promptguard.co/api-reference/siem-export/export-audit-events\",\"mainEntityOfPage\":{\"@id\":\"https://docs.promptguard.co/api-reference/siem-export/export-audit-events#webpage\"},\"publisher\":{\"@id\":\"https://docs.promptguard.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.promptguard.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PromptGuard\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"PromptGuard","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"rectangle-terminal","href":"https://app.promptguard.co"},{"anchor":"Blog","icon":"newspaper","href":"https://promptguard.co/blog"}]},"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","icon":"square-terminal","groups":[{"group":"Overview","icon":"rocket","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"group":"Endpoints","icon":"server","pages":[{"title":"Guard API","href":"/api-reference/guard"},{"title":"Security Scan, Redact \u0026 Test","href":"/api-reference/security-endpoints"},{"title":"Agent Security API","href":"/api-reference/agent-security"},{"title":"MCP Manifest Scan","href":"/api-reference/mcp-manifest-scan"},{"title":"API Keys Management","href":"/api-reference/api-keys"}]},{"group":"SDK Reference","icon":"code","pages":[{"title":"Python SDK reference","href":"/sdk-reference/python"},{"title":"Node.js SDK reference","href":"/sdk-reference/node"}]},{"group":"API Reference","pages":[{"title":"Proxy Chat Completions","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/chat/completions","href":"/api-reference/proxy-chat-completions"},{"title":"Proxy Messages","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/messages","href":"/api-reference/proxy-messages"},{"title":"Proxy Responses","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/responses","href":"/api-reference/proxy-responses"},{"title":"Proxy Count Tokens","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/messages/count_tokens","href":"/api-reference/proxy-count-tokens"},{"title":"Proxy Models","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/models","href":"/api-reference/proxy-models"},{"title":"Root","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /","href":"/api-reference/root"},{"title":"Health","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /health","href":"/api-reference/health"},{"title":"Version","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /version","href":"/api-reference/version"}]},{"group":"api-keys","pages":[{"title":"List Api Keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create Api Key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/api-keys","href":"/api-reference/api-keys/create-api-key"},{"title":"Delete Api Key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json delete /api/v1/api-keys/{key_id}","href":"/api-reference/api-keys/delete-api-key"},{"title":"Toggle Api Key","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json put /api/v1/api-keys/{key_id}/toggle","href":"/api-reference/api-keys/toggle-api-key"}]},{"group":"usage","pages":[{"title":"Get Usage Stats","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/usage/stats","href":"/api-reference/usage/get-usage-stats"}]},{"group":"projects","pages":[{"title":"List Projects","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/projects","href":"/api-reference/projects/list-projects"},{"title":"Create Project","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/projects","href":"/api-reference/projects/create-project"},{"title":"Get Project","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/projects/{project_id}","href":"/api-reference/projects/get-project"},{"title":"Delete Project","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json delete /api/v1/projects/{project_id}","href":"/api-reference/projects/delete-project"}]},{"group":"SIEM export","pages":[{"title":"Export Alerts","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/alerts","href":"/api-reference/siem-export/export-alerts"},{"title":"Export Interactions","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/interactions","href":"/api-reference/siem-export/export-interactions"},{"title":"Stream Interactions","description":"The Organization's events as server-sent events, from where the reader left off.\n\nEach event is one `siem_event` frame whose `id` is its cursor, so a client\nthat reconnects with `Last-Event-ID` (as EventSource does) resumes after\nthe last event it received. A comment line every few seconds keeps idle\nconnections open.\n\nGuide: [SIEM export](https://docs.promptguard.co/integrations/siem-export)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/interactions/stream","href":"/api-reference/siem-export/stream-interactions"},{"title":"Export Audit Events","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/audit-events","href":"/api-reference/siem-export/export-audit-events"},{"title":"Stream Audit Events","description":"The Organization's audit trail as server-sent events, from where the reader left off.\n\nEach entry is one `audit_event` frame whose `id` is its cursor, so a client\nthat reconnects with `Last-Event-ID` resumes after the last entry it\nreceived. A comment line every few seconds keeps idle connections open.\n\nGuide: [SIEM export](https://docs.promptguard.co/integrations/siem-export#audit-events)","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/audit-events/stream","href":"/api-reference/siem-export/stream-audit-events"}]},{"group":"guardrails","pages":[{"title":"Get Project Guardrails","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/projects/{project_id}/guardrails","href":"/api-reference/guardrails/get-project-guardrails"},{"title":"Update Project Guardrails","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json put /api/v1/projects/{project_id}/guardrails","href":"/api-reference/guardrails/update-project-guardrails"}]},{"group":"fleet-device","pages":[{"title":"List Own Org Devices","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/fleet/devices","href":"/api-reference/fleet-device/list-own-org-devices"},{"title":"Describe Own Identity","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/fleet/identity","href":"/api-reference/fleet-device/describe-own-identity"},{"title":"Revoke Self","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json delete /api/v1/fleet/devices/self","href":"/api-reference/fleet-device/revoke-self"}]},{"group":"agent","pages":[{"title":"Validate Tool Call","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/agent/validate-tool","href":"/api-reference/agent/validate-tool-call"},{"title":"Ingest Agent Trace","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/agent/trace","href":"/api-reference/agent/ingest-agent-trace"},{"title":"Scan Agent Memory","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/agent/memory","href":"/api-reference/agent/scan-agent-memory"},{"title":"Get Agent Stats","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/agent/{agent_id}/stats","href":"/api-reference/agent/get-agent-stats"},{"title":"End Agent Session","deprecated":true,"version":null,"openapi":"/api-reference/openapi-developer.json delete /api/v1/agent/{agent_id}/session/{session_id}","href":"/api-reference/agent/end-agent-session"},{"title":"Agent Security Health","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/agent/health","href":"/api-reference/agent/agent-security-health"},{"title":"Managed Policy","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/agent/managed-policy","href":"/api-reference/agent/managed-policy"}]},{"group":"security","pages":[{"title":"Scan Content","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/security/scan","href":"/api-reference/security/scan-content"},{"title":"Redact Content","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/security/redact","href":"/api-reference/security/redact-content"}]},{"group":"mcp","pages":[{"title":"Scan Mcp Manifest","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/mcp/manifest-scan","href":"/api-reference/mcp/scan-mcp-manifest"}]},{"group":"security-testing","pages":[{"title":"Run All Tests","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/security-testing/run-all","href":"/api-reference/security-testing/run-all-tests"},{"title":"Run Custom Test","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/security-testing/run-custom","href":"/api-reference/security-testing/run-custom-test"},{"title":"List Tests Route","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/security-testing/tests","href":"/api-reference/security-testing/list-tests-route"},{"title":"Run Named Test","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/security-testing/run/{test_name}","href":"/api-reference/security-testing/run-named-test"}]},{"group":"guard","pages":[{"title":"Guard Content","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/guard","href":"/api-reference/guard/guard-content"}]},{"group":"enroll","pages":[{"title":"Enroll Device","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/enroll","href":"/api-reference/enroll/enroll-device"}]},{"group":"shadow-exceptions","pages":[{"title":"List Exceptions","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/exceptions","href":"/api-reference/shadow-exceptions/list-exceptions"},{"title":"Create Exception","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/exceptions","href":"/api-reference/shadow-exceptions/create-exception"},{"title":"List Active Grants","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/exceptions/active","href":"/api-reference/shadow-exceptions/list-active-grants"},{"title":"Get Exception","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/exceptions/{exception_id}","href":"/api-reference/shadow-exceptions/get-exception"},{"title":"Cancel Exception","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/exceptions/{exception_id}/cancel","href":"/api-reference/shadow-exceptions/cancel-exception"}]},{"group":"policies","pages":[{"title":"List Policies","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/policies","href":"/api-reference/policies/list-policies"}]},{"group":"overlays","pages":[{"title":"Preview Overlay","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/overlays/preview","href":"/api-reference/overlays/preview-overlay"},{"title":"Apply Overlay Endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/overlays/apply","href":"/api-reference/overlays/apply-overlay-endpoint"},{"title":"Get Active Overlay","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/overlays/active","href":"/api-reference/overlays/get-active-overlay"}]},{"group":"tool-requests","pages":[{"title":"List Tool Requests","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json get /api/v1/tool-requests","href":"/api-reference/tool-requests/list-tool-requests"},{"title":"Create Tool Request","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/tool-requests","href":"/api-reference/tool-requests/create-tool-request"},{"title":"Cancel Tool Request","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/tool-requests/{request_id}/cancel","href":"/api-reference/tool-requests/cancel-tool-request"}]},{"group":"GitHub Webhooks","pages":[{"title":"Handle Webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi-developer.json post /api/v1/github/webhook","href":"/api-reference/github-webhooks/handle-webhook"}]}]}]},"basePath":"","title":"Export Audit Events - PromptGuard","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}