Skip to main content
POST
Generate a business policy description
Send the policy as it stands — finished or still being written — with its fields at the top level of the body, as you would send them to the create endpoint. Every field is optional, but at least one of name, actions and conditions must be present; unknown fields are ignored. The answer is a short text in Portuguese, at most 160 characters, ready to use as the policy’s description. Approvers are described by their current names, and each condition by its catalog label. The AI model never receives the value of a condition on the payment’s counterparty (its document, name, Pix key or account), on a Pix copy-and-paste code, on user or wallet IDs, on a field outside the catalog or on a field with a maskType — the description only says such a condition exists. Other values are sent cleaned of invisible characters and shortened — text to 500 characters, and a very large policy is described from a shortened copy of its conditions. It takes a few seconds. Only organization admins can generate descriptions.

Path Parameters

realmId
string<uuid>
required

ID of your realm.

Format: UUID

organizationId
string<uuid>
required

ID of the organization the policy belongs to.

Format: UUID

Body

application/json
context
string

The policy's context, which decides how its condition fields are named in the description. Defaults to PAYMENT.

Example:

"PAYMENT"

name
string

The policy's name.

Example:

"Payments over R$ 5,000"

description
string

The current description, if any. It is not reused.

order
number

The policy's evaluation order.

Example:

10

status
string

The policy's status.

Example:

"ACTIVE"

actions
object

The policy's actions, as on create.

conditions
any

The policy's conditions, as on create. Incomplete conditions are fine: each item is described as far as it goes.

Response

Successful response

A generated description of the policy.

description
string
required

A short description of the policy in Portuguese, at most 160 characters.

Example:

"Pagamentos acima de R$ 5.000,00 precisam da aprovação do grupo Financeiro, com saldo da conta principal."