v1
protected
policies
List Policy Rules
Changed onList policy rules in the current workspace.
get/v1/workspaces/{workspace}/policies
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workspacestring required
Slug of the workspace the request acts in
Query parameters
subject_type'workspace' | 'agent' | 'user' | 'group'
The kind of subject a rule binds to.
subject_idstring nullable
effect'allow' | 'deny' | 'cap' | 'approval' | 'safety' | 'egress'
What a rule does when it applies.
targetstring nullable
enabledboolean nullable
Response
Successful Response
Changes
- info
endpoint added
- info