May this agent do this

Checked against this key's rules, written as sentences, and the defaults that are always on. When nothing covers the action, the organisation's setting decides: by default an action that moves money (any amountCents above 0), deletes something or contacts someone needs a person, and anything else is allowed. Every answer is recorded.

post/v1/authority/check

Request

  • Base URL: https://api.doubleoh.ai
  • URL: https://api.doubleoh.ai/v1/authority/check
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Request body

toolstring required
targetstring
actionstring
amountCentsinteger
currencystring

ISO 4217, e.g. USD. Send it with amountCents: a limit in one currency never grants another.

agentstring

Response

The decision and the rule that made it.

decision'allow' | 'needs_person' | 'never'
ruleIdstring
sentencestring
pattern'split'

split: with this agent's earlier amounts in the window, this looks like one payment cut into parts.

nextstring

Changes

No recorded changes to this operation across all 1 revision of this API.