Validates and executes the SQL query. If the query completes within the server-side sync threshold, the response is 200 with inline rows. If not, the response is 202 with a job_id for polling. Clients must always handle both 200 and 202.
Both responses carry a job_id; pass it to GET /v1/query/jobs/{job_id} to obtain a download URL for the result file — the same path for synchronous and asynchronous results.
Setting Prefer: respond-async (RFC 7240) skips the sync threshold and returns 202 immediately.
Idempotency: The optional X-Oleria-Request-Id header is used as the execution idempotency key — see the parameter description for semantics and constraints.
OAuth 2.0 Client Credentials flow. The tokenUrl shown is for the production environment. For other environments, replace prod with the target environment name (e.g., auth.staging.oleria.io for staging).
Set to respond-async to request asynchronous execution (RFC 7240, Section 4.1). The response will return immediately with a job_id and status: pending.
Correlation ID and execution idempotency key. Must be a canonical 36-char hyphenated UUID, case-insensitive (e.g., 3bce7950-12a5-4b70-aeb9-270f1a9dec6e). Sending the same UUID on a retry returns the original execution rather than starting a duplicate. When omitted, the server generates a UUID for the request — safe, but the caller has no way to retry idempotently. A header value that is not a valid UUID is rejected with 400.
The query string to validate and/or execute. Queries above the maximum length are rejected before parsing; real-world queries sit well below the bound.
Required string length: 1 - 100000
Example:
"SELECT account_id, mfa_status FROM oleria_account WHERE mfa_status = :status"
Result format of the downloadable file, fixed at submission. json (default) delivers large results as JSON Lines (NDJSON); best for programmatic and AI consumers. csv produces a single comma-separated file with a header row and renders every value as text; best for spreadsheet export and tabular UIs. The inline rows preview is JSON either way (scalar values keep their type). Ignored by /v1/query/validate, which does not execute.
Named parameter values for query placeholders. Use :name syntax in the SQL query (e.g., :status, :created_after). Parameter names must match exactly (case-sensitive). Type coercion is automatic: strings are quoted, numbers and booleans are used as-is.
Query executed successfully within the sync threshold. Contains inline rows and execution statistics.
Synchronous query result: the complete row set inline plus a job identifier for downloading the same result as a file. Column types can be obtained from the semantic model.
Identifier for this execution. rows already holds the complete result (bounded by the row-limit policy); pass this id to GET /v1/query/jobs/{job_id} to download the same result as a file without re-running the query.
Execution statistics for the query. Reported together when the engine returns statistics for an execution; absent when no statistics are available.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Oleria Identity Security","colors":{"primary":"#027864","light":"#027864","dark":"#58D5BA"},"logo":{"light":"https://mintcdn.com/oleria/KyPIHO-0OF6fE_DF/images/OleriaLightMode-1.png?fit=max\u0026auto=format\u0026n=KyPIHO-0OF6fE_DF\u0026q=85\u0026s=906d33a8c505e2a96b7c6a1583335e1d","dark":"https://mintcdn.com/oleria/9Xgkiz4uBKa5_MIM/images/Oleria_Dark_2.png?fit=max\u0026auto=format\u0026n=9Xgkiz4uBKa5_MIM\u0026q=85\u0026s=eed2ceca9aaaa1597123d7edabce3ce2"},"favicon":"https://mintcdn.com/oleria/rpFX8xIzvg2xF0B0/images/favicon.png?fit=max\u0026auto=format\u0026n=rpFX8xIzvg2xF0B0\u0026q=85\u0026s=b2b79fcf5eaf05bffa7866fe11571fd9","appearance":{"default":"light"},"background":{"color":{"light":"#ffffff"}},"navbar":{"links":[{"href":"mailto:support@oleria.com","label":"Support"}]},"footer":{"socials":{"website":"https://oleria.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"oleria","hasAudioNarration":false,"actualSubdomain":"oleria","customDomains":["docs.oleria.com"],"gitSource":{"type":"github","owner":"roanokedatasecurity","repo":"oleria-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aeace4bfeac5b4749625236","collectionId":"2edfd769-349b-438c-87bc-d9700635ec79","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeace4bfeac5b4749625236"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aead2ddcd71ec77215afae7","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"Integrations","count":370},{"language":"default","tag":"Applications","count":312},{"language":"default","tag":"API Reference","count":91},{"language":"default","tag":"Inventory \u0026 Actions","count":72},{"language":"default","tag":"Product","count":69},{"language":"default","tag":"Security and compliance","count":52},{"language":"default","tag":"Developer tools","count":48},{"language":"default","tag":"Collaboration and productivity","count":39},{"language":"default","tag":"Data and analytics","count":34},{"language":"default","tag":"Finance and operations","count":29}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@oleria.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":[],"page":{"pagePath":"api-reference/query/execute","slug":"/api-reference/query/execute","pageMetadata":{"title":"Execute","description":"Validates and executes the SQL query. If the query completes within the server-side sync threshold, the response is `200` with inline rows. If not, the response is `202` with a job_id for polling. Clients must always handle both `200` and `202`.\nBoth responses carry a `job_id`; pass it to `GET /v1/query/jobs/{job_id}` to obtain a download URL for the result file — the same path for synchronous and asynchronous results.\nSetting `Prefer: respond-async` (RFC 7240) skips the sync threshold and returns `202` immediately.\n**Idempotency:** The optional `X-Oleria-Request-Id` header is used as the execution idempotency key — see the parameter description for semantics and constraints.\n","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml post /v1/query/execute","href":"/api-reference/query/execute","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Validates and executes the SQL query. If the query completes within the server-side sync threshold, the response is \", _jsx(_components.code, {\n children: \"200\"\n }), \" with inline rows. If not, the response is \", _jsx(_components.code, {\n children: \"202\"\n }), \" with a job_id for polling. Clients must always handle both \", _jsx(_components.code, {\n children: \"200\"\n }), \" and \", _jsx(_components.code, {\n children: \"202\"\n }), \".\\nBoth responses carry a \", _jsx(_components.code, {\n children: \"job_id\"\n }), \"; pass it to \", _jsx(_components.code, {\n children: \"GET /v1/query/jobs/{job_id}\"\n }), \" to obtain a download URL for the result file — the same path for synchronous and asynchronous results.\\nSetting \", _jsx(_components.code, {\n children: \"Prefer: respond-async\"\n }), \" (RFC 7240) skips the sync threshold and returns \", _jsx(_components.code, {\n children: \"202\"\n }), \" immediately.\\n\", _jsx(_components.strong, {\n children: \"Idempotency:\"\n }), \" The optional \", _jsx(_components.code, {\n children: \"X-Oleria-Request-Id\"\n }), \" header is used as the execution idempotency key — see the parameter description for semantics and constraints.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Execute","description":"Validates and executes the SQL query. If the query completes within the server-side sync threshold, the response is `200` with inline rows. If not, the response is `202` with a job_id for polling. Clients must always handle both `200` and `202`.\nBoth responses carry a `job_id`; pass it to `GET /v1/query/jobs/{job_id}` to obtain a download URL for the result file — the same path for synchronous and asynchronous results.\nSetting `Prefer: respond-async` (RFC 7240) skips the sync threshold and returns `202` immediately.\n**Idempotency:** The optional `X-Oleria-Request-Id` header is used as the execution idempotency key — see the parameter description for semantics and constraints.\n","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml post /v1/query/execute","href":"/api-reference/query/execute","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Execute","description":"Validates and executes the SQL query. If the query completes within the server-side sync threshold, the response is `200` with inline rows. If not, the response is `202` with a job_id for polling. Clients must always handle both `200` and `202`.\nBoth responses carry a `job_id`; pass it to `GET /v1/query/jobs/{job_id}` to obtain a download URL for the result file — the same path for synchronous and asynchronous results.\nSetting `Prefer: respond-async` (RFC 7240) skips the sync threshold and returns `202` immediately.\n**Idempotency:** The optional `X-Oleria-Request-Id` header is used as the execution idempotency key — see the parameter description for semantics and constraints.\n","operationId":"ExecuteQuery","tags":["Query"],"security":["55cf93ae-2176-4b41-8531-4823f61a67b8"],"parameters":["03f84633-90d6-4055-9859-6446a88e3fc0","58642d00-bedb-46aa-8f1c-98432e9f1368"],"requestBody":"f339279c-3d66-4786-844c-cbbdbe6d1e53","responses":{"200":"9394657e-4f61-4db4-8d27-13940775a273","202":"c4b91f7f-a0de-4a25-9458-5ee81ca34a30","400":"2563a027-bd75-4c4c-a88a-82e8e3630b4a","401":"69fd1599-7bd9-462a-8b6c-9f27a1a8f829","403":"f5634fb2-2f45-4ff1-a069-110ec238b6e7","422":"9b824c7f-c0f3-4166-8a65-75b9501f69e9","429":"cea95e4f-acb4-411e-9a3f-5defc4819699","500":"083c93fa-4732-4846-af59-414f93dd7bb1"},"method":"post","type":"path","servers":["3a89cf53-d272-42e9-983d-0e2d908a3c1a"],"path":"/v1/query/execute","baseUrlOptions":["https://devx.{environment}.oleria.io"],"title":"Execute","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"03f84633-90d6-4055-9859-6446a88e3fc0":{"name":"Prefer","in":"header","required":false,"schema":{"type":"string","enum":["respond-async"],"isRequired":false,"description":"Set to `respond-async` to request asynchronous execution (RFC 7240, Section 4.1). The response will return immediately with a job_id and status: pending.\n","uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"Set to `respond-async` to request asynchronous execution (RFC 7240, Section 4.1). The response will return immediately with a job_id and status: pending.\n"},"58642d00-bedb-46aa-8f1c-98432e9f1368":{"name":"X-Oleria-Request-Id","in":"header","required":false,"schema":{"type":"string","format":"uuid","isRequired":false,"description":"Correlation ID and execution idempotency key. Must be a canonical 36-char hyphenated UUID, case-insensitive (e.g., `3bce7950-12a5-4b70-aeb9-270f1a9dec6e`). Sending the same UUID on a retry returns the original execution rather than starting a duplicate. When omitted, the server generates a UUID for the request — safe, but the caller has no way to retry idempotently. A header value that is not a valid UUID is rejected with `400`.\n","uniqueKey":"","typeLabel":"string\u003cuuid>"},"description":"Correlation ID and execution idempotency key. Must be a canonical 36-char hyphenated UUID, case-insensitive (e.g., `3bce7950-12a5-4b70-aeb9-270f1a9dec6e`). Sending the same UUID on a retry returns the original execution rather than starting a duplicate. When omitted, the server generates a UUID for the request — safe, but the caller has no way to retry idempotently. A header value that is not a valid UUID is rejected with `400`.\n"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","minLength":1,"maxLength":100000,"description":"The query string to validate and/or execute. Queries above the maximum length are rejected before parsing; real-world queries sit well below the bound.","example":"SELECT account_id, mfa_status FROM oleria_account WHERE mfa_status = :status","isRequired":true,"uniqueKey":"query","typeLabel":"string"},"model":{"type":"string","default":"oleria_identity","description":"Name of the semantic model to use for query resolution. Defaults to oleria_identity.\n","example":"oleria_identity","uniqueKey":"model","typeLabel":"string"},"dialect":{"type":"string","default":"trino","description":"The SQL dialect used for parsing. Currently only `trino` is supported. Additional dialects may be added in future versions.\n","enum":["trino"],"example":"trino","uniqueKey":"dialect","typeLabel":"enum\u003cstring>"},"format":{"type":"string","default":"json","enum":["json","csv"],"description":"Result format of the downloadable file, fixed at submission. `json` (default) delivers large results as JSON Lines (NDJSON); best for programmatic and AI consumers. `csv` produces a single comma-separated file with a header row and renders every value as text; best for spreadsheet export and tabular UIs. The inline `rows` preview is JSON either way (scalar values keep their type). Ignored by `/v1/query/validate`, which does not execute.\n","example":"csv","uniqueKey":"format","typeLabel":"enum\u003cstring>"},"parameters":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"parameters.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","format":"double","uniqueKey":"parameters.additionalProperties.oneOf.1","typeLabel":"number\u003cdouble>"},{"type":"boolean","uniqueKey":"parameters.additionalProperties.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"parameters.additionalProperties","typeLabel":"string | number\u003cdouble> | boolean"},"description":"Named parameter values for query placeholders. Use `:name` syntax in the SQL query (e.g., `:status`, `:created_after`). Parameter names must match exactly (case-sensitive). Type coercion is automatic: strings are quoted, numbers and booleans are used as-is.\n","example":{"status":"disabled","created_after":"2026-01-01","limit":100,"include_inactive":true},"uniqueKey":"parameters","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"simple_query":{"title":"simple_query","value":{"query":"SELECT account_id, mfa_status FROM oleria_account WHERE mfa_status = :status","model":"oleria_identity","dialect":"trino","parameters":{"status":"disabled"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"9394657e-4f61-4db4-8d27-13940775a273":{"description":"Query executed successfully within the sync threshold. Contains inline rows and execution statistics.\n","content":{"application/json":{"schema":{"type":"object","required":["job_id","rows"],"description":"Synchronous query result: the complete row set inline plus a job identifier for downloading the same result as a file. Column types can be obtained from the semantic model.\n","properties":{"job_id":{"type":"string","description":"Identifier for this execution. `rows` already holds the complete result (bounded by the row-limit policy); pass this id to `GET /v1/query/jobs/{job_id}` to download the same result as a file without re-running the query.\n","example":"athn_a1b2c3d4-e5f6-7890-abcd-ef1234567890","isRequired":true,"uniqueKey":"job_id","typeLabel":"string"},"rows":{"type":"array","description":"Query results as an array of records. Each record is a map of column name to value.\n","items":{"type":"object","additionalProperties":true,"uniqueKey":"rows.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"rows","typeLabel":"object[]"},"statistics":{"type":"object","description":"Execution statistics for the query. Reported together when the engine returns statistics for an execution; absent when no statistics are available.\n","required":["execution_time_ms","data_scanned_bytes"],"properties":{"execution_time_ms":{"type":"integer","format":"int64","description":"Query execution time in milliseconds.","example":2340,"isRequired":true,"uniqueKey":"statistics.execution_time_ms","typeLabel":"integer\u003cint64>"},"data_scanned_bytes":{"type":"integer","format":"int64","description":"Total bytes scanned by the query engine. Useful for cost visibility and budget attribution.\n","example":104857600,"isRequired":true,"uniqueKey":"statistics.data_scanned_bytes","typeLabel":"integer\u003cint64>"},"row_count":{"type":"integer","format":"int64","description":"Total number of rows in the result set. Present only when the inline `rows` hold the complete result; omitted when `rows` is a truncated preview, where the full count is available only from the downloaded result file.\n","example":1500,"uniqueKey":"statistics.row_count","typeLabel":"integer\u003cint64>"}},"uniqueKey":"statistics","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"job_id":"athn_a1b2c3d4-e5f6-7890-abcd-ef1234567890","rows":[{"account_id":"acc-001","mfa_status":"disabled"},{"account_id":"acc-002","mfa_status":"disabled"}],"statistics":{"row_count":2,"execution_time_ms":125,"data_scanned_bytes":52428800}},"examples":{"Example":{"title":"Example","value":{"job_id":"athn_a1b2c3d4-e5f6-7890-abcd-ef1234567890","rows":[{"account_id":"acc-001","mfa_status":"disabled"},{"account_id":"acc-002","mfa_status":"disabled"}],"statistics":{"row_count":2,"execution_time_ms":125,"data_scanned_bytes":52428800}}}},"exampleType":"examples"}},"exampleType":"examples"},"c4b91f7f-a0de-4a25-9458-5ee81ca34a30":{"description":"Query accepted for asynchronous execution. Returned when `Prefer: respond-async` is set, or when the query does not complete within the server-side sync threshold. Poll the returned job_id for status and results.\n","headers":{"Preference-Applied":{"description":"Present when the server honored the `Prefer: respond-async` header (RFC 7240, Section 3). Absent when `202` was returned due to sync threshold expiry.\n","schema":{"type":"string","enum":["respond-async"]}}},"content":{"application/json":{"schema":{"type":"object","required":["job_id","status"],"description":"Status and results for a query job. A `completed` job carries `statistics` and, when the engine exposes a downloadable artifact, `downloads`. When status is `failed`, the error field describes the failure.\n","properties":{"job_id":{"type":"string","description":"Unique identifier for the query job. Use this value to poll for status via the jobs endpoint.\n","isRequired":true,"uniqueKey":"job_id","typeLabel":"string"},"status":{"type":"string","enum":["pending","running","completed","failed"],"description":"Current job state. `pending` = queued, `running` = executing, `completed` = results available, `failed` = execution error.\n","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"retry_after":{"type":"integer","description":"Recommended polling interval in seconds. Present when status is `pending` or `running`. Clients should wait at least this long before polling again.\n","example":5,"uniqueKey":"retry_after","typeLabel":"integer"},"downloads":{"type":"array","description":"Download references for the query result, present once `status` is `completed` and the engine exposes a downloadable artifact (omitted otherwise). A csv result is a single reference; a json result may be several references that together hold the complete result set.\n","items":{"type":"object","required":["url","format"],"description":"A download reference for a query result file. A csv result is a single file; a json result may be delivered as more than one JSON Lines file, which together hold the complete result set.\n","properties":{"url":{"type":"string","format":"uri","description":"Short-lived pre-signed URL to fetch the result file directly, valid for a few minutes. After it expires, re-poll the job to obtain a fresh link.\n","example":"https://downloads.prod.oleria.io/acme/qr/athena/results/exec.csv?Policy=eyJTdGF0ZW1lbnQ\u0026Signature=Gr8tSignatureExample\u0026Key-Pair-Id=K2EXAMPLE","isRequired":true,"uniqueKey":"downloads.items.[INDEX].url","typeLabel":"string\u003curi>"},"format":{"type":"string","enum":["json","csv"],"description":"File format. `csv` is a single comma-separated file with a header row. `json` is JSON Lines (NDJSON) — one JSON object per line.\n","example":"csv","isRequired":true,"uniqueKey":"downloads.items.[INDEX].format","typeLabel":"enum\u003cstring>"}},"uniqueKey":"downloads.items.[INDEX]","typeLabel":"object"},"uniqueKey":"downloads","typeLabel":"object[]"},"download":{"type":"object","description":"Convenience reference to the single result file. Present only when the result is exactly one file — always so for `csv` — and identical to the sole `downloads` entry when present. A result delivered as multiple files populates only `downloads`, so a client that must handle any result should read `downloads`.\n","required":["url","format"],"properties":{"url":{"type":"string","format":"uri","description":"Short-lived pre-signed URL to fetch the result file directly, valid for a few minutes. After it expires, re-poll the job to obtain a fresh link.\n","example":"https://downloads.prod.oleria.io/acme/qr/athena/results/exec.csv?Policy=eyJTdGF0ZW1lbnQ\u0026Signature=Gr8tSignatureExample\u0026Key-Pair-Id=K2EXAMPLE","isRequired":true,"uniqueKey":"download.url","typeLabel":"string\u003curi>"},"format":{"type":"string","enum":["json","csv"],"description":"File format. `csv` is a single comma-separated file with a header row. `json` is JSON Lines (NDJSON) — one JSON object per line.\n","example":"csv","isRequired":true,"uniqueKey":"download.format","typeLabel":"enum\u003cstring>"}},"uniqueKey":"download","typeLabel":"object"},"rows":{"type":"array","description":"An initial page of results, inline, so a client can render a preview without fetching the file. Present when `status` is `completed`. The complete result set is delivered via `downloads` when present.\n","items":{"type":"object","additionalProperties":true,"uniqueKey":"rows.items.[INDEX]","typeLabel":"object"},"uniqueKey":"rows","typeLabel":"object[]"},"statistics":{"type":"object","description":"Execution statistics. Reported when status is `completed` and the engine returns statistics for the execution; absent when none are available.\n","required":["execution_time_ms","data_scanned_bytes"],"properties":{"execution_time_ms":{"type":"integer","format":"int64","description":"Query execution time in milliseconds.","example":2340,"isRequired":true,"uniqueKey":"statistics.execution_time_ms","typeLabel":"integer\u003cint64>"},"data_scanned_bytes":{"type":"integer","format":"int64","description":"Total bytes scanned by the query engine. Useful for cost visibility and budget attribution.\n","example":104857600,"isRequired":true,"uniqueKey":"statistics.data_scanned_bytes","typeLabel":"integer\u003cint64>"},"row_count":{"type":"integer","format":"int64","description":"Total number of rows in the result set. Present only when the inline `rows` hold the complete result; omitted when `rows` is a truncated preview, where the full count is available only from the downloaded result file.\n","example":1500,"uniqueKey":"statistics.row_count","typeLabel":"integer\u003cint64>"}},"uniqueKey":"statistics","typeLabel":"object"},"error":{"type":"object","description":"Error details when status is `failed`.","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code for programmatic handling.","example":"QUERY_PARSE_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description.","example":"Failed to parse SQL query","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Additional context for debugging (optional, free-form).","example":{"line":3,"column":15,"hint":"Unexpected token near 'SELCT'"},"uniqueKey":"error.details","typeLabel":"object"},"reasons":{"type":"array","description":"Policy violation details. Present when `code` is `POLICY_VIOLATION`. Each entry identifies a governance policy that the query violated.\n","items":{"type":"object","required":["code","message"],"description":"A single policy violation identified during query validation.","properties":{"code":{"type":"string","description":"Stable, machine-readable identifier for the denial reason. SCREAMING_SNAKE_CASE; declared on the violated policy.\n","example":"MUTATION_NOT_ALLOWED","isRequired":true,"uniqueKey":"error.reasons.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the denial.","example":"Only SELECT queries are permitted. Mutation statements are not allowed.","isRequired":true,"uniqueKey":"error.reasons.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.reasons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.reasons","typeLabel":"object[]"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"job_id":"athn_a1b2c3d4-e5f6-7890-abcd-ef1234567890","status":"pending","retry_after":5},"examples":{"Example":{"title":"Example","value":{"job_id":"athn_a1b2c3d4-e5f6-7890-abcd-ef1234567890","status":"pending","retry_after":5}}},"exampleType":"examples"}},"exampleType":"examples"},"2563a027-bd75-4c4c-a88a-82e8e3630b4a":{"description":"SQL parsing failed or request is malformed","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code for programmatic handling.","example":"QUERY_PARSE_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description.","example":"Failed to parse SQL query","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Additional context for debugging (optional, free-form).","example":{"line":3,"column":15,"hint":"Unexpected token near 'SELCT'"},"uniqueKey":"details","typeLabel":"object"},"reasons":{"type":"array","description":"Policy violation details. Present when `code` is `POLICY_VIOLATION`. Each entry identifies a governance policy that the query violated.\n","items":{"type":"object","required":["code","message"],"description":"A single policy violation identified during query validation.","properties":{"code":{"type":"string","description":"Stable, machine-readable identifier for the denial reason. SCREAMING_SNAKE_CASE; declared on the violated policy.\n","example":"MUTATION_NOT_ALLOWED","isRequired":true,"uniqueKey":"reasons.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the denial.","example":"Only SELECT queries are permitted. Mutation statements are not allowed.","isRequired":true,"uniqueKey":"reasons.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"reasons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"reasons","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"QUERY_PARSE_ERROR","message":"Failed to parse SQL query","details":{"line":3,"column":15,"hint":"Unexpected token near 'SELCT'"},"reasons":[{"code":"MUTATION_NOT_ALLOWED","message":"Only SELECT queries are permitted. Mutation statements are not allowed."}]}}},"exampleType":"generated"}},"exampleType":"generated"},"69fd1599-7bd9-462a-8b6c-9f27a1a8f829":{"description":"Missing or invalid authentication token","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code for programmatic handling.","example":"QUERY_PARSE_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description.","example":"Failed to parse SQL query","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Additional context for debugging (optional, free-form).","example":{"line":3,"column":15,"hint":"Unexpected token near 'SELCT'"},"uniqueKey":"details","typeLabel":"object"},"reasons":{"type":"array","description":"Policy violation details. Present when `code` is `POLICY_VIOLATION`. Each entry identifies a governance policy that the query violated.\n","items":{"type":"object","required":["code","message"],"description":"A single policy violation identified during query validation.","properties":{"code":{"type":"string","description":"Stable, machine-readable identifier for the denial reason. SCREAMING_SNAKE_CASE; declared on the violated policy.\n","example":"MUTATION_NOT_ALLOWED","isRequired":true,"uniqueKey":"reasons.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the denial.","example":"Only SELECT queries are permitted. Mutation statements are not allowed.","isRequired":true,"uniqueKey":"reasons.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"reasons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"reasons","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"QUERY_PARSE_ERROR","message":"Failed to parse SQL query","details":{"line":3,"column":15,"hint":"Unexpected token near 'SELCT'"},"reasons":[{"code":"MUTATION_NOT_ALLOWED","message":"Only SELECT queries are permitted. Mutation statements are not allowed."}]}}},"exampleType":"generated"}},"exampleType":"generated"},"f5634fb2-2f45-4ff1-a069-110ec238b6e7":{"description":"Valid token but insufficient permissions","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code for programmatic handling.","example":"QUERY_PARSE_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description.","example":"Failed to parse SQL query","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Additional context for debugging (optional, free-form).","example":{"line":3,"column":15,"hint":"Unexpected token near 'SELCT'"},"uniqueKey":"details","typeLabel":"object"},"reasons":{"type":"array","description":"Policy violation details. Present when `code` is `POLICY_VIOLATION`. Each entry identifies a governance policy that the query violated.\n","items":{"type":"object","required":["code","message"],"description":"A single policy violation identified during query validation.","properties":{"code":{"type":"string","description":"Stable, machine-readable identifier for the denial reason. SCREAMING_SNAKE_CASE; declared on the violated policy.\n","example":"MUTATION_NOT_ALLOWED","isRequired":true,"uniqueKey":"reasons.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the denial.","example":"Only SELECT queries are permitted. Mutation statements are not allowed.","isRequired":true,"uniqueKey":"reasons.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"reasons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"reasons","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"FORBIDDEN","message":"Token lacks required scope for query execution"},"examples":{"Example":{"title":"Example","value":{"code":"FORBIDDEN","message":"Token lacks required scope for query execution"}}},"exampleType":"examples"}},"exampleType":"examples"},"9b824c7f-c0f3-4166-8a65-75b9501f69e9":{"description":"Query denied by validation rules. The query is syntactically valid but violates one or more governance policies. The query was not submitted to the execution engine.\n","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code for programmatic handling.","example":"QUERY_PARSE_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description.","example":"Failed to parse SQL query","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Additional context for debugging (optional, free-form).","example":{"line":3,"column":15,"hint":"Unexpected token near 'SELCT'"},"uniqueKey":"details","typeLabel":"object"},"reasons":{"type":"array","description":"Policy violation details. Present when `code` is `POLICY_VIOLATION`. Each entry identifies a governance policy that the query violated.\n","items":{"type":"object","required":["code","message"],"description":"A single policy violation identified during query validation.","properties":{"code":{"type":"string","description":"Stable, machine-readable identifier for the denial reason. SCREAMING_SNAKE_CASE; declared on the violated policy.\n","example":"MUTATION_NOT_ALLOWED","isRequired":true,"uniqueKey":"reasons.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the denial.","example":"Only SELECT queries are permitted. Mutation statements are not allowed.","isRequired":true,"uniqueKey":"reasons.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"reasons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"reasons","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"POLICY_VIOLATION","message":"Query denied by validation rules","reasons":[{"code":"MUTATION_NOT_ALLOWED","message":"Only SELECT queries are permitted. Mutation statements are not allowed."}]},"examples":{"Example":{"title":"Example","value":{"code":"POLICY_VIOLATION","message":"Query denied by validation rules","reasons":[{"code":"MUTATION_NOT_ALLOWED","message":"Only SELECT queries are permitted. Mutation statements are not allowed."}]}}},"exampleType":"examples"}},"exampleType":"examples"},"cea95e4f-acb4-411e-9a3f-5defc4819699":{"description":"Rate limit exceeded. Retry after the duration specified in the Retry-After header.\n","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code for programmatic handling.","example":"QUERY_PARSE_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description.","example":"Failed to parse SQL query","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Additional context for debugging (optional, free-form).","example":{"line":3,"column":15,"hint":"Unexpected token near 'SELCT'"},"uniqueKey":"details","typeLabel":"object"},"reasons":{"type":"array","description":"Policy violation details. Present when `code` is `POLICY_VIOLATION`. Each entry identifies a governance policy that the query violated.\n","items":{"type":"object","required":["code","message"],"description":"A single policy violation identified during query validation.","properties":{"code":{"type":"string","description":"Stable, machine-readable identifier for the denial reason. SCREAMING_SNAKE_CASE; declared on the violated policy.\n","example":"MUTATION_NOT_ALLOWED","isRequired":true,"uniqueKey":"reasons.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the denial.","example":"Only SELECT queries are permitted. Mutation statements are not allowed.","isRequired":true,"uniqueKey":"reasons.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"reasons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"reasons","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"TOO_MANY_REQUESTS","message":"Query engine rate limit exceeded. Retry after the specified interval."},"examples":{"Example":{"title":"Example","value":{"code":"TOO_MANY_REQUESTS","message":"Query engine rate limit exceeded. Retry after the specified interval."}}},"exampleType":"examples"}},"exampleType":"examples"},"083c93fa-4732-4846-af59-414f93dd7bb1":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code for programmatic handling.","example":"QUERY_PARSE_ERROR","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error description.","example":"Failed to parse SQL query","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Additional context for debugging (optional, free-form).","example":{"line":3,"column":15,"hint":"Unexpected token near 'SELCT'"},"uniqueKey":"details","typeLabel":"object"},"reasons":{"type":"array","description":"Policy violation details. Present when `code` is `POLICY_VIOLATION`. Each entry identifies a governance policy that the query violated.\n","items":{"type":"object","required":["code","message"],"description":"A single policy violation identified during query validation.","properties":{"code":{"type":"string","description":"Stable, machine-readable identifier for the denial reason. SCREAMING_SNAKE_CASE; declared on the violated policy.\n","example":"MUTATION_NOT_ALLOWED","isRequired":true,"uniqueKey":"reasons.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of the denial.","example":"Only SELECT queries are permitted. Mutation statements are not allowed.","isRequired":true,"uniqueKey":"reasons.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"reasons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"reasons","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"INTERNAL_ERROR","message":"An unexpected error occurred"},"examples":{"Example":{"title":"Example","value":{"code":"INTERNAL_ERROR","message":"An unexpected error occurred"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"55cf93ae-2176-4b41-8531-4823f61a67b8":{"clientCredentials":{"type":"oauth2","description":"OAuth 2.0 Client Credentials flow. The tokenUrl shown is for the production environment. For other environments, replace `prod` with the target environment name (e.g., `auth.staging.oleria.io` for staging).\n","flows":{"clientCredentials":{"tokenUrl":"https://auth.prod.oleria.io/oauth/token","scopes":{"ClientCredentialsResourceServer/client_credentials_base_scope":"Default scope used for all client credentials (RBAC is controlled via permissions in the bearer token)"}}},"scopes":["ClientCredentialsResourceServer/client_credentials_base_scope"]}}},"servers":{"3a89cf53-d272-42e9-983d-0e2d908a3c1a":{"url":"https://devx.{environment}.oleria.io","description":"Oleria DevX Server","variables":{"environment":{"default":"prod","description":"Environment name (prod, staging, dev)","enum":["prod","staging","dev"]}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"oauth2","description":"OAuth 2.0 Client Credentials flow. The tokenUrl shown is for the production environment. For other environments, replace `prod` with the target environment name (e.g., `auth.staging.oleria.io` for staging).\n","flows":{"clientCredentials":{"tokenUrl":"https://auth.prod.oleria.io/oauth/token","scopes":{"ClientCredentialsResourceServer/client_credentials_base_scope":"Default scope used for all client credentials (RBAC is controlled via permissions in the bearer token)"}}},"scopes":["ClientCredentialsResourceServer/client_credentials_base_scope"]},"schema":{"title":"OAuth2 Auth","type":"string","isRequired":true,"description":"OAuth 2.0 Client Credentials flow. The tokenUrl shown is for the production environment. For other environments, replace `prod` with the target environment name (e.g., `auth.staging.oleria.io` for staging).\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"clientCredentials","name":"Authorization"}],"title":"clientCredentials"}]},"originalFileLocation":"developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml"},"subdomain":"oleria","siteName":"Oleria Identity Security","title":"Execute - Oleria Identity Security","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-05T17:42:31.424Z","originalFileLocation":"api-reference/query/execute.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=\"light\"}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=\"Validates and executes the SQL query. If the query completes within the server-side sync threshold, the response is 200 with inline rows. If not, the response is 202 with a job_id for polling. Clients must always handle both 200 and 202. Both responses carry a job_id; pass it to GET /v1/query/jobs/{job_id} to obtain a download URL for the result file — the same path for synchronous and asynchronous results. Setting Prefer: respond-async (RFC 7240) skips the sync threshold and returns 202 immediately. Idempotency: The optional X-Oleria-Request-Id header is used as the execution idempotency key — see the parameter description for semantics and constraints.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Oleria Identity Security\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/oleria/VFsEjt_GQ9jb2s6K/_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/oleria/VFsEjt_GQ9jb2s6K/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/oleria/VFsEjt_GQ9jb2s6K/_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/oleria/VFsEjt_GQ9jb2s6K/_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/oleria/VFsEjt_GQ9jb2s6K/_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/oleria/VFsEjt_GQ9jb2s6K/_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/oleria/VFsEjt_GQ9jb2s6K/_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/oleria/VFsEjt_GQ9jb2s6K/_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/oleria/VFsEjt_GQ9jb2s6K/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Execute - Oleria Identity Security\">\u003cmeta data-mint-head property=\"og:description\" content=\"Validates and executes the SQL query. If the query completes within the server-side sync threshold, the response is 200 with inline rows. If not, the response is 202 with a job_id for polling. Clients must always handle both 200 and 202. Both responses carry a job_id; pass it to GET /v1/query/jobs/{job_id} to obtain a download URL for the result file — the same path for synchronous and asynchronous results. Setting Prefer: respond-async (RFC 7240) skips the sync threshold and returns 202 immediately. Idempotency: The optional X-Oleria-Request-Id header is used as the execution idempotency key — see the parameter description for semantics and constraints.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Oleria Identity Security\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.oleria.com/api-reference/query/execute\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://oleria.mintlify.app/_mintlify/api/og/v2?division=Query\u0026amp;title=Execute\u0026amp;description=Validates+and+executes+the+SQL+query.+If+the+query+completes+within+the+server-side+sync+threshold%2C+the+response+is+%60200%60+with+inline+rows.+If+not%2C+the+response\u0026amp;theme=67101527a6023bf85b2b7e70\u0026amp;signature=9e0c9966d1f53545f0477fcd1289ee7462853f7b314ed509281de4bb57bfd48e\">\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=\"Execute - Oleria Identity Security\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Validates and executes the SQL query. If the query completes within the server-side sync threshold, the response is 200 with inline rows. If not, the response is 202 with a job_id for polling. Clients must always handle both 200 and 202. Both responses carry a job_id; pass it to GET /v1/query/jobs/{job_id} to obtain a download URL for the result file — the same path for synchronous and asynchronous results. Setting Prefer: respond-async (RFC 7240) skips the sync threshold and returns 202 immediately. Idempotency: The optional X-Oleria-Request-Id header is used as the execution idempotency key — see the parameter description for semantics and constraints.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://oleria.mintlify.app/_mintlify/api/og/v2?division=Query\u0026amp;title=Execute\u0026amp;description=Validates+and+executes+the+SQL+query.+If+the+query+completes+within+the+server-side+sync+threshold%2C+the+response+is+%60200%60+with+inline+rows.+If+not%2C+the+response\u0026amp;theme=67101527a6023bf85b2b7e70\u0026amp;signature=9e0c9966d1f53545f0477fcd1289ee7462853f7b314ed509281de4bb57bfd48e\">\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/oleria/VFsEjt_GQ9jb2s6K/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Oleria Identity Security\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#027864\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.oleria.com/api-reference/query/execute\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/query/execute.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.oleria.com/#organization\",\"name\":\"Oleria Identity Security\",\"url\":\"https://docs.oleria.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/oleria/KyPIHO-0OF6fE_DF/images/OleriaLightMode-1.png?fit=max\u0026auto=format\u0026n=KyPIHO-0OF6fE_DF\u0026q=85\u0026s=906d33a8c505e2a96b7c6a1583335e1d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.oleria.com#website\",\"name\":\"Oleria Identity Security\",\"url\":\"https://docs.oleria.com\",\"publisher\":{\"@id\":\"https://docs.oleria.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.oleria.com/api-reference/query/execute#webpage\",\"url\":\"https://docs.oleria.com/api-reference/query/execute\",\"name\":\"Execute\",\"description\":\"Validates and executes the SQL query. If the query completes within the server-side sync threshold, the response is 200 with inline rows. If not, the response is 202 with a job_id for polling. Clients must always handle both 200 and 202. Both responses carry a job_id; pass it to GET /v1/query/jobs/{job_id} to obtain a download URL for the result file — the same path for synchronous and asynchronous results. Setting Prefer: respond-async (RFC 7240) skips the sync threshold and returns 202 immediately. Idempotency: The optional X-Oleria-Request-Id header is used as the execution idempotency key — see the parameter description for semantics and constraints.\",\"dateModified\":\"2026-08-05T17:42:31.424Z\",\"isPartOf\":{\"@id\":\"https://docs.oleria.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.oleria.com/api-reference/query/execute#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.oleria.com/api-reference/query/execute#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"TrustFusion\",\"item\":\"https://docs.oleria.com/api-reference/query/validate\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Query\",\"item\":\"https://docs.oleria.com/api-reference/query/validate\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Execute\",\"item\":\"https://docs.oleria.com/api-reference/query/execute\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.oleria.com/api-reference/query/execute#apireference\",\"headline\":\"Execute\",\"name\":\"Execute\",\"description\":\"Validates and executes the SQL query. If the query completes within the server-side sync threshold, the response is 200 with inline rows. If not, the response is 202 with a job_id for polling. Clients must always handle both 200 and 202. Both responses carry a job_id; pass it to GET /v1/query/jobs/{job_id} to obtain a download URL for the result file — the same path for synchronous and asynchronous results. Setting Prefer: respond-async (RFC 7240) skips the sync threshold and returns 202 immediately. Idempotency: The optional X-Oleria-Request-Id header is used as the execution idempotency key — see the parameter description for semantics and constraints.\",\"url\":\"https://docs.oleria.com/api-reference/query/execute\",\"mainEntityOfPage\":{\"@id\":\"https://docs.oleria.com/api-reference/query/execute#webpage\"},\"dateModified\":\"2026-08-05T17:42:31.424Z\",\"publisher\":{\"@id\":\"https://docs.oleria.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.oleria.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Oleria Identity Security\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Oleria Identity Security","nav":{"global":null,"tabs":[{"tab":"Product","pages":[{"title":"Product","href":"/introduction/overview"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"API Reference","groups":[{"group":"Getting Started","pages":[{"title":"API Overview","href":"/developer-docs/api-reference/overview"},{"title":"Generate an API Token","href":"/developer-docs/api-reference/generate-token"}]},{"group":"Inventory \u0026 Actions","pages":[{"group":"Access assignments","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/entity-assigned-access-to-object","href":"/api-reference/access-assignments/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/entity-assigned-access-to-object/{id}","href":"/api-reference/access-assignments/get"}]},{"group":"Account roles","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/account-roles","href":"/api-reference/account-roles/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/account-roles/{id}","href":"/api-reference/account-roles/get"}]},{"group":"Accounts","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/accounts","href":"/api-reference/accounts/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/accounts/{id}","href":"/api-reference/accounts/get"},{"title":"Create","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml post /v1/accounts","href":"/api-reference/accounts/create"},{"title":"Activate","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml post /v1/accounts/{id}/activate","href":"/api-reference/accounts/activate"},{"title":"Disable","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml post /v1/accounts/{id}/disable","href":"/api-reference/accounts/disable"},{"title":"Enable","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml post /v1/accounts/{id}/enable","href":"/api-reference/accounts/enable"},{"title":"Revoke active sessions","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml post /v1/accounts/{id}/revoke-sessions","href":"/api-reference/accounts/revoke-active-sessions"},{"title":"Remove access to shared resources","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml delete /v1/accounts/{id}/resource-access","href":"/api-reference/accounts/remove-access-to-shared-resources"},{"title":"Delete","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml delete /v1/accounts/{id}","href":"/api-reference/accounts/delete"}]},{"group":"Activities","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/activities","href":"/api-reference/activities/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/activities/{id}","href":"/api-reference/activities/get"}]},{"group":"Assigned applications","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/assigned-applications","href":"/api-reference/assigned-applications/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/assigned-applications/{id}","href":"/api-reference/assigned-applications/get"},{"title":"Grant an account access","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml put /v1/assigned-applications/{id}/assigned-accounts/{accountId}","href":"/api-reference/assigned-applications/grant-an-account-access"},{"title":"Remove an account's access","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml delete /v1/assigned-applications/{id}/assigned-accounts/{accountId}","href":"/api-reference/assigned-applications/remove-an-accounts-access"},{"title":"Grant a group access","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml put /v1/assigned-applications/{id}/assigned-groups/{groupId}","href":"/api-reference/assigned-applications/grant-a-group-access"},{"title":"Remove a group's access","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml delete /v1/assigned-applications/{id}/assigned-groups/{groupId}","href":"/api-reference/assigned-applications/remove-a-groups-access"}]},{"group":"Authenticator enrollments","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/authenticator-enrollments","href":"/api-reference/authenticator-enrollments/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/authenticator-enrollments/{id}","href":"/api-reference/authenticator-enrollments/get"}]},{"group":"Authenticators","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/authenticators","href":"/api-reference/authenticators/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/authenticators/{id}","href":"/api-reference/authenticators/get"}]},{"group":"Department assignments","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/employee-serving-in-department","href":"/api-reference/department-assignments/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/employee-serving-in-department/{id}","href":"/api-reference/department-assignments/get"}]},{"group":"Department hierarchy","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/department-contains-department","href":"/api-reference/department-hierarchy/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/department-contains-department/{id}","href":"/api-reference/department-hierarchy/get"}]},{"group":"Departments","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/departments","href":"/api-reference/departments/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/departments/{id}","href":"/api-reference/departments/get"}]},{"group":"Employees","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/employees","href":"/api-reference/employees/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/employees/{id}","href":"/api-reference/employees/get"}]},{"group":"Enrollment links","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/enrollment-via-authenticator","href":"/api-reference/enrollment-links/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/enrollment-via-authenticator/{id}","href":"/api-reference/enrollment-links/get"}]},{"group":"Impersonation grants","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/entity-can-impersonate-entity","href":"/api-reference/impersonation-grants/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/entity-can-impersonate-entity/{id}","href":"/api-reference/impersonation-grants/get"}]},{"group":"Integrated applications","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/integrated-applications","href":"/api-reference/integrated-applications/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/integrated-applications/{id}","href":"/api-reference/integrated-applications/get"}]},{"group":"Managed-via relationships","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/entity-managed-via-object","href":"/api-reference/managed-via-relationships/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/entity-managed-via-object/{id}","href":"/api-reference/managed-via-relationships/get"}]},{"group":"Memberships","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/entity-member-of-entity","href":"/api-reference/memberships/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/entity-member-of-entity/{id}","href":"/api-reference/memberships/get"}]},{"group":"Non-human identities","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/non-human-identities","href":"/api-reference/non-human-identities/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/non-human-identities/{id}","href":"/api-reference/non-human-identities/get"},{"title":"Disable","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml post /v1/non-human-identities/{id}/disable","href":"/api-reference/non-human-identities/disable"}]},{"group":"Object extensions","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/object-has-extension","href":"/api-reference/object-extensions/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/object-has-extension/{id}","href":"/api-reference/object-extensions/get"}]},{"group":"Person-employee links","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/person-is-employee","href":"/api-reference/person-employee-links/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/person-is-employee/{id}","href":"/api-reference/person-employee-links/get"}]},{"group":"Persons","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/persons","href":"/api-reference/persons/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/persons/{id}","href":"/api-reference/persons/get"}]},{"group":"Reporting lines","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/employee-manages-employee","href":"/api-reference/reporting-lines/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/employee-manages-employee/{id}","href":"/api-reference/reporting-lines/get"}]},{"group":"Resource classes","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/resource-classes","href":"/api-reference/resource-classes/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/resource-classes/{id}","href":"/api-reference/resource-classes/get"}]},{"group":"Resource hierarchy","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/resource-instance-contains-resource-instance","href":"/api-reference/resource-hierarchy/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/resource-instance-contains-resource-instance/{id}","href":"/api-reference/resource-hierarchy/get"}]},{"group":"Resource instances","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/resource-instances","href":"/api-reference/resource-instances/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/resource-instances/{id}","href":"/api-reference/resource-instances/get"},{"title":"Revoke anonymous access","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml delete /v1/resource-instances/{id}/anonymous-access","href":"/api-reference/resource-instances/revoke-anonymous-access"},{"title":"Revoke external sharing","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml delete /v1/resource-instances/{id}/external-shares","href":"/api-reference/resource-instances/revoke-external-sharing"},{"title":"Remove an account's permissions","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml delete /v1/resource-instances/{id}/permissions/{accountId}","href":"/api-reference/resource-instances/remove-an-accounts-permissions"}]},{"group":"Roles","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/roles","href":"/api-reference/roles/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/roles/{id}","href":"/api-reference/roles/get"},{"title":"Assign to an account","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml put /v1/roles/{id}/assignees/{accountId}","href":"/api-reference/roles/assign-to-an-account"},{"title":"Remove from an account","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml delete /v1/roles/{id}/assignees/{accountId}","href":"/api-reference/roles/remove-from-an-account"}]},{"group":"User groups","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/user-groups","href":"/api-reference/user-groups/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/user-groups/{id}","href":"/api-reference/user-groups/get"},{"title":"Create","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml post /v1/user-groups","href":"/api-reference/user-groups/create"},{"title":"Add an account","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml put /v1/user-groups/{id}/members/{accountId}","href":"/api-reference/user-groups/add-an-account"},{"title":"Remove an account","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml delete /v1/user-groups/{id}/members/{accountId}","href":"/api-reference/user-groups/remove-an-account"}]}]},{"group":"Action jobs","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/action-jobs","href":"/api-reference/action-jobs/list"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/action-jobs/{id}","href":"/api-reference/action-jobs/get"},{"title":"List results","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml get /v1/action-jobs/{id}/results","href":"/api-reference/action-jobs/list-results"},{"title":"Revert","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/oleria-public-api-1.0.0.yaml post /v1/action-jobs/{id}/revert","href":"/api-reference/action-jobs/revert"}]},{"group":"TrustFusion","pages":[{"group":"Query","pages":[{"title":"Validate","description":"Parses the SQL query and evaluates it against configured validation rules. Returns `200` if the query passes all rules. Returns `422` with violation details if the query is denied. Does not execute the query.\n","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml post /v1/query/validate","href":"/api-reference/query/validate"},{"title":"Execute","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml post /v1/query/execute","href":"/api-reference/query/execute"},{"title":"Get a job","description":"Returns the current status of a query job. The job_id from either the `200` or `202` execute response resolves here. When the job is completed, the response includes download references for the result; while it is still running, only the status is returned.\n","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml get /v1/query/jobs/{job_id}","href":"/api-reference/query/get-a-job"}]},{"group":"Saved Query","pages":[{"title":"List","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml get /v1/query/saved-queries","href":"/api-reference/saved-query/list"},{"title":"Create","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml post /v1/query/saved-queries","href":"/api-reference/saved-query/create"},{"title":"Get","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml get /v1/query/saved-queries/{query_id}","href":"/api-reference/saved-query/get"},{"title":"Delete","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml delete /v1/query/saved-queries/{query_id}","href":"/api-reference/saved-query/delete"},{"title":"Update","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml patch /v1/query/saved-queries/{query_id}","href":"/api-reference/saved-query/update"}]},{"group":"Schema","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml get /v1/schema/models","href":"/api-reference/schema/list-models"},{"title":"Get a model","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/trustfusion-openapi-schema-1.0.0.yaml get /v1/schema/models/{model_name}","href":"/api-reference/schema/get-a-model"}]}]},{"group":"Downloads","pages":[{"title":"Working with Downloads","href":"/developer-docs/api-reference/working-with-downloads"},{"group":"Downloads","pages":[{"title":"Create a download request","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/downloads-openapi-schema-1.0.0.yaml post /v1/downloads","href":"/api-reference/downloads/create-a-download-request"},{"title":"Get a download request","deprecated":null,"version":null,"openapi":"/developer-docs/api-reference/downloads-openapi-schema-1.0.0.yaml get /v1/downloads/{id}","href":"/api-reference/downloads/get-a-download-request"}]}]}]},{"tab":"What's New","pages":[{"title":"What's New","href":"/release-notes"}]}]},"basePath":"","title":"Execute - Oleria Identity Security","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C8RPHPxo.js","utils-0BK-9q6z.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DfjzsUJT.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B4v9psJ4.js","snippetPresets-CpTQv-Ez.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BNP-Fvr0.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BSgu6h1D.js","shallow-Biv1i9Gs.js","getApiPlaygroundDisplay-BoGOXhtF.js","CodeSnippet-DvQoT18_.js","CodeSnippets-Dnpa15xT.js","Page-Buji1S4J.js","getPastedJson-xAIyhUFE.js","icon-S6FBih11.js","MethodPill-SaYeUZyk.js","DuplicateIcon-Cs-p3v2Q.js","createIcon-DjCFEoHq.js","DynamicMarkdown-BcnBltEQ.js","SectionHeading-BUBl0eEF.js","axios-vUo_bRtp.js","Markdown-h4cOoD8d.js","clsx-B2v50t8t.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DJnKvr0g.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BHrrjR1K.js"]}