cURL
core.v1.PoliciesService
CreateRegoCodeFromNaturalLanguage
POST
cURL
Documentation Index
Fetch the complete documentation index at: https://docs.formal.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key authentication. Get your API key from the Formal console.
Body
application/json
Natural language description of the desired policy or permission. May include context such as existing code, validation errors, or org context composed by the caller.
Required string length:
1 - 10000"policy" (formal.v2) or "permission" (formal.app).
Available options:
policy, permission When true, skip OPA validation and retry loop. Defaults to false (validate).