Execute command
execute_commandExecute a command the user asked for. A routine command (execution: direct in get_command_schema) runs at once without authorizationId. Any other command runs once after approval, with exactly the fields, target and reason used by prepare_command, a matching authorizationId and the member's current membership, token scope and fresh passkey session. Destructive, external and privileged actions retain all domain safeguards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Application id or orgSlug/appSlug for an app command | |
| org | Yes | Organization slug or id | |
| files | No | Optional form files, base64 encoded, up to 4 MiB each. File field names come from get_command_schema. | |
| fields | Yes | Exact fields from get_command_schema. Use strings, repeated string arrays, and serialized JSON for JSON fields. Do not include org, app or _csrf. | |
| reason | Yes | The user's reason for this exact change | |
| commandId | Yes | Exact id from list_commands | |
| environment | No | production | |
| authorizationId | No | From prepare_command; omit only for a direct command |