Policies

List the organisation's policy invariants, live and retired

GET
/v1/public/account/workspace/policy-platform/invariants

Account session of any workspace member. Every declaration the organisation's owner made for the environment, newest first, each with its digest and, once retired, its retirement.

Authorization

AccountSessionCookie
decionis_account_session<token>

The signed HttpOnly account session the web app holds after sign-in (also accepted as a Bearer acct_ token).

In: cookie

Query Parameters

environment?string
Default"sandbox"

Value in

  • "sandbox"
  • "production"

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/public/account/workspace/policy-platform/invariants"
{  "invariants": [    {      "record": {        "schemaVersion": 1,        "kind": "decionis.policy-invariant/v1",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa",        "environment": "sandbox",        "invariant": {          "id": "string",          "statement": "string",          "decisionDomain": "string",          "decisionType": "string",          "input": {},          "vary": [            {              "field": "string",              "values": [                "string"              ]            }          ]        },        "declaredBy": "0a658536-d524-4ec3-a0d7-6a378ee32fd8",        "declaredAt": "2019-08-24T14:15:22Z",        "reason": "string"      },      "digest": "string",      "retirement": null    }  ]}