Skip to main content
POST
/
core.v1.PoliciesService
/
ListPolicies
cURL
curl -X POST "https://api.joinformal.com/core.v1.PoliciesService/ListPolicies" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "example": "value"
  }'
{
  "policies": [
    {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "code": "<string>",
      "ast": "<string>",
      "notification": "none",
      "owners": [
        {
          "group": {
            "id": "<string>",
            "name": "<string>",
            "description": "<string>",
            "dsyncGroupId": "<string>",
            "terminationProtection": true,
            "createdAt": "2023-11-07T05:31:56Z",
            "updatedAt": "2023-11-07T05:31:56Z"
          }
        }
      ],
      "status": "draft",
      "terminationProtection": true,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "version": 123
    }
  ],
  "listMetadata": {
    "after": "<string>",
    "before": "<string>",
    "count": 123,
    "nextCursor": "<string>"
  }
}

Authorizations

X-API-KEY
string
header
required

API key authentication. Get your API key from the Formal console.

Body

application/json
limit
integer<int32>
Required range: x <= 500
cursor
string
order
string
searchFields
enum<string>[]
Available options:
id,
name,
description,
owners,
status
filter
filter · object

Response

Success

policies
Policy · object[]
listMetadata
list_metadata · object