Skip to main content

List model policies

List model policies. GET /api/openapi/v1/model-policies, scope admin.v1.model-policies.read.

  • Scope: admin.v1.model-policies.read
  • Permission: Read model policies (model-policies)
  • Permission type: Read
  • Endpoint: GET/api/openapi/v1/model-policies

Authentication and request headers

Call with an application API key. This endpoint checks only the scope above; read, manage and execute permissions do not imply one another.
NameLocationTypeRequiredDescriptionExample
AuthorizationheaderstringYesApplication API key, passed as a Bearer token.Bearer qwk_***
X-Request-IdheaderstringNoOptional request tracing identifier; generated by the server if omitted.req-20260831-001

Request parameters

NameLocationTypeRequiredDescriptionExample
keywordquerystringNoSearch keyword"<string>"
pagequeryinteger · int64NoPage number1
page_sizequeryinteger · int64NoPage size20

Request example

cURL

Responses

200 OK
NameTypeRequiredDescriptionExample
itemsarray | nullYesRecords[{"created_at":"2026-08-27T10:00:00Z","default":false,"description":"<string>","id":"<string>","mode":"<string>","name":"<string>","policy_type":"<string>","resource_count":0,"resource_scope":"<string>","status":"<string>","subject_count":0,"subject_counts":{},"subject_scope":"<string>","surfaces":["<string>"],"updated_at":"2026-08-27T10:00:00Z"}]
pageinteger · int64YesPage number0
page_sizeinteger · int64YesPage size0
total_itemsinteger · int64YesTotal count0
total_pagesinteger · int64YesTotal pages0
Response example
default Flat business error
NameTypeRequiredDescriptionExample
codestringNoStable business error code"<string>"
detailstringYesHuman-readable error description"<string>"
detailsOpenapiErrorDetailsNoError details{"field":"<string>","reason":"<string>","suggestion":"<string>"}
details.fieldstringNoRequest field that failed validation"<string>"
details.reasonstringNoStable validation failure reason"<string>"
details.suggestionstringNoSuggested normalized value"<string>"
errorstringYesStable HTTP error type"<string>"
Response example