{ "nextPageToken": "eyJ1bmlxdWVGaWVsZE5hbWUiOiJpZCIsInNvcnQiOnsibmFtZSI6eyJkaXJlY3Rpb24iOiJhc2MifX19", "items": [ { "id": "1", "name": "End Of Life", "description": "All components should be in the supported version", "createdAt": "2024-05-06T11:25:51.513Z", "updatedAt": "2024-09-09T19:35:31.898Z" }, "..." ]}
{
"error": {
"message": "<string>"
}
}
{
"error": {
"message": "<string>"
}
}
{
"error": {
"message": "<string>"
}
}
{
"error": {
"message": "<string>"
}
}
{
"error": {
"message": "<string>"
}
}
{
"error": {
"message": "<string>"
}
}
Policy
Query policies with filtering, sorting and pagination
Query policies with filtering, sorting and pagination
POST
/
policy
/
query
Query policies with filtering, sorting and pagination
{ "nextPageToken": "eyJ1bmlxdWVGaWVsZE5hbWUiOiJpZCIsInNvcnQiOnsibmFtZSI6eyJkaXJlY3Rpb24iOiJhc2MifX19", "items": [ { "id": "1", "name": "End Of Life", "description": "All components should be in the supported version", "createdAt": "2024-05-06T11:25:51.513Z", "updatedAt": "2024-09-09T19:35:31.898Z" }, "..." ]}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Draftt Docs","colors":{"primary":"#716bf2","light":"#cbc9ff","dark":"#4D3E78"},"logo":{"light":"https://mintcdn.com/draftt/kdP74Bn9gfrLqWGU/images/drafttlogoppl.svg?fit=max\u0026auto=format\u0026n=kdP74Bn9gfrLqWGU\u0026q=85\u0026s=d61488a6677a3b1e232260e48d2bd0bd","dark":"https://mintcdn.com/draftt/kdP74Bn9gfrLqWGU/images/drafttlogowhite.svg?fit=max\u0026auto=format\u0026n=kdP74Bn9gfrLqWGU\u0026q=85\u0026s=afefe3896377a53bce57bc52493b9168"},"favicon":"https://mintcdn.com/draftt/apLZ2zJ5uMh_Rbqo/images/type=Minimized,size=32px.png?fit=max\u0026auto=format\u0026n=apLZ2zJ5uMh_Rbqo\u0026q=85\u0026s=04e604786506c7d7bb15f513f2f6854d","api":{"openapi":"https://api.draftt.io/swagger","playground":{"proxy":false}},"appearance":{"default":"light"},"background":{},"navbar":{"links":[{"href":"https://app.draftt.io","label":"Login"}],"primary":{"type":"button","label":"Book a Demo","href":"https://www.draftt.io/book-a-demo"}},"footer":{"socials":{"x":"https://twitter.com/draftt_io","linkedin":"https://linkedin.com/company/draftt"}},"fonts":{"family":"Poppins"},"integrations":{"amplitude":{"apiKey":"5f988fccd755ddaa22bea11f3306c4b3"}},"contextual":{"options":[],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"draftt","hasAudioNarration":false,"actualSubdomain":"draftt","customDomains":["docs.draftt.io"],"gitSource":{"type":"github","owner":"draftt-io","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ab68fb9c6fb6f41c7c03986","collectionId":"0f46d009-8832-4c8d-a269-732f6054a198","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ab68fb9c6fb6f41c7c03986"},"entitlements":{},"buildId":"6ab68fb9c6fb6f41c7c03986","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"API Documentation","count":27},{"language":"default","tag":"API REFERENCE","count":27},{"language":"default","tag":"Guides","count":21},{"language":"default","tag":"Connectors \u0026 Integrations","count":16},{"language":"default","tag":"Component","count":7},{"language":"default","tag":"COLLABORATION \u0026 DEV TOOLS","count":6},{"language":"default","tag":"CORE CONCEPTS","count":5},{"language":"default","tag":"CLOUD INFRASTRUCTURE","count":4},{"language":"default","tag":"ENTERPRISE CONTROLS","count":4},{"language":"default","tag":"INTRODUCTION","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"isAtlas":false,"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/policy/query-policies-with-filtering-sorting-and-pagination","slug":"/api-reference/policy/query-policies-with-filtering-sorting-and-pagination","pageMetadata":{"title":"Query policies with filtering, sorting and pagination","description":"Query policies with filtering, sorting and pagination","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /policy/query","href":"/api-reference/policy/query-policies-with-filtering-sorting-and-pagination","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Query policies with filtering, sorting and pagination\"\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":"Query policies with filtering, sorting and pagination","description":"Query policies with filtering, sorting and pagination","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /policy/query","href":"/api-reference/policy/query-policies-with-filtering-sorting-and-pagination","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/draftt/59be466635ae4884/amplitude.js"],"openApiReferenceData":{"operation":{"tags":["Policy"],"summary":"Query policies with filtering, sorting and pagination","description":"Query policies with filtering, sorting and pagination","requestBody":"95d8ff4a-26d3-4605-9f2d-f12b96d76c7d","responses":{"200":"f712fafe-e33a-4687-9a98-d098d2670455","400":"91cd8c52-2423-4103-9b3e-65c5c35823eb","401":"20454c3d-25c8-4d13-99df-c3be82b47a81","403":"e227b8ae-b093-4aae-a33b-33499b6b080c","404":"a3124e37-117e-459c-8892-c83865ccfc03","429":"da5249d9-54f4-47ad-81e4-2bf82d478445","500":"517b2039-6feb-4b8b-a309-c5383778db4b"},"method":"post","type":"path","servers":["e99c21fa-f096-4378-a7c4-260728ff652b"],"security":["e8311f54-6590-414b-9440-2cd57b20ae5e"],"path":"/policy/query","baseUrlOptions":["https://api.draftt.io/v1"],"title":"Query policies with filtering, sorting and pagination","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","examples":[{"pageSize":20,"filter":{"name":{"$like":"End*"}},"sort":{"createdAt":"desc"}},{"filter":{"name":{"$eq":"End Of Life"}},"sort":{"name":"asc"}}],"properties":{"filter":{"type":"object","properties":{"$and":{"type":"array","items":{"$circularRef":"e715006c-3cc6-4414-ba7a-720a701b442e"},"uniqueKey":"filter.$and","typeLabel":"array"},"$or":{"type":"array","items":{"$circularRef":"e715006c-3cc6-4414-ba7a-720a701b442e"},"uniqueKey":"filter.$or","typeLabel":"array"},"id":{"type":"object","description":"Exactly one operator per field. Pass numbers, not numeric strings - a string value does not match rather than erroring.","properties":{"$eq":{"type":"number","description":"Equals operator","uniqueKey":"filter.id.$eq","typeLabel":"number"},"$ne":{"type":"number","description":"Not equals operator","uniqueKey":"filter.id.$ne","typeLabel":"number"},"$gt":{"type":"number","description":"Greater than operator","uniqueKey":"filter.id.$gt","typeLabel":"number"},"$gte":{"type":"number","description":"Greater than or equal operator","uniqueKey":"filter.id.$gte","typeLabel":"number"},"$lt":{"type":"number","description":"Less than operator","uniqueKey":"filter.id.$lt","typeLabel":"number"},"$lte":{"type":"number","description":"Less than or equal operator","uniqueKey":"filter.id.$lte","typeLabel":"number"},"$in":{"type":"array","items":{"type":"number","uniqueKey":"filter.id.$in.items.[INDEX]","typeLabel":"number"},"description":"In operator","uniqueKey":"filter.id.$in","typeLabel":"number[]"},"$nin":{"type":"array","items":{"type":"number","uniqueKey":"filter.id.$nin.items.[INDEX]","typeLabel":"number"},"description":"Not in operator","uniqueKey":"filter.id.$nin","typeLabel":"number[]"},"$exists":{"type":"boolean","description":"Exists operator","uniqueKey":"filter.id.$exists","typeLabel":"boolean"}},"minProperties":1,"maxProperties":1,"uniqueKey":"filter.id","typeLabel":"object"},"name":{"type":"object","properties":{"$eq":{"type":"string","description":"Equals operator","uniqueKey":"filter.name.$eq","typeLabel":"string"},"$ne":{"type":"string","description":"Not equals operator","uniqueKey":"filter.name.$ne","typeLabel":"string"},"$gt":{"type":"string","description":"Greater than operator","uniqueKey":"filter.name.$gt","typeLabel":"string"},"$gte":{"type":"string","description":"Greater than or equal operator","uniqueKey":"filter.name.$gte","typeLabel":"string"},"$lt":{"type":"string","description":"Less than operator","uniqueKey":"filter.name.$lt","typeLabel":"string"},"$lte":{"type":"string","description":"Less than or equal operator","uniqueKey":"filter.name.$lte","typeLabel":"string"},"$like":{"type":"string","description":"Like operator, case-sensitive, wildcards are defined as `*`, for example - `{$like: 'abc*'}` - starts with abc.","uniqueKey":"filter.name.$like","typeLabel":"string"},"$ilike":{"type":"string","description":"Case-insensitive `$like` - same wildcard and whole-value rules","uniqueKey":"filter.name.$ilike","typeLabel":"string"},"$in":{"type":"array","items":{"type":"string","uniqueKey":"filter.name.$in.items.[INDEX]","typeLabel":"string"},"description":"In operator","uniqueKey":"filter.name.$in","typeLabel":"string[]"},"$nin":{"type":"array","items":{"type":"string","uniqueKey":"filter.name.$nin.items.[INDEX]","typeLabel":"string"},"description":"Not in operator","uniqueKey":"filter.name.$nin","typeLabel":"string[]"},"$exists":{"type":"boolean","description":"Exists operator","uniqueKey":"filter.name.$exists","typeLabel":"boolean"}},"minProperties":1,"maxProperties":1,"uniqueKey":"filter.name","typeLabel":"object"},"description":{"type":"object","properties":{"$eq":{"type":"string","description":"Equals operator","uniqueKey":"filter.description.$eq","typeLabel":"string"},"$ne":{"type":"string","description":"Not equals operator","uniqueKey":"filter.description.$ne","typeLabel":"string"},"$gt":{"type":"string","description":"Greater than operator","uniqueKey":"filter.description.$gt","typeLabel":"string"},"$gte":{"type":"string","description":"Greater than or equal operator","uniqueKey":"filter.description.$gte","typeLabel":"string"},"$lt":{"type":"string","description":"Less than operator","uniqueKey":"filter.description.$lt","typeLabel":"string"},"$lte":{"type":"string","description":"Less than or equal operator","uniqueKey":"filter.description.$lte","typeLabel":"string"},"$like":{"type":"string","description":"Like operator, case-sensitive, wildcards are defined as `*`, for example - `{$like: 'abc*'}` - starts with abc.","uniqueKey":"filter.description.$like","typeLabel":"string"},"$ilike":{"type":"string","description":"Case-insensitive `$like` - same wildcard and whole-value rules","uniqueKey":"filter.description.$ilike","typeLabel":"string"},"$in":{"type":"array","items":{"type":"string","uniqueKey":"filter.description.$in.items.[INDEX]","typeLabel":"string"},"description":"In operator","uniqueKey":"filter.description.$in","typeLabel":"string[]"},"$nin":{"type":"array","items":{"type":"string","uniqueKey":"filter.description.$nin.items.[INDEX]","typeLabel":"string"},"description":"Not in operator","uniqueKey":"filter.description.$nin","typeLabel":"string[]"},"$exists":{"type":"boolean","description":"Exists operator","uniqueKey":"filter.description.$exists","typeLabel":"boolean"}},"minProperties":1,"maxProperties":1,"uniqueKey":"filter.description","typeLabel":"object"},"createdAt":{"type":"object","properties":{"$eq":{"type":"string","description":"Equals operator","uniqueKey":"filter.createdAt.$eq","typeLabel":"string"},"$ne":{"type":"string","description":"Not equals operator","uniqueKey":"filter.createdAt.$ne","typeLabel":"string"},"$gt":{"type":"string","description":"Greater than operator","uniqueKey":"filter.createdAt.$gt","typeLabel":"string"},"$gte":{"type":"string","description":"Greater than or equal operator","uniqueKey":"filter.createdAt.$gte","typeLabel":"string"},"$lt":{"type":"string","description":"Less than operator","uniqueKey":"filter.createdAt.$lt","typeLabel":"string"},"$lte":{"type":"string","description":"Less than or equal operator","uniqueKey":"filter.createdAt.$lte","typeLabel":"string"},"$like":{"type":"string","description":"Like operator, case-sensitive, wildcards are defined as `*`, for example - `{$like: 'abc*'}` - starts with abc.","uniqueKey":"filter.createdAt.$like","typeLabel":"string"},"$ilike":{"type":"string","description":"Case-insensitive `$like` - same wildcard and whole-value rules","uniqueKey":"filter.createdAt.$ilike","typeLabel":"string"},"$in":{"type":"array","items":{"type":"string","uniqueKey":"filter.createdAt.$in.items.[INDEX]","typeLabel":"string"},"description":"In operator","uniqueKey":"filter.createdAt.$in","typeLabel":"string[]"},"$nin":{"type":"array","items":{"type":"string","uniqueKey":"filter.createdAt.$nin.items.[INDEX]","typeLabel":"string"},"description":"Not in operator","uniqueKey":"filter.createdAt.$nin","typeLabel":"string[]"},"$exists":{"type":"boolean","description":"Exists operator","uniqueKey":"filter.createdAt.$exists","typeLabel":"boolean"}},"minProperties":1,"maxProperties":1,"uniqueKey":"filter.createdAt","typeLabel":"object"},"updatedAt":{"type":"object","properties":{"$eq":{"type":"string","description":"Equals operator","uniqueKey":"filter.updatedAt.$eq","typeLabel":"string"},"$ne":{"type":"string","description":"Not equals operator","uniqueKey":"filter.updatedAt.$ne","typeLabel":"string"},"$gt":{"type":"string","description":"Greater than operator","uniqueKey":"filter.updatedAt.$gt","typeLabel":"string"},"$gte":{"type":"string","description":"Greater than or equal operator","uniqueKey":"filter.updatedAt.$gte","typeLabel":"string"},"$lt":{"type":"string","description":"Less than operator","uniqueKey":"filter.updatedAt.$lt","typeLabel":"string"},"$lte":{"type":"string","description":"Less than or equal operator","uniqueKey":"filter.updatedAt.$lte","typeLabel":"string"},"$like":{"type":"string","description":"Like operator, case-sensitive, wildcards are defined as `*`, for example - `{$like: 'abc*'}` - starts with abc.","uniqueKey":"filter.updatedAt.$like","typeLabel":"string"},"$ilike":{"type":"string","description":"Case-insensitive `$like` - same wildcard and whole-value rules","uniqueKey":"filter.updatedAt.$ilike","typeLabel":"string"},"$in":{"type":"array","items":{"type":"string","uniqueKey":"filter.updatedAt.$in.items.[INDEX]","typeLabel":"string"},"description":"In operator","uniqueKey":"filter.updatedAt.$in","typeLabel":"string[]"},"$nin":{"type":"array","items":{"type":"string","uniqueKey":"filter.updatedAt.$nin.items.[INDEX]","typeLabel":"string"},"description":"Not in operator","uniqueKey":"filter.updatedAt.$nin","typeLabel":"string[]"},"$exists":{"type":"boolean","description":"Exists operator","uniqueKey":"filter.updatedAt.$exists","typeLabel":"boolean"}},"minProperties":1,"maxProperties":1,"uniqueKey":"filter.updatedAt","typeLabel":"object"}},"uniqueKey":"filter","typeLabel":"object"},"select":{"type":"array","description":"If empty - will return all fields, if passed will only return selected fields","items":{"type":"string","enum":["id","name","description","createdAt","updatedAt"],"uniqueKey":"select.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"select","typeLabel":"enum\u003cstring>[]"},"sort":{"type":"object","description":"Optional sorting options, if not passed will sort by creation date in ascending order","properties":{"id":{"type":"string","enum":["asc","desc"],"uniqueKey":"sort.id","typeLabel":"enum\u003cstring>"},"name":{"type":"string","enum":["asc","desc"],"uniqueKey":"sort.name","typeLabel":"enum\u003cstring>"},"description":{"type":"string","enum":["asc","desc"],"uniqueKey":"sort.description","typeLabel":"enum\u003cstring>"},"createdAt":{"type":"string","enum":["asc","desc"],"uniqueKey":"sort.createdAt","typeLabel":"enum\u003cstring>"},"updatedAt":{"type":"string","enum":["asc","desc"],"uniqueKey":"sort.updatedAt","typeLabel":"enum\u003cstring>"}},"maxProperties":2,"uniqueKey":"sort","typeLabel":"object"},"pageToken":{"type":"string","description":"Base64 token for pagination","uniqueKey":"pageToken","typeLabel":"string"},"pageSize":{"type":"integer","minimum":1,"maximum":1000,"default":100,"description":"Number of items to return per page","uniqueKey":"pageSize","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"pageSize":20,"filter":{"name":{"$like":"End*"}},"sort":{"createdAt":"desc"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"f712fafe-e33a-4687-9a98-d098d2670455":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items"],"example":{"nextPageToken":"eyJ1bmlxdWVGaWVsZE5hbWUiOiJpZCIsInNvcnQiOnsibmFtZSI6eyJkaXJlY3Rpb24iOiJhc2MifX19","items":[{"id":"1","name":"End Of Life","description":"All components should be in the supported version","createdAt":"2024-05-06T11:25:51.513Z","updatedAt":"2024-09-09T19:35:31.898Z"},"..."]},"properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"int64","description":"Policy ID","uniqueKey":"\\items.items.[INDEX].id","typeLabel":"string\u003cint64>"},"name":{"type":"string","uniqueKey":"\\items.items.[INDEX].name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].description","typeLabel":"string | null"},"createdAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].createdAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"\\items.items.[INDEX].createdAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time> | null"},"updatedAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].updatedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"\\items.items.[INDEX].updatedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"object[]"},"nextPageToken":{"oneOf":[{"type":"string","description":"Token for fetching the next page of results","uniqueKey":"nextPageToken.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"nextPageToken.oneOf.1","typeLabel":"null"}],"uniqueKey":"nextPageToken","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"nextPageToken":"eyJ1bmlxdWVGaWVsZE5hbWUiOiJpZCIsInNvcnQiOnsibmFtZSI6eyJkaXJlY3Rpb24iOiJhc2MifX19","items":[{"id":"1","name":"End Of Life","description":"All components should be in the supported version","createdAt":"2024-05-06T11:25:51.513Z","updatedAt":"2024-09-09T19:35:31.898Z"},"..."]}}},"exampleType":"generated"}},"exampleType":"generated"},"91cd8c52-2423-4103-9b3e-65c5c35823eb":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"20454c3d-25c8-4d13-99df-c3be82b47a81":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e227b8ae-b093-4aae-a33b-33499b6b080c":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a3124e37-117e-459c-8892-c83865ccfc03":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"da5249d9-54f4-47ad-81e4-2bf82d478445":{"description":"Too Many Requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"517b2039-6feb-4b8b-a309-c5383778db4b":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e8311f54-6590-414b-9440-2cd57b20ae5e":{"BearerAuth":{"type":"http","scheme":"bearer","scopes":[]}}},"servers":{"e99c21fa-f096-4378-a7c4-260728ff652b":{"url":"https://api.draftt.io/v1"}},"schemas":{"e715006c-3cc6-4414-ba7a-720a701b442e":{"type":"object","properties":{"$and":{"type":"array","items":{"$circularRef":"e715006c-3cc6-4414-ba7a-720a701b442e"}},"$or":{"type":"array","items":{"$circularRef":"e715006c-3cc6-4414-ba7a-720a701b442e"}},"id":{"type":"object","description":"Exactly one operator per field. Pass numbers, not numeric strings - a string value does not match rather than erroring.","properties":{"$eq":{"type":"number","description":"Equals operator"},"$ne":{"type":"number","description":"Not equals operator"},"$gt":{"type":"number","description":"Greater than operator"},"$gte":{"type":"number","description":"Greater than or equal operator"},"$lt":{"type":"number","description":"Less than operator"},"$lte":{"type":"number","description":"Less than or equal operator"},"$in":{"type":"array","items":{"type":"number"},"description":"In operator"},"$nin":{"type":"array","items":{"type":"number"},"description":"Not in operator"},"$exists":{"type":"boolean","description":"Exists operator"}},"minProperties":1,"maxProperties":1},"name":{"type":"object","properties":{"$eq":{"type":"string","description":"Equals operator"},"$ne":{"type":"string","description":"Not equals operator"},"$gt":{"type":"string","description":"Greater than operator"},"$gte":{"type":"string","description":"Greater than or equal operator"},"$lt":{"type":"string","description":"Less than operator"},"$lte":{"type":"string","description":"Less than or equal operator"},"$like":{"type":"string","description":"Like operator, case-sensitive, wildcards are defined as `*`, for example - `{$like: 'abc*'}` - starts with abc."},"$ilike":{"type":"string","description":"Case-insensitive `$like` - same wildcard and whole-value rules"},"$in":{"type":"array","items":{"type":"string"},"description":"In operator"},"$nin":{"type":"array","items":{"type":"string"},"description":"Not in operator"},"$exists":{"type":"boolean","description":"Exists operator"}},"minProperties":1,"maxProperties":1},"description":{"type":"object","properties":{"$eq":{"type":"string","description":"Equals operator"},"$ne":{"type":"string","description":"Not equals operator"},"$gt":{"type":"string","description":"Greater than operator"},"$gte":{"type":"string","description":"Greater than or equal operator"},"$lt":{"type":"string","description":"Less than operator"},"$lte":{"type":"string","description":"Less than or equal operator"},"$like":{"type":"string","description":"Like operator, case-sensitive, wildcards are defined as `*`, for example - `{$like: 'abc*'}` - starts with abc."},"$ilike":{"type":"string","description":"Case-insensitive `$like` - same wildcard and whole-value rules"},"$in":{"type":"array","items":{"type":"string"},"description":"In operator"},"$nin":{"type":"array","items":{"type":"string"},"description":"Not in operator"},"$exists":{"type":"boolean","description":"Exists operator"}},"minProperties":1,"maxProperties":1},"createdAt":{"type":"object","properties":{"$eq":{"type":"string","description":"Equals operator"},"$ne":{"type":"string","description":"Not equals operator"},"$gt":{"type":"string","description":"Greater than operator"},"$gte":{"type":"string","description":"Greater than or equal operator"},"$lt":{"type":"string","description":"Less than operator"},"$lte":{"type":"string","description":"Less than or equal operator"},"$like":{"type":"string","description":"Like operator, case-sensitive, wildcards are defined as `*`, for example - `{$like: 'abc*'}` - starts with abc."},"$ilike":{"type":"string","description":"Case-insensitive `$like` - same wildcard and whole-value rules"},"$in":{"type":"array","items":{"type":"string"},"description":"In operator"},"$nin":{"type":"array","items":{"type":"string"},"description":"Not in operator"},"$exists":{"type":"boolean","description":"Exists operator"}},"minProperties":1,"maxProperties":1},"updatedAt":{"type":"object","properties":{"$eq":{"type":"string","description":"Equals operator"},"$ne":{"type":"string","description":"Not equals operator"},"$gt":{"type":"string","description":"Greater than operator"},"$gte":{"type":"string","description":"Greater than or equal operator"},"$lt":{"type":"string","description":"Less than operator"},"$lte":{"type":"string","description":"Less than or equal operator"},"$like":{"type":"string","description":"Like operator, case-sensitive, wildcards are defined as `*`, for example - `{$like: 'abc*'}` - starts with abc."},"$ilike":{"type":"string","description":"Case-insensitive `$like` - same wildcard and whole-value rules"},"$in":{"type":"array","items":{"type":"string"},"description":"In operator"},"$nin":{"type":"array","items":{"type":"string"},"description":"Not in operator"},"$exists":{"type":"boolean","description":"Exists operator"}},"minProperties":1,"maxProperties":1}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"https://api.draftt.io/swagger"},"subdomain":"draftt","siteName":"Draftt Docs","title":"Query policies with filtering, sorting and pagination - Draftt Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-25T15:12:49.260Z","originalFileLocation":"api-reference/policy/query-policies-with-filtering-sorting-and-pagination.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=\"Query policies with filtering, sorting and pagination\">\u003cmeta data-mint-head name=\"application-name\" content=\"Draftt Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/draftt/M2_JXoKXLU5TmVvp/_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/draftt/M2_JXoKXLU5TmVvp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/draftt/M2_JXoKXLU5TmVvp/_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/draftt/M2_JXoKXLU5TmVvp/_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/draftt/M2_JXoKXLU5TmVvp/_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/draftt/M2_JXoKXLU5TmVvp/_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/draftt/M2_JXoKXLU5TmVvp/_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/draftt/M2_JXoKXLU5TmVvp/_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/draftt/M2_JXoKXLU5TmVvp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Query policies with filtering, sorting and pagination - Draftt Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Query policies with filtering, sorting and pagination\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Draftt Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.draftt.io/api-reference/policy/query-policies-with-filtering-sorting-and-pagination\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://draftt.mintlify.app/_mintlify/api/og/v2?division=Policy\u0026amp;title=Query+policies+with+filtering%2C+sorting+and+pagination\u0026amp;description=Query+policies+with+filtering%2C+sorting+and+pagination\u0026amp;theme=e8cc71f0157e2d777f855087\u0026amp;signature=f9f81105f4dccd4016c719dabd0c9fbbaaf1ee68cee070ae9344960746a82e19\">\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=\"Query policies with filtering, sorting and pagination - Draftt Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Query policies with filtering, sorting and pagination\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://draftt.mintlify.app/_mintlify/api/og/v2?division=Policy\u0026amp;title=Query+policies+with+filtering%2C+sorting+and+pagination\u0026amp;description=Query+policies+with+filtering%2C+sorting+and+pagination\u0026amp;theme=e8cc71f0157e2d777f855087\u0026amp;signature=f9f81105f4dccd4016c719dabd0c9fbbaaf1ee68cee070ae9344960746a82e19\">\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/draftt/M2_JXoKXLU5TmVvp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Draftt Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#716bf2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.draftt.io/api-reference/policy/query-policies-with-filtering-sorting-and-pagination\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/policy/query-policies-with-filtering-sorting-and-pagination.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.draftt.io/#organization\",\"name\":\"Draftt Docs\",\"url\":\"https://docs.draftt.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/draftt/kdP74Bn9gfrLqWGU/images/drafttlogoppl.svg?fit=max\u0026auto=format\u0026n=kdP74Bn9gfrLqWGU\u0026q=85\u0026s=d61488a6677a3b1e232260e48d2bd0bd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.draftt.io#website\",\"name\":\"Draftt Docs\",\"url\":\"https://docs.draftt.io\",\"publisher\":{\"@id\":\"https://docs.draftt.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.draftt.io/api-reference/policy/query-policies-with-filtering-sorting-and-pagination#webpage\",\"url\":\"https://docs.draftt.io/api-reference/policy/query-policies-with-filtering-sorting-and-pagination\",\"name\":\"Query policies with filtering, sorting and pagination\",\"description\":\"Query policies with filtering, sorting and pagination\",\"dateModified\":\"2026-09-25T15:12:49.260Z\",\"isPartOf\":{\"@id\":\"https://docs.draftt.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.draftt.io/api-reference/policy/query-policies-with-filtering-sorting-and-pagination#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.draftt.io/api-reference/policy/query-policies-with-filtering-sorting-and-pagination#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API REFERENCE\",\"item\":\"https://docs.draftt.io/api-reference/component/search-and-filter-components\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Policy\",\"item\":\"https://docs.draftt.io/api-reference/policy/search-and-filter-policies\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Query policies with filtering, sorting and pagination\",\"item\":\"https://docs.draftt.io/api-reference/policy/query-policies-with-filtering-sorting-and-pagination\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.draftt.io/api-reference/policy/query-policies-with-filtering-sorting-and-pagination#apireference\",\"headline\":\"Query policies with filtering, sorting and pagination\",\"name\":\"Query policies with filtering, sorting and pagination\",\"description\":\"Query policies with filtering, sorting and pagination\",\"url\":\"https://docs.draftt.io/api-reference/policy/query-policies-with-filtering-sorting-and-pagination\",\"mainEntityOfPage\":{\"@id\":\"https://docs.draftt.io/api-reference/policy/query-policies-with-filtering-sorting-and-pagination#webpage\"},\"dateModified\":\"2026-09-25T15:12:49.260Z\",\"publisher\":{\"@id\":\"https://docs.draftt.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.draftt.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Draftt Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Draftt Docs","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Connectors \u0026 Integrations","pages":[{"title":"Connectors \u0026 Integrations","href":"/integrations-overview"}]},{"tab":"API Documentation","groups":[{"group":"API REFERENCE","pages":[{"group":"Component","pages":[{"title":"Search and filter components","deprecated":true,"version":null,"openapi":"https://api.draftt.io/swagger post /component/search","href":"/api-reference/component/search-and-filter-components"},{"title":"Retrieve a specific component by ID","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger get /component/{componentId}","href":"/api-reference/component/retrieve-a-specific-component-by-id"},{"title":"Update Component by ID","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger patch /component/{componentId}","href":"/api-reference/component/update-component-by-id"},{"title":"Query Upgrade Plan sections for a component","deprecated":true,"version":null,"openapi":"https://api.draftt.io/swagger post /component/{componentId}/draftt/query","href":"/api-reference/component/query-upgrade-plan-sections-for-a-component"},{"title":"Bulk Update Components","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /component/update","href":"/api-reference/component/bulk-update-components"},{"title":"Discover the queryable details$ fields for a technology or technology group","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /component/detailsSchema","href":"/api-reference/component/discover-the-queryable-details$-fields-for-a-technology-or-technology-group"},{"title":"Query components with filtering, sorting and pagination","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /component/query","href":"/api-reference/component/query-components-with-filtering-sorting-and-pagination"}]},{"group":"Upgrade Plan","pages":[{"title":"Query Upgrade Plan sections for a component","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /component/{componentId}/upgradePlan/query","href":"/api-reference/upgrade-plan/query-upgrade-plan-sections-for-a-component"},{"title":"Query upgrade plans with filtering, sorting and pagination","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /upgradePlan/query","href":"/api-reference/upgrade-plan/query-upgrade-plans-with-filtering-sorting-and-pagination"}]},{"group":"K8s Resource","pages":[{"title":"Query scoped Kubernetes resources","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /k8sResource/query","href":"/api-reference/k8s-resource/query-scoped-kubernetes-resources"},{"title":"Discover queryable Kubernetes resource detail fields by kind","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /k8sResource/detailsSchema","href":"/api-reference/k8s-resource/discover-queryable-kubernetes-resource-detail-fields-by-kind"},{"title":"Get full public context for one Kubernetes resource","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger get /k8sResource/{id}","href":"/api-reference/k8s-resource/get-full-public-context-for-one-kubernetes-resource"}]},{"group":"Draftt","pages":[{"title":"Query upgrade plans with filtering, sorting and pagination","deprecated":true,"version":null,"openapi":"https://api.draftt.io/swagger post /draftt/query","href":"/api-reference/draftt/query-upgrade-plans-with-filtering-sorting-and-pagination"}]},{"group":"Policy","pages":[{"title":"Search and filter policies","deprecated":true,"version":null,"openapi":"https://api.draftt.io/swagger post /policy/search","href":"/api-reference/policy/search-and-filter-policies"},{"title":"Retrieve a specific policy by ID","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger get /policy/{id}","href":"/api-reference/policy/retrieve-a-specific-policy-by-id"},{"title":"Create a new policy","description":null,"deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /policy","href":"/api-reference/policy/create-a-new-policy"},{"title":"Query policies with filtering, sorting and pagination","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /policy/query","href":"/api-reference/policy/query-policies-with-filtering-sorting-and-pagination"}]},{"group":"Policy Component","pages":[{"title":"Search and filter policy components","description":"Deprecated as of: 2026-06-04. Scheduled for removal: 2026-09-04. Replacement: POST /policy/{policyId}/component/query. Please migrate to the DrafttQL query endpoint for advanced filtering, field selection, and cursor-based pagination.","deprecated":true,"version":null,"openapi":"https://api.draftt.io/swagger post /policy/{policyId}/component/search","href":"/api-reference/policy-component/search-and-filter-policy-components"},{"title":"Retrieve a specific policy component by ID","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger get /policy/{policyId}/component/{componentId}","href":"/api-reference/policy-component/retrieve-a-specific-policy-component-by-id"},{"title":"Search and filter Policy Components","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /policy/{policyId}/component/query","href":"/api-reference/policy-component/search-and-filter-policy-components-1"}]},{"group":"Policy K8s Resource","pages":[{"title":"Query Kubernetes resources evaluated by a policy","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /policy/{policyId}/k8sResource/query","href":"/api-reference/policy-k8s-resource/query-kubernetes-resources-evaluated-by-a-policy"}]},{"group":"Integration","pages":[{"title":"Search and filter integration","deprecated":true,"version":null,"openapi":"https://api.draftt.io/swagger post /integration/search","href":"/api-reference/integration/search-and-filter-integration"},{"title":"Retrieve a specific integration by ID","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger get /integration/{integrationId}","href":"/api-reference/integration/retrieve-a-specific-integration-by-id"},{"title":"Query integrations with filtering, sorting and pagination","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /integration/query","href":"/api-reference/integration/query-integrations-with-filtering-sorting-and-pagination"}]},{"group":"Certificate","pages":[{"title":"Query certificates with filtering, sorting and pagination","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /certificates/query","href":"/api-reference/certificate/query-certificates-with-filtering-sorting-and-pagination"},{"title":"Retrieve a specific certificate by ID","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger get /certificates/{id}","href":"/api-reference/certificate/retrieve-a-specific-certificate-by-id"}]},{"group":"Code","pages":[{"title":"Ingest a code SBOM","deprecated":null,"version":null,"openapi":"https://api.draftt.io/swagger post /code/sbom","href":"/api-reference/code/ingest-a-code-sbom"}]}]}]}]},"title":"Query policies with filtering, sorting and pagination - Draftt Docs","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Bbp7I60D.js","utils-C3RIvJha.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DqD-vLt8.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B31Loprg.js","snippetPresets-DKpk-b8t.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Cj65AhOR.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BXtn5gcC.js","shallow-RY2b03Cp.js","getApiPlaygroundDisplay-B0jeiPk3.js","CodeSnippet-CYgBjjwn.js","CodeSnippets-DOngDrYB.js","Page-n7I5XbKb.js","getPastedJson-DRQbJx-T.js","icon-CQiQCicY.js","MethodPill-BKTLdNtu.js","DuplicateIcon-B9jpAdat.js","createIcon-DCddRrXv.js","DynamicMarkdown-a8hUKrw6.js","SectionHeading-eECVV2eH.js","axios-vUo_bRtp.js","Markdown--GF7ZIpf.js","clsx-DZLdJUrt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-2LoAhjKH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Zwc0ZncM.js"]}