Get a signed verdict on a proposal
POST
For a proposal the wallet's own agent made with propose. The API reads its action and args from the chain, never from the body, and judges it under the wallet's current rules. Judged once per proposal: a repeat gets the stored answer. The response is ready for execute(proposal_id, req_bytes, resp_bytes, signature).
application/json- body
wallet_id*stringThe API's own wallet, or .intented.testnet where there is a factory.
proposal_id*integerThe id propose returned.
Range
0 <= valuecontext*stringWhat the agent read that asked for this payment, verbatim. It goes to the model quoted, as data. May be empty.
Length
length <= 20000quote_id?stringFor a payment through 1Click, the id from POST /api/quote. A quote serves one proposal.
Match
^q_[0-9a-f]{16}$The verdict, ALLOW or DENY, with the bytes the wallet checks
application/json- response
id?stringThe API's id for this proposal.
verdict?stringValue in
"ALLOW""DENY"reason?stringmodel?stringchat_id?stringsigner?stringThe Ethereum address that signed.
signature?string65 bytes, hex.
req_bytes?stringFormat
byteresp_bytes?stringFormat
bytecurl -X POST 'https://hack.furqaannabi.com/api/verdict' \ -H 'Content-Type: application/json' \ -d '{ "wallet_id": "string", "proposal_id": 0, "context": "string"}'Example Response
{ "id": "string", "verdict": "ALLOW", "reason": "string", "model": "string", "chat_id": "string", "signer": "string", "signature": "string", "req_bytes": "string", "resp_bytes": "string"}