Skip to main content
POST
Simulate policy chain

Authorizations

X-Stamp
string
header
required

Body

application/json
organizationId
string
required

Unique identifier for a given organization.

activityType
string
required

Activity type to simulate (e.g. ACTIVITY_TYPE_SIGN_TRANSACTION_V2).

parametersJson
string

Activity intent parameters as a JSON object string. Defaults to '{}' when empty.

initiatorUserId
string

Declared initiator user ID. Defaults to the authenticated user when empty.

approverUserIds
string[]

Declared approver user IDs (assumed to have voted Approved). The initiator is always counted.

extraPolicies
object[]

Hypothetical policies appended to the organization's policy list.

excludePolicyIds
string[]

Existing policy IDs to exclude from evaluation.

Response

A successful response.

finalDecision
enum<string>
default:OUTCOME_UNSPECIFIED
required
Available options:
OUTCOME_UNSPECIFIED,
OUTCOME_ALLOW,
OUTCOME_DENY_EXPLICIT,
OUTCOME_DENY_IMPLICIT,
OUTCOME_REQUIRES_CONSENSUS,
OUTCOME_REJECTED,
OUTCOME_ERROR
matchedPolicyId
string

Policy that determined the decision. Empty for root quorum bypass, implicit allow, and implicit deny.

matchedPolicyName
string
reason
string

Human-readable explanation of the decision.

policyDetails
object[]

Per-policy evaluation trail in evaluation order. Empty when root quorum bypass decided the outcome.

evaluatedCount
integer<int32>

Number of policies actually evaluated (short-circuit stops counting).

totalCount
integer<int32>

Total number of policies in the effective set (after extra/exclude adjustments).