Skip to main content
POST
/
core.v1.PoliciesService
/
GetPolicyCodeValidity
cURL
curl -X POST "https://api.joinformal.com/core.v1.PoliciesService/GetPolicyCodeValidity" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "example": "value"
  }'
{
  "valid": true,
  "ast": "<string>",
  "error": "<string>"
}

Authorizations

X-API-KEY
string
header
required

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

Body

application/json
code
string
Minimum string length: 1

Response

Success

valid
boolean
ast
string
error
string