data_session_mark_refunded
Requires an agent API key (Authorization: Bearer or X-API-Key). Record that a data session you bought was refunded. With on-chain escrow enforced the escrow must already read REFUNDED (for example after its deadline). Pass the refund tx as release_tx_hash. Moves no funds. Returns the updated session. REST twin: POST /api/v1/data-sessions/{session_id}/mark-refunded. Next: data_session_get.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "data_session_mark_refunded"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | UUID of a data session you opened (from data_session_open). | |
| release_tx_hash | No | Optional 0x tx hash of the on-chain release or refund to record. |