List activity
Lists what happened in the user's wallet and automations, newest first: the agent's trades, its Solana trades and transfers, the user's own swaps, withdrawals, deposits, transfers to deposit addresses and changes to automations. Each item carries the same object its own route returns, so render it by kind. Narrow it with type and origin, and pass nextCursor back as cursor for older items. A deposit or deposit address appears once the user is expected to send to it; one that expired unpaid is only in List deposits or Get a deposit address.
Authentication
Both headers are required.
- Header:
X-Api-Key: YOUR_API_KEY - Header:
Authorization: Bearer YOUR_USER_TOKEN— A user's session token, from Create a session.
Path parameters
userIdstringrequiredYour id for the user: the userId you sent to Create a user. It must be the session's user.
Validation rules
- Pattern
"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
Query parameters
limitintegeroptionalHow many items to return, at most 50.
Validation rules
- Default
20- Minimum
1- Maximum
50
cursorstringoptionalThe nextCursor from the previous page; omit for the newest items.
Validation rules
- Maximum length
256
typeanyOfoptionalKeep only these kinds of item; repeat it for several (type=trade&type=deposit). Omit for every kind.
Show attributes
Keep only these kinds of item; repeat it for several (type=trade&type=deposit). Omit for every kind.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Allowed values
["trade","swap","withdrawal","deposit","deposit_address","automation","solana","solana_sell_many","solana_trade"]
Variant 2 · array
Validation rules
- Minimum items
1- Maximum items
9
Array items · string
Validation rules
- Allowed values
["trade","swap","withdrawal","deposit","deposit_address","automation","solana","solana_sell_many","solana_trade"]
originstringoptionalKeep only trades, and Solana trades and transfers, the agent asked for in a chat (conversation) or in an automation's run (automation, which also keeps changes to automations). The user's own swaps, deposits, deposit addresses and withdrawals are left out when this is set.
Validation rules
- Allowed values
["conversation","automation"]
Request example
Illustrative request. Replace the host, credentials and resource IDs with your own. If a request file is shown, create it from the schema above. Review the requested action before sending it.
curl --request GET 'https://api.example.test/v1/users/YOUR_USER_ID/activity' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Authorization: Bearer YOUR_USER_TOKEN'
Responses
200 A page of activity, and how many approvals are waiting.
A page of activity, and how many approvals are waiting.
application/json · object
dataarrayrequiredThis page of activity, newest first.
Show attributes
This page of activity, newest first.
Validation rules
- Maximum items
50
Array items · oneOf
One thing that happened in the user's wallet or automations. kind names the object it carries, which is the same object that resource's own route returns.
oneOf · 9 variants
Variant 1 · kind: trade
idstring · uuidrequiredThe item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
createdAtstring · date-timerequiredWhen it happened: the request, or the change. The feed is ordered by it.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen it last changed, such as a settlement or a credit.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
kindstringrequiredA trade; read trade.
Validation rules
- Exact value
"trade"
tradeobjectrequiredThe trade the agent asked for, in a chat or in an automation's run.
Show attributes
The trade the agent asked for, in a chat or in an automation's run.
conversationIdstring · uuidrequiredThe conversation in which the agent asked for this trade.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
originoneOfrequiredWhere the trade was asked for: an ordinary chat, or a conversation an automation started.
Show attributes
Where the trade was asked for: an ordinary chat, or a conversation an automation started.
oneOf · 2 variants
Variant 1 · type: conversation
typestringrequiredAn ordinary user-started conversation.
Validation rules
- Exact value
"conversation"
Variant 2 · type: automation
typestringrequiredA conversation an automation created.
Validation rules
- Exact value
"automation"
automationIdstring · uuidrequiredThe automation that created this conversation.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
namestringrequiredThe automation's name at the time this conversation started.
Validation rules
- Minimum length
1- Maximum length
120
titlestring or nullrequiredThe conversation's current title; null for an untitled conversation.
assetIdsobjectrequiredMaps the explicit Intents protocol assets in this trade to opaque Fin holdings identities, for joining portfolio metadata and prices.
Show attributes
Maps the explicit Intents protocol assets in this trade to opaque Fin holdings identities, for joining portfolio metadata and prices.
Validation rules
- propertyNames
{"type":"string","minLength":1,"maxLength":512}
Additional property values
Opaque stable Fin asset identity returned by balances and the transfer catalog.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
approvalobjectoptionalThe request's exact human review, when one was required; absent when it runs under an automation's standing permission.
Show attributes
The request's exact human review, when one was required; absent when it runs under an automation's standing permission.
approvalIdstring · uuidrequiredThe exact single-use review bound to this financial request.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
statusstringrequiredThe recorded human decision, with overdue pending reviews shown as expired; approval alone does not prove execution.
Validation rules
- Allowed values
["pending","approved","denied","expired"]
contractobjectoptionalThe exact reviewed financial terms, when retained and readable.
Show attributes
The exact reviewed financial terms, when retained and readable.
typestringrequiredWhich contract template this is.
Validation rules
- Exact value
"near_intents_transfer"
actionsarrayrequiredThe actions this contract authorizes, executed in order.
Show attributes
The actions this contract authorizes, executed in order.
Validation rules
- Minimum items
1- Maximum items
16
Array items · oneOf
oneOf · 4 variants
Variant 1 · kind: swap
kindstringrequiredExchange one asset for another; custody never leaves the agent wallet.
Validation rules
- Exact value
"swap"
inputanyOfrequiredThe asset this action spends: pinned to one token, or any token the agent wallet holds.
Show attributes
The asset this action spends: pinned to one token, or any token the agent wallet holds.
anyOf · 2 variants
Variant 1 · object
pinnedobjectrequiredThe exact token this asset is pinned to.
Show attributes
The exact token this asset is pinned to.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
Variant 2 · object
anybooleanrequiredAny token the agent wallet holds; the executor picks one at execution.
Validation rules
- Exact value
true
quantityoneOfrequiredHow much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
Show attributes
How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
oneOf · 7 variants
Variant 1 · kind: exact_input_tokens
An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw "5000000". No floating-point arithmetic or bash.
kindstringrequiredSpend an exact amount of the input token.
Validation rules
- Exact value
"exact_input_tokens"
amountRawstringrequiredThe exact input amount, in the input token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: exact_input_value_usd
A USD value of the input token: "$5 worth of USDC" is value "5", never exactly 5 USDC. The host converts it at live prices.
kindstringrequiredSpend a USD-denominated value of the input token.
Validation rules
- Exact value
"exact_input_value_usd"
valuestringrequiredThe USD value to spend, as a decimal string.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$"
Variant 3 · kind: exact_output_tokens
An exact quantity of the output token, scaled by its verified decimals; the host calculates the input.
kindstringrequiredReceive an exact amount of the output token.
Validation rules
- Exact value
"exact_output_tokens"
amountRawstringrequiredThe exact output amount, in the output token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 4 · kind: all_of_input
kindstringrequiredSpend everything the agent wallet holds of the input asset.
Validation rules
- Exact value
"all_of_input"
Variant 5 · kind: fraction_of_input
kindstringrequiredSpend a fraction of the input asset.
Validation rules
- Exact value
"fraction_of_input"
bpsstringrequiredThe fraction to spend, in basis points of the input asset.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 6 · kind: fraction_of_position
A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an exit guard.
kindstringrequiredSell a fraction of this automation's own position in the input asset.
Validation rules
- Exact value
"fraction_of_position"
bpsstringrequiredThe fraction to sell, in basis points of this automation's own position; 10000 is all of it.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 7 · kind: gain_of_position
Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every exit guard and a pinned output other than that token.
kindstringrequiredSell only the gain on this automation's own position in the input asset.
Validation rules
- Exact value
"gain_of_position"
outputanyOfrequiredThe asset this action produces: pinned to one token, or left open.
Show attributes
The asset this action produces: pinned to one token, or left open.
anyOf · 2 variants
Variant 1 · object
pinnedobjectrequiredThe exact token this asset is pinned to.
Show attributes
The exact token this asset is pinned to.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
Variant 2 · object
anybooleanrequiredAny token the agent wallet holds; the executor picks one at execution.
Validation rules
- Exact value
true
exitoneOfoptionalOptional exit guard: this action sells only when the asset's price in its output token crosses the automation's own average cost by the approved amount.
Show attributes
Optional exit guard: this action sells only when the asset's price in its output token crosses the automation's own average cost by the approved amount.
oneOf · 3 variants
Variant 1 · kind: take_profit
A take-profit exit: sell once the price is up this much on average cost.
kindstringrequiredSell when the asset is this far ABOVE the automation's average cost.
Validation rules
- Exact value
"take_profit"
gainBpsstringrequiredHow far above the average cost the price must be, in basis points.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 2 · kind: stop_loss
A stop-loss exit: sell once the price is down this much on average cost.
kindstringrequiredSell when the asset is this far BELOW the automation's average cost.
Validation rules
- Exact value
"stop_loss"
lossBpsstringrequiredHow far below the average cost the price must be, in basis points.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 3 · kind: harvest_every
A scheduled harvest: only on a gain_of_position exit selling a curated yield vault's share token (earn_vaults). Every days days it sells only the gain, if there is any, and the automation keeps running.
kindstringrequiredTake profits on a schedule: sell only the gain every this many days, counted from the last harvest that settled, or from the first deposit that settled.
Validation rules
- Exact value
"harvest_every"
daysstringrequiredHow many days apart harvests are, 7 to 365, as a decimal string: "7" weekly, "30" monthly.
Validation rules
- Pattern
"^[1-9]\\d{0,2}$"
Variant 2 · kind: withdraw_to_owner
kindstringrequiredReturn an asset to the account that owns the agent wallet.
Validation rules
- Exact value
"withdraw_to_owner"
inputanyOfrequiredThe asset this action spends: pinned to one token, or any token the agent wallet holds.
Show attributes
The asset this action spends: pinned to one token, or any token the agent wallet holds.
anyOf · 2 variants
Variant 1 · object
pinnedobjectrequiredThe exact token this asset is pinned to.
Show attributes
The exact token this asset is pinned to.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
Variant 2 · object
anybooleanrequiredAny token the agent wallet holds; the executor picks one at execution.
Validation rules
- Exact value
true
quantityoneOfrequiredHow much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
Show attributes
How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
oneOf · 7 variants
Variant 1 · kind: exact_input_tokens
An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw "5000000". No floating-point arithmetic or bash.
kindstringrequiredSpend an exact amount of the input token.
Validation rules
- Exact value
"exact_input_tokens"
amountRawstringrequiredThe exact input amount, in the input token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: exact_input_value_usd
A USD value of the input token: "$5 worth of USDC" is value "5", never exactly 5 USDC. The host converts it at live prices.
kindstringrequiredSpend a USD-denominated value of the input token.
Validation rules
- Exact value
"exact_input_value_usd"
valuestringrequiredThe USD value to spend, as a decimal string.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$"
Variant 3 · kind: exact_output_tokens
An exact quantity of the output token, scaled by its verified decimals; the host calculates the input.
kindstringrequiredReceive an exact amount of the output token.
Validation rules
- Exact value
"exact_output_tokens"
amountRawstringrequiredThe exact output amount, in the output token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 4 · kind: all_of_input
kindstringrequiredSpend everything the agent wallet holds of the input asset.
Validation rules
- Exact value
"all_of_input"
Variant 5 · kind: fraction_of_input
kindstringrequiredSpend a fraction of the input asset.
Validation rules
- Exact value
"fraction_of_input"
bpsstringrequiredThe fraction to spend, in basis points of the input asset.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 6 · kind: fraction_of_position
A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an exit guard.
kindstringrequiredSell a fraction of this automation's own position in the input asset.
Validation rules
- Exact value
"fraction_of_position"
bpsstringrequiredThe fraction to sell, in basis points of this automation's own position; 10000 is all of it.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 7 · kind: gain_of_position
Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every exit guard and a pinned output other than that token.
kindstringrequiredSell only the gain on this automation's own position in the input asset.
Validation rules
- Exact value
"gain_of_position"
outputanyOfrequiredThe asset this action produces: pinned to one token, or left open.
Show attributes
The asset this action produces: pinned to one token, or left open.
anyOf · 2 variants
Variant 1 · object
pinnedobjectrequiredThe exact token this asset is pinned to.
Show attributes
The exact token this asset is pinned to.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
Variant 2 · object
anybooleanrequiredAny token the agent wallet holds; the executor picks one at execution.
Validation rules
- Exact value
true
Variant 3 · kind: withdraw_transfer
kindstringrequiredPay the exact approved destination through the provider’s chain or Intents transfer route.
Validation rules
- Exact value
"withdraw_transfer"
inputanyOfrequiredThe asset this action spends: pinned to one token, or any token the agent wallet holds.
Show attributes
The asset this action spends: pinned to one token, or any token the agent wallet holds.
anyOf · 2 variants
Variant 1 · object
pinnedobjectrequiredThe exact token this asset is pinned to.
Show attributes
The exact token this asset is pinned to.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
Variant 2 · object
anybooleanrequiredAny token the agent wallet holds; the executor picks one at execution.
Validation rules
- Exact value
true
quantityoneOfrequiredHow much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
Show attributes
How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
oneOf · 7 variants
Variant 1 · kind: exact_input_tokens
An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw "5000000". No floating-point arithmetic or bash.
kindstringrequiredSpend an exact amount of the input token.
Validation rules
- Exact value
"exact_input_tokens"
amountRawstringrequiredThe exact input amount, in the input token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: exact_input_value_usd
A USD value of the input token: "$5 worth of USDC" is value "5", never exactly 5 USDC. The host converts it at live prices.
kindstringrequiredSpend a USD-denominated value of the input token.
Validation rules
- Exact value
"exact_input_value_usd"
valuestringrequiredThe USD value to spend, as a decimal string.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$"
Variant 3 · kind: exact_output_tokens
An exact quantity of the output token, scaled by its verified decimals; the host calculates the input.
kindstringrequiredReceive an exact amount of the output token.
Validation rules
- Exact value
"exact_output_tokens"
amountRawstringrequiredThe exact output amount, in the output token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 4 · kind: all_of_input
kindstringrequiredSpend everything the agent wallet holds of the input asset.
Validation rules
- Exact value
"all_of_input"
Variant 5 · kind: fraction_of_input
kindstringrequiredSpend a fraction of the input asset.
Validation rules
- Exact value
"fraction_of_input"
bpsstringrequiredThe fraction to spend, in basis points of the input asset.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 6 · kind: fraction_of_position
A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an exit guard.
kindstringrequiredSell a fraction of this automation's own position in the input asset.
Validation rules
- Exact value
"fraction_of_position"
bpsstringrequiredThe fraction to sell, in basis points of this automation's own position; 10000 is all of it.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 7 · kind: gain_of_position
Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every exit guard and a pinned output other than that token.
kindstringrequiredSell only the gain on this automation's own position in the input asset.
Validation rules
- Exact value
"gain_of_position"
outputanyOfrequiredThe asset this action produces: pinned to one token, or left open.
Show attributes
The asset this action produces: pinned to one token, or left open.
anyOf · 2 variants
Variant 1 · object
pinnedobjectrequiredThe exact token this asset is pinned to.
Show attributes
The exact token this asset is pinned to.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
Variant 2 · object
anybooleanrequiredAny token the agent wallet holds; the executor picks one at execution.
Validation rules
- Exact value
true
recipientobjectrequiredThe exact approved payout rail, network and address.
Show attributes
The exact approved payout rail, network and address.
railstringrequiredA native blockchain transfer or a signed transfer within an Intents ledger.
Validation rules
- Allowed values
["chain","intents"]
networkstringrequiredExact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain.
Validation rules
- Pattern
"^[a-z][a-z0-9-]{0,63}$"
addressstringrequiredExact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
memonullrequiredStandalone routing memos are unsupported; routing must be encoded in the approved address.
minimumReceivedRawanyOfrequiredMinimum acceptable payout in output-asset atomic units, or null when the approved all-in loss bound alone sets the floor.
Show attributes
Minimum acceptable payout in output-asset atomic units, or null when the approved all-in loss bound alone sets the floor.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
maxFeeRawanyOfrequiredOptional separate withdrawal fee cap in output-asset atomic units; null means undisclosed, while all-in loss and minimum receive remain enforced.
Show attributes
Optional separate withdrawal fee cap in output-asset atomic units; null means undisclosed, while all-in loss and minimum receive remain enforced.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
Variant 4 · kind: send
kindstringrequiredNot executable, and refused in new contracts: pay an address with withdraw_transfer.
Validation rules
- Exact value
"send"
inputanyOfrequiredThe asset this action spends: pinned to one token, or any token the agent wallet holds.
Show attributes
The asset this action spends: pinned to one token, or any token the agent wallet holds.
anyOf · 2 variants
Variant 1 · object
pinnedobjectrequiredThe exact token this asset is pinned to.
Show attributes
The exact token this asset is pinned to.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
Variant 2 · object
anybooleanrequiredAny token the agent wallet holds; the executor picks one at execution.
Validation rules
- Exact value
true
quantityoneOfrequiredHow much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
Show attributes
How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
oneOf · 7 variants
Variant 1 · kind: exact_input_tokens
An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw "5000000". No floating-point arithmetic or bash.
kindstringrequiredSpend an exact amount of the input token.
Validation rules
- Exact value
"exact_input_tokens"
amountRawstringrequiredThe exact input amount, in the input token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: exact_input_value_usd
A USD value of the input token: "$5 worth of USDC" is value "5", never exactly 5 USDC. The host converts it at live prices.
kindstringrequiredSpend a USD-denominated value of the input token.
Validation rules
- Exact value
"exact_input_value_usd"
valuestringrequiredThe USD value to spend, as a decimal string.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$"
Variant 3 · kind: exact_output_tokens
An exact quantity of the output token, scaled by its verified decimals; the host calculates the input.
kindstringrequiredReceive an exact amount of the output token.
Validation rules
- Exact value
"exact_output_tokens"
amountRawstringrequiredThe exact output amount, in the output token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 4 · kind: all_of_input
kindstringrequiredSpend everything the agent wallet holds of the input asset.
Validation rules
- Exact value
"all_of_input"
Variant 5 · kind: fraction_of_input
kindstringrequiredSpend a fraction of the input asset.
Validation rules
- Exact value
"fraction_of_input"
bpsstringrequiredThe fraction to spend, in basis points of the input asset.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 6 · kind: fraction_of_position
A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an exit guard.
kindstringrequiredSell a fraction of this automation's own position in the input asset.
Validation rules
- Exact value
"fraction_of_position"
bpsstringrequiredThe fraction to sell, in basis points of this automation's own position; 10000 is all of it.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 7 · kind: gain_of_position
Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every exit guard and a pinned output other than that token.
kindstringrequiredSell only the gain on this automation's own position in the input asset.
Validation rules
- Exact value
"gain_of_position"
outputanyOfrequiredThe asset this action produces: pinned to one token, or left open.
Show attributes
The asset this action produces: pinned to one token, or left open.
anyOf · 2 variants
Variant 1 · object
pinnedobjectrequiredThe exact token this asset is pinned to.
Show attributes
The exact token this asset is pinned to.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
Variant 2 · object
anybooleanrequiredAny token the agent wallet holds; the executor picks one at execution.
Validation rules
- Exact value
true
recipientobjectrequiredThe pinned destination this action pays.
Show attributes
The pinned destination this action pays.
chainstringrequiredWhich chain the destination address is on.
Validation rules
- Minimum length
1- Maximum length
32
addressstringrequiredThe destination address on that chain.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,128}$"
validUntilstring · date-timerequiredWhen this contract's authority expires.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
maxExecutionsintegerrequiredHow many times this contract may be executed before it is exhausted.
Validation rules
- Minimum
1- Maximum
10000
maxTotalInputarrayoptionalOptional total cap on what all executions together may spend, per input token, in raw units. A $500 budget paid in USDC is 500 USDC. Every action input must be pinned and capped.
Show attributes
Optional total cap on what all executions together may spend, per input token, in raw units. A $500 budget paid in USDC is 500 USDC. Every action input must be pinned and capped.
Validation rules
- Minimum items
1- Maximum items
16
Array items · object
One capped input token and its total spend ceiling.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
amountRawstringrequiredThe most this contract may spend of this token in total, across every execution, in the token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
boundsobjectrequiredThe value-loss and signature-lifetime limits every execution must respect.
Show attributes
The value-loss and signature-lifetime limits every execution must respect.
maxValueLossBpsstringrequiredThe most value an execution may give up to price movement and fees together, in basis points; 0 allows no loss.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
maxSignatureLifetimeSecondsintegerrequiredExplicit maximum lifetime of each released transfer signature, in seconds. 1Click confidential swaps require up to 259500 seconds (72 hours 5 minutes). This does not extend the execution window or approval validity.
Validation rules
- Minimum
1- Maximum
259500
executionanyOfoptionalOptional explicit recovery authority, signed with these exact actions and bounds; omitted on historical approvals.
Show attributes
Optional explicit recovery authority, signed with these exact actions and bounds; omitted on historical approvals.
anyOf · 2 variants
Variant 1 · object
modestringrequiredOrdered actions run in approved order. Parallel-independent actions run up to four concurrently after the complete initially funded request is reserved.
Validation rules
- Allowed values
["ordered","parallel_independent"]
maxPreparationAttemptsintegerrequiredThe maximum unsigned preparation attempts for each approved action, including its first attempt.
Validation rules
- Minimum
1- Maximum
3
dispatchWindowSecondsintegerrequiredThe maximum dispatch window in seconds for this operation, from when its approval opened: exactly 1200 for a new chat request, and up to its signed deadline for an automation's grant. Closing dispatch never proves a submitted transfer did not move; observation continues.
Validation rules
- Minimum
60- Maximum
86400
Variant 2 · object
modestringrequiredValidation rules
- Exact value
"dependency_graph"
dependenciesarrayrequiredOne row per requested action, listing its sorted unique predecessor action indices. A successor requires confirmed predecessor settlement. Every action must be funded from initial holdings.
Show attributes
One row per requested action, listing its sorted unique predecessor action indices. A successor requires confirmed predecessor settlement. Every action must be funded from initial holdings.
Validation rules
- Minimum items
1- Maximum items
16
Array items · array
Validation rules
- Maximum items
16
Array items · integer
Validation rules
- Minimum
0- Maximum
15
maxPreparationAttemptsintegerrequiredThe maximum unsigned preparation attempts for each approved action, including its first attempt.
Validation rules
- Minimum
1- Maximum
3
dispatchWindowSecondsintegerrequiredThe maximum dispatch window in seconds for this operation, from when its approval opened: exactly 1200 for a new chat request, and up to its signed deadline for an automation's grant. Closing dispatch never proves a submitted transfer did not move; observation continues.
Validation rules
- Minimum
60- Maximum
86400
expiresAtstring · date-timeoptionalWhen the exact review ceases to authorize an execution claim.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
executionRestrictionstringoptionalThe immutable restriction that prevents automatic signing under this approval.
Validation rules
- Exact value
"signing_disabled"
automationRunIdstringoptionalThe automation run that asked for this trade, when one did.
Validation rules
- Minimum length
1- Maximum length
160
requestanyOfrequiredWhat the agent asked for: the actions and their limits, as swaps and payouts to the destination the user approved, the same as Get a trade returns. A leg's actionIndex names its action, so a payout can be shown as one. null only for old trades recorded without it.
Show attributes
What the agent asked for: the actions and their limits, as swaps and payouts to the destination the user approved, the same as Get a trade returns. A leg's actionIndex names its action, so a payout can be shown as one. null only for old trades recorded without it.
anyOf · 2 variants
Variant 1 · object
actionsarrayrequiredThe complete ordered financial actions proposed for this execution, with concrete assets and exact quantity rules.
Show attributes
The complete ordered financial actions proposed for this execution, with concrete assets and exact quantity rules.
Validation rules
- Minimum items
1- Maximum items
16
Array items · oneOf
oneOf · 3 variants
Variant 1 · kind: swap
kindstringrequiredExchange one asset for another; custody never leaves the agent wallet.
Validation rules
- Exact value
"swap"
inputobjectrequiredThe concrete asset this request spends; it must match the approved action at this position.
Show attributes
The concrete asset this request spends; it must match the approved action at this position.
pinnedobjectrequiredThe exact input asset's token id and decimals.
Show attributes
The exact input asset's token id and decimals.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
quantityoneOfrequiredHow much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
Show attributes
How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
oneOf · 7 variants
Variant 1 · kind: exact_input_tokens
An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw "5000000". No floating-point arithmetic or bash.
kindstringrequiredSpend an exact amount of the input token.
Validation rules
- Exact value
"exact_input_tokens"
amountRawstringrequiredThe exact input amount, in the input token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: exact_input_value_usd
A USD value of the input token: "$5 worth of USDC" is value "5", never exactly 5 USDC. The host converts it at live prices.
kindstringrequiredSpend a USD-denominated value of the input token.
Validation rules
- Exact value
"exact_input_value_usd"
valuestringrequiredThe USD value to spend, as a decimal string.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$"
Variant 3 · kind: exact_output_tokens
An exact quantity of the output token, scaled by its verified decimals; the host calculates the input.
kindstringrequiredReceive an exact amount of the output token.
Validation rules
- Exact value
"exact_output_tokens"
amountRawstringrequiredThe exact output amount, in the output token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 4 · kind: all_of_input
kindstringrequiredSpend everything the agent wallet holds of the input asset.
Validation rules
- Exact value
"all_of_input"
Variant 5 · kind: fraction_of_input
kindstringrequiredSpend a fraction of the input asset.
Validation rules
- Exact value
"fraction_of_input"
bpsstringrequiredThe fraction to spend, in basis points of the input asset.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 6 · kind: fraction_of_position
A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an exit guard.
kindstringrequiredSell a fraction of this automation's own position in the input asset.
Validation rules
- Exact value
"fraction_of_position"
bpsstringrequiredThe fraction to sell, in basis points of this automation's own position; 10000 is all of it.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 7 · kind: gain_of_position
Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every exit guard and a pinned output other than that token.
kindstringrequiredSell only the gain on this automation's own position in the input asset.
Validation rules
- Exact value
"gain_of_position"
outputobjectrequiredThe concrete asset this request produces; it must match the approved action at this position.
Show attributes
The concrete asset this request produces; it must match the approved action at this position.
pinnedobjectrequiredThe exact output asset's token id and decimals.
Show attributes
The exact output asset's token id and decimals.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
Variant 2 · kind: withdraw_to_owner
kindstringrequiredReturn an asset to the account that owns the agent wallet.
Validation rules
- Exact value
"withdraw_to_owner"
inputobjectrequiredThe concrete asset this request spends; it must match the approved action at this position.
Show attributes
The concrete asset this request spends; it must match the approved action at this position.
pinnedobjectrequiredThe exact input asset's token id and decimals.
Show attributes
The exact input asset's token id and decimals.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
quantityoneOfrequiredHow much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
Show attributes
How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
oneOf · 7 variants
Variant 1 · kind: exact_input_tokens
An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw "5000000". No floating-point arithmetic or bash.
kindstringrequiredSpend an exact amount of the input token.
Validation rules
- Exact value
"exact_input_tokens"
amountRawstringrequiredThe exact input amount, in the input token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: exact_input_value_usd
A USD value of the input token: "$5 worth of USDC" is value "5", never exactly 5 USDC. The host converts it at live prices.
kindstringrequiredSpend a USD-denominated value of the input token.
Validation rules
- Exact value
"exact_input_value_usd"
valuestringrequiredThe USD value to spend, as a decimal string.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$"
Variant 3 · kind: exact_output_tokens
An exact quantity of the output token, scaled by its verified decimals; the host calculates the input.
kindstringrequiredReceive an exact amount of the output token.
Validation rules
- Exact value
"exact_output_tokens"
amountRawstringrequiredThe exact output amount, in the output token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 4 · kind: all_of_input
kindstringrequiredSpend everything the agent wallet holds of the input asset.
Validation rules
- Exact value
"all_of_input"
Variant 5 · kind: fraction_of_input
kindstringrequiredSpend a fraction of the input asset.
Validation rules
- Exact value
"fraction_of_input"
bpsstringrequiredThe fraction to spend, in basis points of the input asset.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 6 · kind: fraction_of_position
A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an exit guard.
kindstringrequiredSell a fraction of this automation's own position in the input asset.
Validation rules
- Exact value
"fraction_of_position"
bpsstringrequiredThe fraction to sell, in basis points of this automation's own position; 10000 is all of it.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 7 · kind: gain_of_position
Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every exit guard and a pinned output other than that token.
kindstringrequiredSell only the gain on this automation's own position in the input asset.
Validation rules
- Exact value
"gain_of_position"
outputobjectrequiredThe concrete asset this request produces; it must match the approved action at this position.
Show attributes
The concrete asset this request produces; it must match the approved action at this position.
pinnedobjectrequiredThe exact output asset's token id and decimals.
Show attributes
The exact output asset's token id and decimals.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
Variant 3 · kind: withdraw_transfer
kindstringrequiredPay the exact approved destination through the provider’s chain or Intents transfer route.
Validation rules
- Exact value
"withdraw_transfer"
inputobjectrequiredThe concrete asset this request spends; it must match the approved action at this position.
Show attributes
The concrete asset this request spends; it must match the approved action at this position.
pinnedobjectrequiredThe exact input asset's token id and decimals.
Show attributes
The exact input asset's token id and decimals.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
quantityoneOfrequiredHow much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
Show attributes
How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it.
oneOf · 7 variants
Variant 1 · kind: exact_input_tokens
An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw "5000000". No floating-point arithmetic or bash.
kindstringrequiredSpend an exact amount of the input token.
Validation rules
- Exact value
"exact_input_tokens"
amountRawstringrequiredThe exact input amount, in the input token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: exact_input_value_usd
A USD value of the input token: "$5 worth of USDC" is value "5", never exactly 5 USDC. The host converts it at live prices.
kindstringrequiredSpend a USD-denominated value of the input token.
Validation rules
- Exact value
"exact_input_value_usd"
valuestringrequiredThe USD value to spend, as a decimal string.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$"
Variant 3 · kind: exact_output_tokens
An exact quantity of the output token, scaled by its verified decimals; the host calculates the input.
kindstringrequiredReceive an exact amount of the output token.
Validation rules
- Exact value
"exact_output_tokens"
amountRawstringrequiredThe exact output amount, in the output token's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 4 · kind: all_of_input
kindstringrequiredSpend everything the agent wallet holds of the input asset.
Validation rules
- Exact value
"all_of_input"
Variant 5 · kind: fraction_of_input
kindstringrequiredSpend a fraction of the input asset.
Validation rules
- Exact value
"fraction_of_input"
bpsstringrequiredThe fraction to spend, in basis points of the input asset.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 6 · kind: fraction_of_position
A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an exit guard.
kindstringrequiredSell a fraction of this automation's own position in the input asset.
Validation rules
- Exact value
"fraction_of_position"
bpsstringrequiredThe fraction to sell, in basis points of this automation's own position; 10000 is all of it.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
Variant 7 · kind: gain_of_position
Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every exit guard and a pinned output other than that token.
kindstringrequiredSell only the gain on this automation's own position in the input asset.
Validation rules
- Exact value
"gain_of_position"
outputobjectrequiredThe concrete asset this request produces; it must match the approved action at this position.
Show attributes
The concrete asset this request produces; it must match the approved action at this position.
pinnedobjectrequiredThe exact output asset's token id and decimals.
Show attributes
The exact output asset's token id and decimals.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
recipientobjectrequiredThe exact approved payout rail, network and address.
Show attributes
The exact approved payout rail, network and address.
railstringrequiredA native blockchain transfer or a signed transfer within an Intents ledger.
Validation rules
- Allowed values
["chain","intents"]
networkstringrequiredExact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain.
Validation rules
- Pattern
"^[a-z][a-z0-9-]{0,63}$"
addressstringrequiredExact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
memonullrequiredStandalone routing memos are unsupported; routing must be encoded in the approved address.
minimumReceivedRawanyOfrequiredMinimum acceptable payout in output-asset atomic units, or null when the approved all-in loss bound alone sets the floor.
Show attributes
Minimum acceptable payout in output-asset atomic units, or null when the approved all-in loss bound alone sets the floor.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
maxFeeRawanyOfrequiredOptional separate withdrawal fee cap in output-asset atomic units; null means undisclosed, while all-in loss and minimum receive remain enforced.
Show attributes
Optional separate withdrawal fee cap in output-asset atomic units; null means undisclosed, while all-in loss and minimum receive remain enforced.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
boundsobjectrequiredThe explicit loss and signature-lifetime limits; these must exactly match the approved grant.
Show attributes
The explicit loss and signature-lifetime limits; these must exactly match the approved grant.
maxValueLossBpsstringrequiredThe most value an execution may give up to price movement and fees together, in basis points; 0 allows no loss.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,4})$"
maxSignatureLifetimeSecondsintegerrequiredExplicit maximum lifetime of each released transfer signature, in seconds. 1Click confidential swaps require up to 259500 seconds (72 hours 5 minutes). This does not extend the execution window or approval validity.
Validation rules
- Minimum
1- Maximum
259500
executionanyOfoptionalRequired on every new chat proposal: the exact execution limits proposed for approval. Copy existing signed grants unchanged; historical approvals and standing grants with this field omitted retain their original execution behavior.
Show attributes
Required on every new chat proposal: the exact execution limits proposed for approval. Copy existing signed grants unchanged; historical approvals and standing grants with this field omitted retain their original execution behavior.
anyOf · 2 variants
Variant 1 · object
modestringrequiredOrdered actions run in approved order. Parallel-independent actions run up to four concurrently after the complete initially funded request is reserved.
Validation rules
- Allowed values
["ordered","parallel_independent"]
maxPreparationAttemptsintegerrequiredThe maximum unsigned preparation attempts for each approved action, including its first attempt.
Validation rules
- Minimum
1- Maximum
3
dispatchWindowSecondsintegerrequiredThe maximum dispatch window in seconds for this operation, from when its approval opened: exactly 1200 for a new chat request, and up to its signed deadline for an automation's grant. Closing dispatch never proves a submitted transfer did not move; observation continues.
Validation rules
- Minimum
60- Maximum
86400
Variant 2 · object
modestringrequiredValidation rules
- Exact value
"dependency_graph"
dependenciesarrayrequiredOne row per requested action, listing its sorted unique predecessor action indices. A successor requires confirmed predecessor settlement. Every action must be funded from initial holdings.
Show attributes
One row per requested action, listing its sorted unique predecessor action indices. A successor requires confirmed predecessor settlement. Every action must be funded from initial holdings.
Validation rules
- Minimum items
1- Maximum items
16
Array items · array
Validation rules
- Maximum items
16
Array items · integer
Validation rules
- Minimum
0- Maximum
15
maxPreparationAttemptsintegerrequiredThe maximum unsigned preparation attempts for each approved action, including its first attempt.
Validation rules
- Minimum
1- Maximum
3
dispatchWindowSecondsintegerrequiredThe maximum dispatch window in seconds for this operation, from when its approval opened: exactly 1200 for a new chat request, and up to its signed deadline for an automation's grant. Closing dispatch never proves a submitted transfer did not move; observation continues.
Validation rules
- Minimum
60- Maximum
86400
Variant 2 · null
legsarrayrequiredEvery leg of the frozen plan in plan order, including untouched legs without claims or receipts; empty before a plan exists.
Show attributes
Every leg of the frozen plan in plan order, including untouched legs without claims or receipts; empty before a plan exists.
Validation rules
- Maximum items
16
Array items · object
indexintegerrequiredThis leg's position in the frozen plan, counting from zero.
Validation rules
- Minimum
0- Maximum
15
actionIndexintegerrequiredWhich of the trade's request.actions this leg carries out, counting from zero: a swap, or a payout to the user's main wallet or to an address they approved.
Validation rules
- Minimum
0- Maximum
15
inputPriceUsdstringoptionalThe USD price of one whole input token that the plan was checked against, as plain decimal text; absent on plans that recorded none.
Validation rules
- Maximum length
80- Pattern
"^(0|[1-9]\\d*)(\\.\\d+)?$"
outputPriceUsdstringoptionalThe USD price of one whole output token that the plan was checked against, as plain decimal text; absent on plans that recorded none.
Validation rules
- Maximum length
80- Pattern
"^(0|[1-9]\\d*)(\\.\\d+)?$"
inputobjectoptionalThe frozen input asset and requested amount when that side was fixed; not measured spend.
Show attributes
The frozen input asset and requested amount when that side was fixed; not measured spend.
tokenIdstringrequiredThe asset's NEP-141 token id.
Validation rules
- Minimum length
1- Maximum length
256
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
amountRawstringoptionalThe amount, in the token's smallest unit, when it is known.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
outputobjectoptionalThe frozen output asset and requested amount when that side was fixed; not measured proceeds.
Show attributes
The frozen output asset and requested amount when that side was fixed; not measured proceeds.
tokenIdstringrequiredThe asset's NEP-141 token id.
Validation rules
- Minimum length
1- Maximum length
256
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
amountRawstringoptionalThe amount, in the token's smallest unit, when it is known.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
minimumOutputRawstringoptionalThe minimum output required by an exact-input leg, in the output asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
maximumInputRawstringoptionalThe maximum input permitted by an exact-output leg, in the input asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
stagestringoptionalThe stage derived from the persisted claim while it has no terminal receipt; absent for untouched planned legs.
Validation rules
- Allowed values
["checking","retrying","quoting","signed","confirming","unresolved"]
legIdstring · uuidoptionalThe actual claim's durable ID; absent when this planned leg was never attempted.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
receiptoneOfoptionalThe retained terminal evidence for the actual leg; untouched planned legs have no receipt.
Show attributes
The retained terminal evidence for the actual leg; untouched planned legs have no receipt.
oneOf · 3 variants
Variant 1 · object
approvalIdstring · uuidrequiredThe approval's id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
legIdstring · uuidrequiredWhich leg of the plan this receipt settles.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
indexintegerrequiredThis leg's position within the plan, counting from zero.
Validation rules
- Minimum
0- Maximum
15
operationIdstring · uuidoptionalThe durable financial request this evidence belongs to.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
occurrenceIdstringoptionalThe archived event's original identity, retained verbatim; current receipts use operationId.
Validation rules
- Minimum length
1- Maximum length
160
statestringrequiredThe leg settled: its output asset moved as planned.
Validation rules
- Exact value
"settled"
outputobjectrequiredWhat the leg produced.
Show attributes
What the leg produced.
tokenIdstringrequiredThe asset's NEP-141 token id.
Validation rules
- Minimum length
1- Maximum length
256
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
amountRawstringoptionalThe amount, in the token's smallest unit, when it is known.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · object
approvalIdstring · uuidrequiredThe approval's id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
legIdstring · uuidrequiredWhich leg of the plan this receipt settles.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
indexintegerrequiredThis leg's position within the plan, counting from zero.
Validation rules
- Minimum
0- Maximum
15
operationIdstring · uuidoptionalThe durable financial request this evidence belongs to.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
occurrenceIdstringoptionalThe archived event's original identity, retained verbatim; current receipts use operationId.
Validation rules
- Minimum length
1- Maximum length
160
statestringrequiredThe leg did not settle and its input asset was returned.
Validation rules
- Exact value
"refunded"
refundobjectrequiredWhat was returned.
Show attributes
What was returned.
tokenIdstringrequiredThe asset's NEP-141 token id.
Validation rules
- Minimum length
1- Maximum length
256
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
amountRawstringoptionalThe amount, in the token's smallest unit, when it is known.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 3 · object
approvalIdstring · uuidrequiredThe approval's id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
legIdstring · uuidrequiredWhich leg of the plan this receipt settles.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
indexintegerrequiredThis leg's position within the plan, counting from zero.
Validation rules
- Minimum
0- Maximum
15
operationIdstring · uuidoptionalThe durable financial request this evidence belongs to.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
occurrenceIdstringoptionalThe archived event's original identity, retained verbatim; current receipts use operationId.
Validation rules
- Minimum length
1- Maximum length
160
statestringrequiredThe leg did not settle. Most reasons mean it never reached the provider; rejected means it did and was refused there — see reason.
Validation rules
- Exact value
"not_executed"
reasonstringoptionalWhy nothing executed: signing_disabled when automatic signing was off, signing_failed when signing itself failed, rejected when the provider refused the submission outright (it did reach the provider), expired when the leg's own signing/deposit window elapsed before a terminal fact arrived, or failed otherwise. Optional so receipts written before the reason was carried still parse.
Validation rules
- Allowed values
["signing_disabled","signing_failed","rejected","expired","failed"]
unsignedBystringoptionalPresent with signing_failed on an Agent API wallet's leg when the NEAR Intents Agent API, the wallet's signer, released no signature for it: it refused the request, or its own history proves it released none. Nothing moved.
Validation rules
- Exact value
"agent_api"
resultobjectoptionalThe persisted outcome, updated by conclusive receipts; absent while no outcome exists, including denied or expired preparation.
Show attributes
The persisted outcome, updated by conclusive receipts; absent while no outcome exists, including denied or expired preparation.
statusstringrequiredThe canonical financial outcome projected for display; refused requests appear as denied, pending is unresolved and partial means only part executed.
Validation rules
- Allowed values
["completed","failed","denied","unverified","pending","partial","no_trade","settled","refunded","not_executed"]
reasonstringoptionalPresent when automatic signing was disabled for the reported non-execution.
Validation rules
- Exact value
"signing_disabled"
stoppedobjectoptionalPresent only on a partial result whose run refused a later leg before it was claimed: the planned action it stopped on and the bounded reason it never started.
Show attributes
Present only on a partial result whose run refused a later leg before it was claimed: the planned action it stopped on and the bounded reason it never started.
indexintegerrequiredThe leg's zero-based position in the frozen plan.
Validation rules
- Minimum
0- Maximum
15
reasonstringrequiredThe bounded category the stopped leg was refused with; no provider text, account details or amounts.
Validation rules
- Allowed values
["lineage_unavailable","consent_invalid","allowance_exhausted","spend_cap_reached","position_unknown","exit_not_reached","selection_mismatch","action_mismatch","request_frozen","insufficient_funds","evidence_unavailable","inventory_stale","plan_conflict","leg_order","quote_invalid","payload_invalid","account_busy","expired","credentials_unavailable","execution_paused","automation_held","authority_withdrawn","perps_disabled","prediction_disabled","not_available_in_region","no_account","withdrawal_too_small","withdrawal_reserve_required","nothing_freed","order_invalid","route_unsupported","route_changed","solana_disabled","token_unpriced","token_mismatch","token_freezable","token_transfer_hook","token_permanent_delegate","token_non_transferable","token_default_frozen","token_transfer_fee","token_pausable","token_unknown_extension","token_not_sellable","route_invalid","loss_bound_exceeded","reserve_required","buy_too_small","swap_already_landed","solana_unavailable"]
messagestringoptionalThe host's fixed explanation for a refused request, when present; never raw provider text.
Validation rules
- Maximum length
280
legsarrayrequiredThe actual legs represented by this outcome; untouched planned legs are not fabricated as results.
Show attributes
The actual legs represented by this outcome; untouched planned legs are not fabricated as results.
Validation rules
- Maximum items
16
Array items · object
indexintegerrequiredThe reported leg's position in the frozen plan, counting from zero.
Validation rules
- Minimum
0- Maximum
15
statestringrequiredThe retained execution or settlement state for this reported leg.
Validation rules
- Allowed values
["claimed","signed","uncertain","settled","refunded","not_executed"]
runningbooleanrequiredTrue when the trade has an execution claim and no current outcome; it does not prove a process is still running.
endedbooleanrequiredTrue when no outcome is available and the trade is uncertain, denied or expired. Later receipts may resolve uncertainty; this does not assert that settlement is final.
Variant 2 · kind: swap
idstring · uuidrequiredThe item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
createdAtstring · date-timerequiredWhen it happened: the request, or the change. The feed is ordered by it.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen it last changed, such as a settlement or a credit.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
kindstringrequiredA swap the user made in the agent wallet with Swap tokens; read swap.
Validation rules
- Exact value
"swap"
swapobjectrequiredA swap in the agent wallet: its terms, its status, and the evidence behind it.
Show attributes
A swap in the agent wallet: its terms, its status, and the evidence behind it.
idstring · uuidrequiredThe swap's id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
termsobjectrequiredThe terms the user signed.
Show attributes
The terms the user signed.
sellAssetIdstringrequiredThe asset to sell from the agent wallet: an assetId from Get balances.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
amountRawstringrequiredThe exact amount to sell, in the sold asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
buyAssetIdstringrequiredThe asset to buy: an id from List supported assets. It stays in the agent wallet.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
maxValueLossBpsintegerrequiredThe most the swap may lose in total, fees and price movement included, in basis points (100 = 1%), from 1 to 300.
Validation rules
- Minimum
1- Maximum
300
minimumReceivedRawstringrequiredThe least the agent wallet receives of the bought asset, in its smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
statusstringrequiredpending until it starts, processing while it runs, then completed (the bought asset is in the agent wallet), refunded (the provider sent the sold asset back to the agent wallet) or failed (nothing was swapped; failureReason says why). denied and expired mean the request was refused or its signature ran out before it started. uncertain means the result could not be confirmed yet: never send a replacement, keep checking. completed, refunded, failed, denied and expired are final.
Validation rules
- Allowed values
["pending","processing","completed","refunded","failed","denied","expired","uncertain"]
failureReasonanyOfrequiredWhen status is failed, why; otherwise null. insufficient_funds: the wallet did not hold the amount when the swap started. quote_rejected: the price at execution failed its checks, or would have received less than terms.minimumReceivedRaw or lost more than the loss limit. quote_expired: the quote ran out before the provider took the swap. unavailable: a temporary problem stopped it before anything was sent. not_authorized: the signature no longer covered it when it started. stopped: an operator paused trading or turned the wallet off. not_executed: the provider did not carry it out. signing_disabled: this deployment does not sign trades. In every case nothing was swapped; get a new quote to try again.
Show attributes
When status is failed, why; otherwise null. insufficient_funds: the wallet did not hold the amount when the swap started. quote_rejected: the price at execution failed its checks, or would have received less than terms.minimumReceivedRaw or lost more than the loss limit. quote_expired: the quote ran out before the provider took the swap. unavailable: a temporary problem stopped it before anything was sent. not_authorized: the signature no longer covered it when it started. stopped: an operator paused trading or turned the wallet off. not_executed: the provider did not carry it out. signing_disabled: this deployment does not sign trades. In every case nothing was swapped; get a new quote to try again.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Allowed values
["insufficient_funds","quote_rejected","quote_expired","unavailable","not_authorized","stopped","not_executed","signing_disabled"]
Variant 2 · null
resultanyOfrequiredThe recorded outcome behind status, as evidence; null until there is one. Read status to decide what to do.
Show attributes
The recorded outcome behind status, as evidence; null until there is one. Read status to decide what to do.
anyOf · 2 variants
Variant 1 · anyOf
anyOf · 4 variants
Variant 1 · status: in_progress
statusstringrequiredValidation rules
- Exact value
"in_progress"
operationIdstring · uuidrequiredThe persisted financial operation still owned by its durable executor.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
Variant 2 · status: no_trade
statusstringrequiredThe request resolved without attempting a financial action.
Validation rules
- Exact value
"no_trade"
Variant 3 · status: refused
statusstringrequiredThe financial command refused execution under its authority or safety checks.
Validation rules
- Exact value
"refused"
scopestringrequiredThe bounded category of the refusal; no provider text, account details or amounts are exposed here. buy_too_small (a Solana buy below its minimum), reserve_required (it would spend the SOL the Solana account keeps for fees) and loss_bound_exceeded (no route returned at least the approved minimum) can be corrected by asking the user for other terms; token_blocked means the token's own rules, or its missing price, keep it from trading through fin; route_unavailable means the requested financial route was not available; nothing_freed means a cash-out's withdrawal found nothing its exit freed to bring home.
Validation rules
- Allowed values
["authority","request","transient","insufficient_funds","request_frozen","verification","stale_evidence","account_busy","conflict","paused","held","withdrawn","spend_cap_reached","no_signing_authority","not_available_in_region","no_account","withdrawal_too_small","withdrawal_reserve_required","nothing_freed","order_invalid","route_unavailable","buy_too_small","reserve_required","loss_bound_exceeded","token_blocked"]
Variant 4 · object
statusstringrequiredThe financial outcome: settled, unresolved, mixed or incomplete, refunded, or conclusively not executed. An outcome can still be waiting for receipts; the trade's or withdrawal's status says whether it is final.
Validation rules
- Allowed values
["settled","pending","partial","refunded","not_executed"]
reasonstringoptionalPresent when execution was restricted to a mode that cannot sign or move funds.
Validation rules
- Exact value
"signing_disabled"
stoppedobjectoptionalPresent only on a partial outcome whose run refused a later leg before it was claimed: the planned action the run stopped on and the bounded reason it never started.
Show attributes
Present only on a partial outcome whose run refused a later leg before it was claimed: the planned action the run stopped on and the bounded reason it never started.
indexintegerrequiredThe leg's zero-based position in the frozen plan.
Validation rules
- Minimum
0- Maximum
15
reasonstringrequiredThe bounded category the stopped leg was refused with; no provider text, account details or amounts.
Validation rules
- Allowed values
["lineage_unavailable","consent_invalid","allowance_exhausted","spend_cap_reached","position_unknown","exit_not_reached","selection_mismatch","action_mismatch","request_frozen","insufficient_funds","evidence_unavailable","inventory_stale","plan_conflict","leg_order","quote_invalid","payload_invalid","account_busy","expired","credentials_unavailable","execution_paused","automation_held","authority_withdrawn","perps_disabled","prediction_disabled","not_available_in_region","no_account","withdrawal_too_small","withdrawal_reserve_required","nothing_freed","order_invalid","route_unsupported","route_changed","solana_disabled","token_unpriced","token_mismatch","token_freezable","token_transfer_hook","token_permanent_delegate","token_non_transferable","token_default_frozen","token_transfer_fee","token_pausable","token_unknown_extension","token_not_sellable","route_invalid","loss_bound_exceeded","reserve_required","buy_too_small","swap_already_landed","solana_unavailable"]
blockedarrayoptionalUnclaimed actions blocked before dispatch, with unique indices disjoint from all actual legs.
Show attributes
Unclaimed actions blocked before dispatch, with unique indices disjoint from all actual legs.
Validation rules
- Minimum items
1- Maximum items
16
Array items · object
indexintegerrequiredThe leg's zero-based position in the frozen plan.
Validation rules
- Minimum
0- Maximum
15
reasonstringrequiredThe bounded category the stopped leg was refused with; no provider text, account details or amounts.
Validation rules
- Allowed values
["lineage_unavailable","consent_invalid","allowance_exhausted","spend_cap_reached","position_unknown","exit_not_reached","selection_mismatch","action_mismatch","request_frozen","insufficient_funds","evidence_unavailable","inventory_stale","plan_conflict","leg_order","quote_invalid","payload_invalid","account_busy","expired","credentials_unavailable","execution_paused","automation_held","authority_withdrawn","perps_disabled","prediction_disabled","not_available_in_region","no_account","withdrawal_too_small","withdrawal_reserve_required","nothing_freed","order_invalid","route_unsupported","route_changed","solana_disabled","token_unpriced","token_mismatch","token_freezable","token_transfer_hook","token_permanent_delegate","token_non_transferable","token_default_frozen","token_transfer_fee","token_pausable","token_unknown_extension","token_not_sellable","route_invalid","loss_bound_exceeded","reserve_required","buy_too_small","swap_already_landed","solana_unavailable"]
legsarrayrequiredThe actual execution legs represented by this outcome; unattempted planned legs have no invented receipt.
Show attributes
The actual execution legs represented by this outcome; unattempted planned legs have no invented receipt.
Validation rules
- Maximum items
16
Array items · object
indexintegerrequiredThe leg's zero-based position in the frozen plan.
Validation rules
- Minimum
0- Maximum
15
statestringrequiredThe recorded execution or settlement state of this actual leg.
Validation rules
- Allowed values
["claimed","signed","uncertain","settled","refunded","not_executed"]
solanaobjectoptionalPresent only on a Solana operation's outcome: what it paid, received and signed on Solana. legs are its 1Click legs.
Show attributes
Present only on a Solana operation's outcome: what it paid, received and signed on Solana. legs are its 1Click legs.
sidestringrequiredWhich Solana operation this is: a buy, a sell, a fund or a withdrawal.
Validation rules
- Allowed values
["buy","sell","fund","withdraw"]
tokenobjectoptionalThe token bought or sold; absent for a fund or a withdrawal.
Show attributes
The token bought or sold; absent for a fund or a withdrawal.
mintstringrequiredThe token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
decimalsintegerrequiredThe mint's decimals, exactly as returned with the mint.
Validation rules
- Minimum
0- Maximum
18
tokenProgramstringrequiredThe program that owns the mint, exactly as returned with the mint: spl_token or token_2022.
Validation rules
- Allowed values
["spl_token","token_2022"]
accountstringrequiredThe agent's own Solana account the operation used.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
transactionsarrayrequiredEvery transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of sales.
Show attributes
Every transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of sales.
Validation rules
- Maximum items
6
Array items · object
One signed Solana transaction of this operation.
purposestringrequiredswap trades on Jupiter; sweep sends SOL back to the agent wallet through 1Click.
Validation rules
- Allowed values
["swap","sweep"]
signaturestringrequiredA Solana transaction signature, which is also its id: base58 text of 64 bytes.
Validation rules
- Minimum length
64- Maximum length
88- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
statestringrequiredsigned and dispatching are not yet sent or not yet seen; landed succeeded on chain, failed landed with an error, expired provably never will; uncertain is not yet known: never sign it again.
Validation rules
- Allowed values
["signed","dispatching","landed","failed","expired","uncertain"]
feeLamportsstringoptionalThe network fee the transaction paid, in lamports, once it landed.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
paidobjectoptionalWhat the operation spent, once known.
Show attributes
What the operation spent, once known.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
receivedobjectoptionalWhat the operation received, once it landed or settled.
Show attributes
What the operation received, once it landed or settled.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
solLeftLamportsstringoptionalSOL the operation left in the Solana account, in lamports: what a partial outcome left behind.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
salesarrayoptionalPresent only on a multi-coin sale's outcome: each sale in the order it ran. received is what the whole sale returned.
Show attributes
Present only on a multi-coin sale's outcome: each sale in the order it ran. received is what the whole sale returned.
Validation rules
- Maximum items
6
Array items · object
One coin of a multi-coin sale, and what became of it.
tokenobjectrequiredThe coin this sale sold, or was to sell.
Show attributes
The coin this sale sold, or was to sell.
mintstringrequiredThe token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
decimalsintegerrequiredThe mint's decimals, exactly as returned with the mint.
Validation rules
- Minimum
0- Maximum
18
tokenProgramstringrequiredThe program that owns the mint, exactly as returned with the mint: spl_token or token_2022.
Validation rules
- Allowed values
["spl_token","token_2022"]
statestringrequiredsold once its swap landed; not_sold when it ended without selling anything (refused before any signature, every attempt failed or expired, or the sale stopped before it); uncertain while an attempt of it may still land: never sign it again.
Validation rules
- Allowed values
["sold","not_sold","uncertain"]
paidobjectoptionalWhat this sale sold, once its swap landed: the token's exact amount.
Show attributes
What this sale sold, once its swap landed: the token's exact amount.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
solGainedLamportsstringoptionalThe SOL this sale's landed swap added to the Solana account, in lamports, before the one transfer back.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
transactionsarrayoptionalThis coin's swap attempts the sale signed, in the order it signed them; absent while none was signed.
Show attributes
This coin's swap attempts the sale signed, in the order it signed them; absent while none was signed.
Validation rules
- Maximum items
3
Array items · object
One signed Solana transaction of this operation.
purposestringrequiredswap trades on Jupiter; sweep sends SOL back to the agent wallet through 1Click.
Validation rules
- Allowed values
["swap","sweep"]
signaturestringrequiredA Solana transaction signature, which is also its id: base58 text of 64 bytes.
Validation rules
- Minimum length
64- Maximum length
88- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
statestringrequiredsigned and dispatching are not yet sent or not yet seen; landed succeeded on chain, failed landed with an error, expired provably never will; uncertain is not yet known: never sign it again.
Validation rules
- Allowed values
["signed","dispatching","landed","failed","expired","uncertain"]
feeLamportsstringoptionalThe network fee the transaction paid, in lamports, once it landed.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
createdAtstring · date-timerequiredWhen the swap was requested.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
startedAtanyOfrequiredWhen the swap started; null before then.
Show attributes
When the swap started; null before then.
anyOf · 2 variants
Variant 1 · string · date-time
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
reportedAtanyOfrequiredWhen its outcome was recorded; null before then.
Show attributes
When its outcome was recorded; null before then.
anyOf · 2 variants
Variant 1 · string · date-time
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
receiptsarrayrequiredThe swap the provider made and what it delivered, as evidence.
Show attributes
The swap the provider made and what it delivered, as evidence.
Array items · object
idstring · uuidrequiredThe provider swap's id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
indexintegerrequiredZero-based position in the swap's plan.
Validation rules
- Minimum
0- Maximum
9007199254740991
statestringrequiredOne leg's progress: claimed (its allowance is reserved, not yet signed), signed (signed, not yet submitted), uncertain (submitted; the provider's outcome is not yet confirmed), then terminal — settled, refunded, or not_executed.
Validation rules
- Allowed values
["claimed","signed","uncertain","settled","refunded","not_executed"]
assetIdstringrequiredThe asset it delivered: the bought asset, or the sold one when it was refunded.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
amountRawanyOfrequiredThe amount actually received (or refunded), in this asset's smallest unit; null until a receipt confirms it.
Show attributes
The amount actually received (or refunded), in this asset's smallest unit; null until a receipt confirms it.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
decimalsintegerrequiredThe number of decimals of this asset's smallest unit.
Validation rules
- Minimum
0- Maximum
38
intentHashesarrayrequiredThe NEAR Intents ids of the intents that carried out this step, as 1Click reported them when it settled. Quote one to support to trace the step. They are on the confidential NEAR Intents ledger, which no public explorer shows. Empty until the step settles, and for a step that was refunded or did not run.
Show attributes
The NEAR Intents ids of the intents that carried out this step, as 1Click reported them when it settled. Quote one to support to trace the step. They are on the confidential NEAR Intents ledger, which no public explorer shows. Empty until the step settles, and for a step that was refunded or did not run.
Validation rules
- Maximum items
16
Array items · string
Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
refundReasonanyOfrequiredWhen the step was refunded, 1Click's own code for why, such as NO_LIQUIDITY or AMOUNT_LESS_THAN_MIN_AMOUNT_OUT; null when it gave none, for any other step, and for a step refunded before Fin kept this. Show it, don't branch on it: 1Click may add codes.
Show attributes
When the step was refunded, 1Click's own code for why, such as NO_LIQUIDITY or AMOUNT_LESS_THAN_MIN_AMOUNT_OUT; null when it gave none, for any other step, and for a step refunded before Fin kept this. Show it, don't branch on it: 1Click may add codes.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^[A-Z][A-Z0-9_]{0,63}$"
Variant 2 · null
observedAtanyOfrequiredWhen this swap's outcome was observed.
Show attributes
When this swap's outcome was observed.
anyOf · 2 variants
Variant 1 · string · date-time
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
valueanyOfrequiredWhat the swap sold (terms.amountRaw) was worth when it ran, at the trusted price Fin checked its plan against. null before it has a plan, and when no price was recorded.
Show attributes
What the swap sold (terms.amountRaw) was worth when it ran, at the trusted price Fin checked its plan against. null before it has a plan, and when no price was recorded.
anyOf · 2 variants
Variant 1 · object
What an amount was worth in US dollars when it moved, and the price it was valued at. Display only: derived on read, never an input to a transfer or a limit.
usdstringrequiredThe value in US dollars as plain decimal text, rounded down to the cent: the amount times priceUsd.
Validation rules
- Pattern
"^(0|[1-9]\\d*)(\\.\\d+)?$"
priceUsdstringrequiredThe USD price of one whole token it was valued at, as plain decimal text.
Validation rules
- Maximum length
80- Pattern
"^(0|[1-9]\\d*)(\\.\\d+)?$"
pricedAtstring · date-timerequiredWhen that price was observed.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
Variant 3 · kind: withdrawal
idstring · uuidrequiredThe item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
createdAtstring · date-timerequiredWhen it happened: the request, or the change. The feed is ordered by it.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen it last changed, such as a settlement or a credit.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
kindstringrequiredA withdrawal; read withdrawal.
Validation rules
- Exact value
"withdrawal"
withdrawalobjectrequiredA withdrawal from the agent wallet: its terms, its status, and the evidence behind it.
Show attributes
A withdrawal from the agent wallet: its terms, its status, and the evidence behind it.
idstring · uuidrequiredThe withdrawal's id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
termsanyOfrequiredThe signed terms; null only for withdrawals made before terms were recorded.
Show attributes
The signed terms; null only for withdrawals made before terms were recorded.
anyOf · 2 variants
Variant 1 · object
The exact terms of a withdrawal: what leaves the agent wallet, where it goes, and the limits it must stay within.
assetIdstringrequiredThe asset to withdraw from the agent wallet: an assetId from Get balances.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
amountRawstringrequiredThe amount to withdraw, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
destinationobjectrequiredWhere the funds go: the network, the asset received and the recipient's address.
Show attributes
Where the funds go: the network, the asset received and the recipient's address.
railstringrequiredA native blockchain transfer or a signed transfer within an Intents ledger.
Validation rules
- Allowed values
["chain","intents"]
networkstringrequiredExact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain.
Validation rules
- Pattern
"^[a-z][a-z0-9-]{0,63}$"
assetIdstringrequiredThe asset the recipient receives: an id from List supported assets.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
addressstringrequiredExact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
minimumReceivedRawstringrequiredThe least the recipient receives, in the received asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
maxFeeRawanyOfrequiredThe most the withdrawal fee can be, in the received asset's smallest unit. null when the provider does not state this fee separately, which does not mean zero; the minimum received and the loss limit still apply.
Show attributes
The most the withdrawal fee can be, in the received asset's smallest unit. null when the provider does not state this fee separately, which does not mean zero; the minimum received and the loss limit still apply.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
maxValueLossBpsintegerrequiredThe most the transfer may lose in total, fees and price movement included, in basis points (100 = 1%), from 1 to 300.
Validation rules
- Minimum
1- Maximum
300
Variant 2 · null
debitobjectrequiredWhat leaves the agent wallet: the asset and the exact amount.
Show attributes
What leaves the agent wallet: the asset and the exact amount.
assetIdstringrequiredOpaque stable Fin asset identity returned by balances and the transfer catalog.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
amountRawstringrequiredThe amount taken from the agent wallet, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
statusstringrequiredpending until it starts, processing while it is sent, then completed, refunded (the funds came back to the agent wallet) or failed (nothing left the wallet; failureReason says why). denied and expired mean the request was refused or its signature ran out before it started. uncertain means the result could not be confirmed yet: never send a replacement, keep checking. completed, refunded, failed, denied and expired are final.
Validation rules
- Allowed values
["pending","processing","completed","refunded","failed","denied","expired","uncertain"]
failureReasonanyOfrequiredWhen status is failed, why; otherwise null. insufficient_funds: the wallet did not hold the amount when the withdrawal started. quote_rejected: the price at execution failed its checks or fell outside the signed limits. quote_expired: the quote ran out before the provider took the transfer. unavailable: a temporary problem stopped it before anything was sent. not_authorized: the signature no longer covered it when it started, or nothing could sign it then (the automation firing it ran for was not confirmed in time, or the owner's own wallet could not be resolved). stopped: an operator paused withdrawals or turned the wallet off. not_executed: the provider did not carry it out. signing_disabled: this deployment does not sign transfers. In every case nothing left the wallet; get a new quote to try again.
Show attributes
When status is failed, why; otherwise null. insufficient_funds: the wallet did not hold the amount when the withdrawal started. quote_rejected: the price at execution failed its checks or fell outside the signed limits. quote_expired: the quote ran out before the provider took the transfer. unavailable: a temporary problem stopped it before anything was sent. not_authorized: the signature no longer covered it when it started, or nothing could sign it then (the automation firing it ran for was not confirmed in time, or the owner's own wallet could not be resolved). stopped: an operator paused withdrawals or turned the wallet off. not_executed: the provider did not carry it out. signing_disabled: this deployment does not sign transfers. In every case nothing left the wallet; get a new quote to try again.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Allowed values
["insufficient_funds","quote_rejected","quote_expired","unavailable","not_authorized","stopped","not_executed","signing_disabled"]
Variant 2 · null
resultanyOfrequiredThe recorded outcome behind status, as evidence; null until there is one. Read status to decide what to do.
Show attributes
The recorded outcome behind status, as evidence; null until there is one. Read status to decide what to do.
anyOf · 2 variants
Variant 1 · anyOf
anyOf · 4 variants
Variant 1 · status: in_progress
statusstringrequiredValidation rules
- Exact value
"in_progress"
operationIdstring · uuidrequiredThe persisted financial operation still owned by its durable executor.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
Variant 2 · status: no_trade
statusstringrequiredThe request resolved without attempting a financial action.
Validation rules
- Exact value
"no_trade"
Variant 3 · status: refused
statusstringrequiredThe financial command refused execution under its authority or safety checks.
Validation rules
- Exact value
"refused"
scopestringrequiredThe bounded category of the refusal; no provider text, account details or amounts are exposed here. buy_too_small (a Solana buy below its minimum), reserve_required (it would spend the SOL the Solana account keeps for fees) and loss_bound_exceeded (no route returned at least the approved minimum) can be corrected by asking the user for other terms; token_blocked means the token's own rules, or its missing price, keep it from trading through fin; route_unavailable means the requested financial route was not available; nothing_freed means a cash-out's withdrawal found nothing its exit freed to bring home.
Validation rules
- Allowed values
["authority","request","transient","insufficient_funds","request_frozen","verification","stale_evidence","account_busy","conflict","paused","held","withdrawn","spend_cap_reached","no_signing_authority","not_available_in_region","no_account","withdrawal_too_small","withdrawal_reserve_required","nothing_freed","order_invalid","route_unavailable","buy_too_small","reserve_required","loss_bound_exceeded","token_blocked"]
Variant 4 · object
statusstringrequiredThe financial outcome: settled, unresolved, mixed or incomplete, refunded, or conclusively not executed. An outcome can still be waiting for receipts; the trade's or withdrawal's status says whether it is final.
Validation rules
- Allowed values
["settled","pending","partial","refunded","not_executed"]
reasonstringoptionalPresent when execution was restricted to a mode that cannot sign or move funds.
Validation rules
- Exact value
"signing_disabled"
stoppedobjectoptionalPresent only on a partial outcome whose run refused a later leg before it was claimed: the planned action the run stopped on and the bounded reason it never started.
Show attributes
Present only on a partial outcome whose run refused a later leg before it was claimed: the planned action the run stopped on and the bounded reason it never started.
indexintegerrequiredThe leg's zero-based position in the frozen plan.
Validation rules
- Minimum
0- Maximum
15
reasonstringrequiredThe bounded category the stopped leg was refused with; no provider text, account details or amounts.
Validation rules
- Allowed values
["lineage_unavailable","consent_invalid","allowance_exhausted","spend_cap_reached","position_unknown","exit_not_reached","selection_mismatch","action_mismatch","request_frozen","insufficient_funds","evidence_unavailable","inventory_stale","plan_conflict","leg_order","quote_invalid","payload_invalid","account_busy","expired","credentials_unavailable","execution_paused","automation_held","authority_withdrawn","perps_disabled","prediction_disabled","not_available_in_region","no_account","withdrawal_too_small","withdrawal_reserve_required","nothing_freed","order_invalid","route_unsupported","route_changed","solana_disabled","token_unpriced","token_mismatch","token_freezable","token_transfer_hook","token_permanent_delegate","token_non_transferable","token_default_frozen","token_transfer_fee","token_pausable","token_unknown_extension","token_not_sellable","route_invalid","loss_bound_exceeded","reserve_required","buy_too_small","swap_already_landed","solana_unavailable"]
blockedarrayoptionalUnclaimed actions blocked before dispatch, with unique indices disjoint from all actual legs.
Show attributes
Unclaimed actions blocked before dispatch, with unique indices disjoint from all actual legs.
Validation rules
- Minimum items
1- Maximum items
16
Array items · object
indexintegerrequiredThe leg's zero-based position in the frozen plan.
Validation rules
- Minimum
0- Maximum
15
reasonstringrequiredThe bounded category the stopped leg was refused with; no provider text, account details or amounts.
Validation rules
- Allowed values
["lineage_unavailable","consent_invalid","allowance_exhausted","spend_cap_reached","position_unknown","exit_not_reached","selection_mismatch","action_mismatch","request_frozen","insufficient_funds","evidence_unavailable","inventory_stale","plan_conflict","leg_order","quote_invalid","payload_invalid","account_busy","expired","credentials_unavailable","execution_paused","automation_held","authority_withdrawn","perps_disabled","prediction_disabled","not_available_in_region","no_account","withdrawal_too_small","withdrawal_reserve_required","nothing_freed","order_invalid","route_unsupported","route_changed","solana_disabled","token_unpriced","token_mismatch","token_freezable","token_transfer_hook","token_permanent_delegate","token_non_transferable","token_default_frozen","token_transfer_fee","token_pausable","token_unknown_extension","token_not_sellable","route_invalid","loss_bound_exceeded","reserve_required","buy_too_small","swap_already_landed","solana_unavailable"]
legsarrayrequiredThe actual execution legs represented by this outcome; unattempted planned legs have no invented receipt.
Show attributes
The actual execution legs represented by this outcome; unattempted planned legs have no invented receipt.
Validation rules
- Maximum items
16
Array items · object
indexintegerrequiredThe leg's zero-based position in the frozen plan.
Validation rules
- Minimum
0- Maximum
15
statestringrequiredThe recorded execution or settlement state of this actual leg.
Validation rules
- Allowed values
["claimed","signed","uncertain","settled","refunded","not_executed"]
solanaobjectoptionalPresent only on a Solana operation's outcome: what it paid, received and signed on Solana. legs are its 1Click legs.
Show attributes
Present only on a Solana operation's outcome: what it paid, received and signed on Solana. legs are its 1Click legs.
sidestringrequiredWhich Solana operation this is: a buy, a sell, a fund or a withdrawal.
Validation rules
- Allowed values
["buy","sell","fund","withdraw"]
tokenobjectoptionalThe token bought or sold; absent for a fund or a withdrawal.
Show attributes
The token bought or sold; absent for a fund or a withdrawal.
mintstringrequiredThe token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
decimalsintegerrequiredThe mint's decimals, exactly as returned with the mint.
Validation rules
- Minimum
0- Maximum
18
tokenProgramstringrequiredThe program that owns the mint, exactly as returned with the mint: spl_token or token_2022.
Validation rules
- Allowed values
["spl_token","token_2022"]
accountstringrequiredThe agent's own Solana account the operation used.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
transactionsarrayrequiredEvery transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of sales.
Show attributes
Every transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of sales.
Validation rules
- Maximum items
6
Array items · object
One signed Solana transaction of this operation.
purposestringrequiredswap trades on Jupiter; sweep sends SOL back to the agent wallet through 1Click.
Validation rules
- Allowed values
["swap","sweep"]
signaturestringrequiredA Solana transaction signature, which is also its id: base58 text of 64 bytes.
Validation rules
- Minimum length
64- Maximum length
88- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
statestringrequiredsigned and dispatching are not yet sent or not yet seen; landed succeeded on chain, failed landed with an error, expired provably never will; uncertain is not yet known: never sign it again.
Validation rules
- Allowed values
["signed","dispatching","landed","failed","expired","uncertain"]
feeLamportsstringoptionalThe network fee the transaction paid, in lamports, once it landed.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
paidobjectoptionalWhat the operation spent, once known.
Show attributes
What the operation spent, once known.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
receivedobjectoptionalWhat the operation received, once it landed or settled.
Show attributes
What the operation received, once it landed or settled.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
solLeftLamportsstringoptionalSOL the operation left in the Solana account, in lamports: what a partial outcome left behind.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
salesarrayoptionalPresent only on a multi-coin sale's outcome: each sale in the order it ran. received is what the whole sale returned.
Show attributes
Present only on a multi-coin sale's outcome: each sale in the order it ran. received is what the whole sale returned.
Validation rules
- Maximum items
6
Array items · object
One coin of a multi-coin sale, and what became of it.
tokenobjectrequiredThe coin this sale sold, or was to sell.
Show attributes
The coin this sale sold, or was to sell.
mintstringrequiredThe token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
decimalsintegerrequiredThe mint's decimals, exactly as returned with the mint.
Validation rules
- Minimum
0- Maximum
18
tokenProgramstringrequiredThe program that owns the mint, exactly as returned with the mint: spl_token or token_2022.
Validation rules
- Allowed values
["spl_token","token_2022"]
statestringrequiredsold once its swap landed; not_sold when it ended without selling anything (refused before any signature, every attempt failed or expired, or the sale stopped before it); uncertain while an attempt of it may still land: never sign it again.
Validation rules
- Allowed values
["sold","not_sold","uncertain"]
paidobjectoptionalWhat this sale sold, once its swap landed: the token's exact amount.
Show attributes
What this sale sold, once its swap landed: the token's exact amount.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
solGainedLamportsstringoptionalThe SOL this sale's landed swap added to the Solana account, in lamports, before the one transfer back.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
transactionsarrayoptionalThis coin's swap attempts the sale signed, in the order it signed them; absent while none was signed.
Show attributes
This coin's swap attempts the sale signed, in the order it signed them; absent while none was signed.
Validation rules
- Maximum items
3
Array items · object
One signed Solana transaction of this operation.
purposestringrequiredswap trades on Jupiter; sweep sends SOL back to the agent wallet through 1Click.
Validation rules
- Allowed values
["swap","sweep"]
signaturestringrequiredA Solana transaction signature, which is also its id: base58 text of 64 bytes.
Validation rules
- Minimum length
64- Maximum length
88- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
statestringrequiredsigned and dispatching are not yet sent or not yet seen; landed succeeded on chain, failed landed with an error, expired provably never will; uncertain is not yet known: never sign it again.
Validation rules
- Allowed values
["signed","dispatching","landed","failed","expired","uncertain"]
feeLamportsstringoptionalThe network fee the transaction paid, in lamports, once it landed.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
createdAtstring · date-timerequiredWhen the withdrawal was requested.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
startedAtanyOfrequiredWhen the withdrawal started; null before then.
Show attributes
When the withdrawal started; null before then.
anyOf · 2 variants
Variant 1 · string · date-time
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
reportedAtanyOfrequiredWhen its outcome was recorded; null before then.
Show attributes
When its outcome was recorded; null before then.
anyOf · 2 variants
Variant 1 · string · date-time
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
receiptsarrayrequiredThe transfer the withdrawal made and what it received, as evidence.
Show attributes
The transfer the withdrawal made and what it received, as evidence.
Array items · object
idstring · uuidrequiredThe transfer's id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
indexintegerrequiredZero-based position in the withdrawal plan.
Validation rules
- Minimum
0- Maximum
9007199254740991
statestringrequiredOne leg's progress: claimed (its allowance is reserved, not yet signed), signed (signed, not yet submitted), uncertain (submitted; the provider's outcome is not yet confirmed), then terminal — settled, refunded, or not_executed.
Validation rules
- Allowed values
["claimed","signed","uncertain","settled","refunded","not_executed"]
assetIdstringrequiredOpaque stable Fin asset identity returned by balances and the transfer catalog.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
amountRawanyOfrequiredThe amount actually received (or refunded), in this asset's smallest unit; null until a receipt confirms it.
Show attributes
The amount actually received (or refunded), in this asset's smallest unit; null until a receipt confirms it.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
decimalsintegerrequiredThe number of decimals of this asset's smallest unit.
Validation rules
- Minimum
0- Maximum
38
transferPayoutanyOfrequiredWhere the payout landed and its transaction ids; null before settlement or for older withdrawals.
Show attributes
Where the payout landed and its transaction ids; null before settlement or for older withdrawals.
anyOf · 2 variants
Variant 1 · object
railstringrequiredA native blockchain transfer or a signed transfer within an Intents ledger.
Validation rules
- Allowed values
["chain","intents"]
networkstringrequiredExact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain.
Validation rules
- Pattern
"^[a-z][a-z0-9-]{0,63}$"
addressstringrequiredExact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
transactionHashesarrayrequiredDestination chain transactions, or the funding intent identifiers binding the provider-confirmed ledger payout.
Show attributes
Destination chain transactions, or the funding intent identifiers binding the provider-confirmed ledger payout.
Validation rules
- Minimum items
1- Maximum items
16
Array items · string
Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
quotedFeeRawanyOfrequiredWithdrawal fee in destination-asset units from the bound signed quote, or null when not disclosed. Actual received amount is recorded separately.
Show attributes
Withdrawal fee in destination-asset units from the bound signed quote, or null when not disclosed. Actual received amount is recorded separately.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
Variant 2 · null
refundReasonanyOfrequiredWhen the step was refunded, 1Click's own code for why, such as NO_LIQUIDITY or AMOUNT_LESS_THAN_MIN_AMOUNT_OUT; null when it gave none, for any other step, and for a step refunded before Fin kept this. Show it, don't branch on it: 1Click may add codes.
Show attributes
When the step was refunded, 1Click's own code for why, such as NO_LIQUIDITY or AMOUNT_LESS_THAN_MIN_AMOUNT_OUT; null when it gave none, for any other step, and for a step refunded before Fin kept this. Show it, don't branch on it: 1Click may add codes.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^[A-Z][A-Z0-9_]{0,63}$"
Variant 2 · null
observedAtanyOfrequiredWhen this transfer's outcome was observed.
Show attributes
When this transfer's outcome was observed.
anyOf · 2 variants
Variant 1 · string · date-time
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
valueanyOfrequiredWhat the debit (debit.amountRaw) was worth when the withdrawal ran, at the trusted price Fin checked its plan against. null before it has a plan, and when no price was recorded.
Show attributes
What the debit (debit.amountRaw) was worth when the withdrawal ran, at the trusted price Fin checked its plan against. null before it has a plan, and when no price was recorded.
anyOf · 2 variants
Variant 1 · object
What an amount was worth in US dollars when it moved, and the price it was valued at. Display only: derived on read, never an input to a transfer or a limit.
usdstringrequiredThe value in US dollars as plain decimal text, rounded down to the cent: the amount times priceUsd.
Validation rules
- Pattern
"^(0|[1-9]\\d*)(\\.\\d+)?$"
priceUsdstringrequiredThe USD price of one whole token it was valued at, as plain decimal text.
Validation rules
- Maximum length
80- Pattern
"^(0|[1-9]\\d*)(\\.\\d+)?$"
pricedAtstring · date-timerequiredWhen that price was observed.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
Variant 4 · kind: deposit
idstring · uuidrequiredThe item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
createdAtstring · date-timerequiredWhen it happened: the request, or the change. The feed is ordered by it.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen it last changed, such as a settlement or a credit.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
kindstringrequiredA deposit; read deposit.
Validation rules
- Exact value
"deposit"
depositobjectrequiredThe deposit, as Get a deposit returns it.
Show attributes
The deposit, as Get a deposit returns it.
idstring · uuidrequiredThe deposit's id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
requestKeystring · uuidrequiredThe Idempotency-Key the deposit was created with; filter List deposits on it.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
termsobjectrequiredThe terms the deposit was created with.
Show attributes
The terms the deposit was created with.
railstringrequiredA native blockchain transfer or a signed transfer within an Intents ledger.
Validation rules
- Allowed values
["chain","intents"]
networkstringrequiredExact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain.
Validation rules
- Pattern
"^[a-z][a-z0-9-]{0,63}$"
assetIdstringrequiredThe asset to deposit: an id from List supported assets.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
amountRawstringrequiredThe exact amount the user sends, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
refundAddressstringrequiredWhere the funds go back to if the deposit cannot be credited: an address the user controls on the network they send from.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
minimumCreditRawstringrequiredThe least the agent wallet must be credited, in the same asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
maxValueLossBpsintegerrequiredThe most the transfer may lose in total, fees and price movement included, in basis points (100 = 1%), from 1 to 300.
Validation rules
- Minimum
1- Maximum
300
statestringrequiredWhere the deposit is: preparing (getting the address), awaiting_deposit (waiting for the user's transfer), processing, then credited or refunded. failed means no address was issued. expired means the deadline passed with no transfer seen; a late transfer still moves it on. unknown means Fin saw something it could not confirm; it never proves that no money moved, so keep checking.
Validation rules
- Allowed values
["preparing","awaiting_deposit","processing","credited","refunded","unknown","expired","failed"]
instructionanyOfrequiredWhere and what to send; null until the address is issued.
Show attributes
Where and what to send; null until the address is issued.
anyOf · 2 variants
Variant 1 · oneOf
oneOf · 2 variants
Variant 1 · kind: chain_transfer
railstringrequiredPayment originates on the specified native blockchain.
Validation rules
- Exact value
"chain"
networkstringrequiredExact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain.
Validation rules
- Pattern
"^[a-z][a-z0-9-]{0,63}$"
assetobjectrequiredExact asset and atomic-unit precision to transfer.
Show attributes
Exact asset and atomic-unit precision to transfer.
idstringrequiredOpaque stable Fin asset identity returned by balances and the transfer catalog.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
networkstringrequiredThe asset's native blockchain network.
Validation rules
- Pattern
"^[a-z][a-z0-9-]{0,63}$"
kindstringrequiredNative currency or a token contract according to the provider catalog.
Validation rules
- Allowed values
["native","token"]
contractAddressanyOfrequiredNative-chain token identifier; null for native currency.
Show attributes
Native-chain token identifier; null for native currency.
anyOf · 2 variants
Variant 1 · string
Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
Variant 2 · null
decimalsintegerrequiredAtomic-unit precision.
Validation rules
- Minimum
0- Maximum
38
symbolstringrequiredDisplay label; the asset id determines identity.
Validation rules
- Minimum length
1- Maximum length
64
addressstringrequiredVerified destination for this deposit request only.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
memoanyOfrequiredRequired deposit memo or tag, exactly as returned; null means absent.
Show attributes
Required deposit memo or tag, exactly as returned; null means absent.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Minimum length
1- Maximum length
256- Pattern
"^[\\x20-\\x7e]+$"
Variant 2 · null
amountRawstringrequiredExact funding amount in asset atomic units.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
minimumCreditRawstringrequiredMinimum authorized wallet credit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
expectedCreditRawstringrequiredQuoted credit; the receipt records actual credit separately.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
sendBeforestring · date-timerequiredDo not initiate another transfer after this deadline.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
expiresAtstring · date-timerequiredProvider deposit deadline. Late payment remains observable; expiry never proves a refund.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
refundAddressstringrequiredExact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
reusablebooleanrequiredBound to one funding request; never reuse for a later transfer.
Validation rules
- Exact value
false
kindstringrequiredThe external wallet broadcasts a native-chain transfer using these instructions.
Validation rules
- Exact value
"chain_transfer"
Variant 2 · kind: intents_transfer
railstringrequiredPayment originates on the specified public or confidential Intents ledger.
Validation rules
- Exact value
"intents"
networkstringrequiredExact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain.
Validation rules
- Pattern
"^[a-z][a-z0-9-]{0,63}$"
assetobjectrequiredExact asset and atomic-unit precision to transfer.
Show attributes
Exact asset and atomic-unit precision to transfer.
idstringrequiredOpaque stable Fin asset identity returned by balances and the transfer catalog.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
networkstringrequiredThe asset's native blockchain network.
Validation rules
- Pattern
"^[a-z][a-z0-9-]{0,63}$"
kindstringrequiredNative currency or a token contract according to the provider catalog.
Validation rules
- Allowed values
["native","token"]
contractAddressanyOfrequiredNative-chain token identifier; null for native currency.
Show attributes
Native-chain token identifier; null for native currency.
anyOf · 2 variants
Variant 1 · string
Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
Variant 2 · null
decimalsintegerrequiredAtomic-unit precision.
Validation rules
- Minimum
0- Maximum
38
symbolstringrequiredDisplay label; the asset id determines identity.
Validation rules
- Minimum length
1- Maximum length
64
addressstringrequiredVerified destination for this deposit request only.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
memoanyOfrequiredRequired deposit memo or tag, exactly as returned; null means absent.
Show attributes
Required deposit memo or tag, exactly as returned; null means absent.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Minimum length
1- Maximum length
256- Pattern
"^[\\x20-\\x7e]+$"
Variant 2 · null
amountRawstringrequiredExact funding amount in asset atomic units.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
minimumCreditRawstringrequiredMinimum authorized wallet credit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
expectedCreditRawstringrequiredQuoted credit; the receipt records actual credit separately.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
sendBeforestring · date-timerequiredDo not initiate another transfer after this deadline.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
expiresAtstring · date-timerequiredProvider deposit deadline. Late payment remains observable; expiry never proves a refund.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
refundAddressstringrequiredExact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
reusablebooleanrequiredBound to one funding request; never reuse for a later transfer.
Validation rules
- Exact value
false
kindstringrequiredThe external wallet signs and submits a transfer intent on the specified ledger.
Validation rules
- Exact value
"intents_transfer"
protocolobjectrequiredThe external wallet constructs and signs a transfer intent with its own authority. Fin does not sign for or hold credentials to that source wallet.
Show attributes
The external wallet constructs and signs a transfer intent with its own authority. Fin does not sign for or hold credentials to that source wallet.
verifierstringrequiredLedger verifier for the external wallet's signed transfer intent.
Validation rules
- Allowed values
["intents.near","intents.far"]
assetIdstringrequiredLedger protocol asset identifier, exposed only for explicit advanced Intents funding.
Validation rules
- Minimum length
1- Maximum length
256
depositAddressstringrequiredQuote deposit account, used by the external wallet to generate the exact signed transfer intent; identical to the instruction address.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
amountRawstringrequiredExact signed transfer amount.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
receiptanyOfrequiredWhat was credited or refunded; null until that is observed.
Show attributes
What was credited or refunded; null until that is observed.
anyOf · 2 variants
Variant 1 · object
observedAtstring · date-timerequiredWhen trusted provider evidence was observed.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
statestringrequiredProvider-established terminal financial outcome.
Validation rules
- Allowed values
["credited","refunded"]
depositedRawstringrequiredObserved source amount.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
creditedRawstringrequiredActual wallet credit; zero on full refund.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
refundedRawstringrequiredAmount refunded to the approved source destination.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
sourceTransactionHashesarrayrequiredObserved source transactions or ledger intent identifiers bound to the instruction.
Show attributes
Observed source transactions or ledger intent identifiers bound to the instruction.
Validation rules
- Minimum items
1- Maximum items
32
Array items · string
Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
refundTransactionHashesarrayrequiredObserved refund transactions or ledger intent identifiers.
Show attributes
Observed refund transactions or ledger intent identifiers.
Validation rules
- Maximum items
32
Array items · string
Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
Variant 2 · null
seenAtanyOfrequiredWhen Fin first saw the user's transfer: the first check that found it on its way, or already credited or refunded. null until then, and for a transfer Fin saw before it kept this.
Show attributes
When Fin first saw the user's transfer: the first check that found it on its way, or already credited or refunded. null until then, and for a transfer Fin saw before it kept this.
anyOf · 2 variants
Variant 1 · string · date-time
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
arrivedRawanyOfrequiredWhat 1Click reported arriving while it confirmed the transfer, in the asset's smallest unit; null until it reports a figure. For display while it confirms: receipt records what was finally credited.
Show attributes
What 1Click reported arriving while it confirmed the transfer, in the asset's smallest unit; null until it reports a figure. For display while it confirms: receipt records what was finally credited.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
valueanyOfrequiredWhat was credited (receipt.creditedRaw) was worth when it was credited, at the price Fin recorded with the credit. null until it is credited, and when no fresh price was known then.
Show attributes
What was credited (receipt.creditedRaw) was worth when it was credited, at the price Fin recorded with the credit. null until it is credited, and when no fresh price was known then.
anyOf · 2 variants
Variant 1 · object
What an amount was worth in US dollars when it moved, and the price it was valued at. Display only: derived on read, never an input to a transfer or a limit.
usdstringrequiredThe value in US dollars as plain decimal text, rounded down to the cent: the amount times priceUsd.
Validation rules
- Pattern
"^(0|[1-9]\\d*)(\\.\\d+)?$"
priceUsdstringrequiredThe USD price of one whole token it was valued at, as plain decimal text.
Validation rules
- Maximum length
80- Pattern
"^(0|[1-9]\\d*)(\\.\\d+)?$"
pricedAtstring · date-timerequiredWhen that price was observed.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
createdAtstring · date-timerequiredWhen the deposit was created.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen the deposit last changed.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 5 · kind: deposit_address
idstring · uuidrequiredThe item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
createdAtstring · date-timerequiredWhen it happened: the request, or the change. The feed is ordered by it.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen it last changed, such as a settlement or a credit.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
kindstringrequiredA transfer to a one-time deposit address; read depositAddress.
Validation rules
- Exact value
"deposit_address"
depositAddressobjectrequiredThe deposit address, as Get a deposit address returns it: what arrived is in its receipt.
Show attributes
The deposit address, as Get a deposit address returns it: what arrived is in its receipt.
idstring · uuidrequiredThe deposit address's id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
requestKeystring · uuidrequiredThe Idempotency-Key it was created with.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
networkstringrequiredThe network the user sends on.
Validation rules
- Pattern
"^[a-z][a-z0-9-]{0,63}$"
assetIdstringrequiredThe asset the user sends: an id from List supported assets.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
statestringrequiredWhere the deposit is: preparing (getting the address), awaiting_deposit (waiting for the user's transfer), processing, then credited or refunded. incomplete means less than minimumDepositRaw arrived: it is refunded to the agent wallet, so tell the user not to top it up. failed means no address was issued. expired means the address stopped taking deposits with no transfer seen; a late transfer still moves it on. unknown means Fin saw something it could not confirm; it never proves that no money moved, so keep checking.
Validation rules
- Allowed values
["preparing","awaiting_deposit","incomplete","processing","credited","refunded","unknown","expired","failed"]
instructionanyOfrequiredWhere and what to send; null until the address is issued.
Show attributes
Where and what to send; null until the address is issued.
anyOf · 2 variants
Variant 1 · object
assetobjectrequiredThe asset to send, on its network, and the precision its amounts are in.
Show attributes
The asset to send, on its network, and the precision its amounts are in.
idstringrequiredOpaque stable Fin asset identity returned by balances and the transfer catalog.
Validation rules
- Pattern
"^asset_[a-f0-9]{64}$"
networkstringrequiredThe asset's native blockchain network.
Validation rules
- Pattern
"^[a-z][a-z0-9-]{0,63}$"
kindstringrequiredNative currency or a token contract according to the provider catalog.
Validation rules
- Allowed values
["native","token"]
contractAddressanyOfrequiredNative-chain token identifier; null for native currency.
Show attributes
Native-chain token identifier; null for native currency.
anyOf · 2 variants
Variant 1 · string
Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
Variant 2 · null
decimalsintegerrequiredAtomic-unit precision.
Validation rules
- Minimum
0- Maximum
38
symbolstringrequiredDisplay label; the asset id determines identity.
Validation rules
- Minimum length
1- Maximum length
64
addressstringrequiredThe one-time address to send to. It takes one transfer: never save or reuse it.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
memoanyOfrequiredRequired deposit memo or tag, exactly as returned; null means absent.
Show attributes
Required deposit memo or tag, exactly as returned; null means absent.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Minimum length
1- Maximum length
256- Pattern
"^[\\x20-\\x7e]+$"
Variant 2 · null
minimumDepositRawstringrequiredThe least one transfer must carry to be credited, in the asset's smallest unit. Less is refunded to the agent wallet.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
sendBeforestring · date-timerequiredSend by this time; a transfer sent later may be refunded instead of credited.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
expiresAtstring · date-timerequiredWhen the address stops taking deposits. A transfer that arrives later is still watched, and refunded to the agent wallet.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
creditEstimateSecondsanyOfrequiredAbout how long the credit takes once the network has confirmed the transfer, in seconds; null when no estimate was given.
Show attributes
About how long the credit takes once the network has confirmed the transfer, in seconds; null when no estimate was given.
anyOf · 2 variants
Variant 1 · integer
Validation rules
- Minimum
0- Maximum
86400
Variant 2 · null
Variant 2 · null
receiptanyOfrequiredWhat arrived, what was credited and what was refunded; null until then.
Show attributes
What arrived, what was credited and what was refunded; null until then.
anyOf · 2 variants
Variant 1 · object
observedAtstring · date-timerequiredWhen the outcome was observed.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
statestringrequiredWhether the transfer was credited or refunded.
Validation rules
- Allowed values
["credited","refunded"]
depositedRawstringrequiredWhat arrived at the address.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
creditedRawstringrequiredWhat the agent wallet was credited; zero when all of it was refunded.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
refundedRawstringrequiredWhat went back to the agent wallet uncredited, such as a transfer below the minimum.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
sourceTransactionHashesarrayrequiredThe transfers that paid the address, on the network they were sent on.
Show attributes
The transfers that paid the address, on the network they were sent on.
Validation rules
- Minimum items
1- Maximum items
32
Array items · string
Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
refundTransactionHashesarrayrequiredThe refund's ledger identifiers, when they were reported.
Show attributes
The refund's ledger identifiers, when they were reported.
Validation rules
- Maximum items
32
Array items · string
Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash.
Validation rules
- Pattern
"^[\\x21-\\x7e]{1,256}$"
Variant 2 · null
seenAtanyOfrequiredWhen Fin first saw the user's transfer: the first check that found it on its way, or already credited or refunded. null until then, and for a transfer Fin saw before it kept this.
Show attributes
When Fin first saw the user's transfer: the first check that found it on its way, or already credited or refunded. null until then, and for a transfer Fin saw before it kept this.
anyOf · 2 variants
Variant 1 · string · date-time
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
arrivedRawanyOfrequiredWhat 1Click reported arriving while it confirmed the transfer, in the asset's smallest unit; null until it reports a figure. For display while it confirms: receipt records what was finally credited.
Show attributes
What 1Click reported arriving while it confirmed the transfer, in the asset's smallest unit; null until it reports a figure. For display while it confirms: receipt records what was finally credited.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · null
valueanyOfrequiredWhat was credited (receipt.creditedRaw) was worth when it was credited, at the price Fin recorded with the credit. null until it is credited, and when no fresh price was known then.
Show attributes
What was credited (receipt.creditedRaw) was worth when it was credited, at the price Fin recorded with the credit. null until it is credited, and when no fresh price was known then.
anyOf · 2 variants
Variant 1 · object
What an amount was worth in US dollars when it moved, and the price it was valued at. Display only: derived on read, never an input to a transfer or a limit.
usdstringrequiredThe value in US dollars as plain decimal text, rounded down to the cent: the amount times priceUsd.
Validation rules
- Pattern
"^(0|[1-9]\\d*)(\\.\\d+)?$"
priceUsdstringrequiredThe USD price of one whole token it was valued at, as plain decimal text.
Validation rules
- Maximum length
80- Pattern
"^(0|[1-9]\\d*)(\\.\\d+)?$"
pricedAtstring · date-timerequiredWhen that price was observed.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 2 · null
createdAtstring · date-timerequiredWhen the deposit address was created.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen it last changed.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
Variant 6 · kind: automation
idstring · uuidrequiredThe item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
createdAtstring · date-timerequiredWhen it happened: the request, or the change. The feed is ordered by it.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen it last changed, such as a settlement or a credit.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
kindstringrequiredA change to an automation; read automation.
Validation rules
- Exact value
"automation"
automationobjectrequiredThe automation and what changed.
Show attributes
The automation and what changed.
automationIdstring · uuidrequiredThe automation that changed.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
namestringrequiredThe automation's name.
Validation rules
- Minimum length
1- Maximum length
120
changestringrequiredWhat happened to it: created, paused, resumed or deleted (which includes an automation that finished on its own). Edits are retained privately and shown in chat receipts and automation detail, not in this feed.
Validation rules
- Allowed values
["created","paused","resumed","deleted"]
Variant 7 · kind: solana
idstring · uuidrequiredThe item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
createdAtstring · date-timerequiredWhen it happened: the request, or the change. The feed is ordered by it.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen it last changed, such as a settlement or a credit.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
kindstringrequiredA buy or a sell of a Solana token through the agent's own Solana account, or SOL moved into or out of it; read solana.
Validation rules
- Exact value
"solana"
solanaobjectrequiredThe Solana trade or transfer the agent asked for, in a chat or in an automation's run.
Show attributes
The Solana trade or transfer the agent asked for, in a chat or in an automation's run.
conversationIdstring · uuidrequiredThe conversation in which the agent asked for it.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
originoneOfrequiredWhere it was asked for: an ordinary chat, or a conversation an automation started.
Show attributes
Where it was asked for: an ordinary chat, or a conversation an automation started.
oneOf · 2 variants
Variant 1 · type: conversation
typestringrequiredAn ordinary user-started conversation.
Validation rules
- Exact value
"conversation"
Variant 2 · type: automation
typestringrequiredA conversation an automation created.
Validation rules
- Exact value
"automation"
automationIdstring · uuidrequiredThe automation that created this conversation.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
namestringrequiredThe automation's name at the time this conversation started.
Validation rules
- Minimum length
1- Maximum length
120
titlestring or nullrequiredThe conversation's current title; null for an untitled conversation.
automationRunIdstringoptionalThe automation run that asked for it, when one did.
Validation rules
- Minimum length
1- Maximum length
160
sidestringrequiredWhich Solana operation this is: a buy, a sell, a fund or a withdrawal.
Validation rules
- Allowed values
["buy","sell","fund","withdraw"]
tokenobjectoptionalThe token bought or sold; absent for a fund or a withdrawal.
Show attributes
The token bought or sold; absent for a fund or a withdrawal.
mintstringrequiredThe token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
decimalsintegerrequiredThe mint's decimals, exactly as returned with the mint.
Validation rules
- Minimum
0- Maximum
18
tokenProgramstringrequiredThe program that owns the mint, exactly as returned with the mint: spl_token or token_2022.
Validation rules
- Allowed values
["spl_token","token_2022"]
requestanyOfrequiredWhat the agent asked for, as the user approved it: a buy's, a sell's, a fund's or a withdrawal's terms, as side says.
Show attributes
What the agent asked for, as the user approved it: a buy's, a sell's, a fund's or a withdrawal's terms, as side says.
anyOf · 4 variants
Variant 1 · object
One exact-input buy of a Solana token through the agent's own Solana account.
tokenobjectrequiredThe exact token to buy.
Show attributes
The exact token to buy.
mintstringrequiredThe token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
decimalsintegerrequiredThe mint's decimals, exactly as returned with the mint.
Validation rules
- Minimum
0- Maximum
18
tokenProgramstringrequiredThe program that owns the mint, exactly as returned with the mint: spl_token or token_2022.
Validation rules
- Allowed values
["spl_token","token_2022"]
payoneOfrequiredWhat the buy spends, as an exact input amount. Buying an exact number of tokens is not supported.
Show attributes
What the buy spends, as an exact input amount. Buying an exact number of tokens is not supported.
oneOf · 2 variants
Variant 1 · kind: usdc
Spend an exact amount of USDC or USDT from the agent wallet.
kindstringrequiredPay from one USDC or USDT holding of the agent wallet (USDC on NEAR, Base, Arbitrum, Ethereum or Solana, or USDT on NEAR; any USDC that covers it before USDT), moved to Solana as SOL first.
Validation rules
- Exact value
"usdc"
amountRawstringrequiredExact USDC or USDT to spend, in six-decimal atomic units: $50 is "50000000". At least 5 ("5000000"); a smaller buy is refused.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: sol
Spend an exact amount of SOL the agent's Solana account already holds.
kindstringrequiredPay with SOL already in the agent's Solana account.
Validation rules
- Exact value
"sol"
lamportsstringrequiredExact SOL to spend, in lamports (nine decimals): 0.5 SOL is "500000000".
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
maxValueLossBpsintegerrequiredExplicit all-in maximum value loss in basis points, from the value paid to the value received, fees and price impact included: at least 1, at most 1500. Required; no default.
Validation rules
- Minimum
1- Maximum
1500
maxSolTopUpUsdcRawstringrequiredThe most extra USDC or USDT the funding may add to keep SOL in the Solana account for network fees, in six-decimal atomic units: "0" for none, at most "1000000" (1 USDC). Must be "0" when paying with SOL.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
payWithobjectoptionalA buy paid in dollars and approved in chat as one call: the coin its funding pays with instead of a USDC or USDT holding, and the most of it it may spend, the SOL top-up included. Never SOL. A buy from a token's page refuses it.
Show attributes
A buy paid in dollars and approved in chat as one call: the coin its funding pays with instead of a USDC or USDT holding, and the most of it it may spend, the SOL top-up included. Never SOL. A buy from a token's page refuses it.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
maxInputRawstringrequiredThe most of the coin this funding may spend, in its smallest unit: the approved dollars at the price read when the approval opened, plus 5%.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · object
One sell of a Solana token held in the agent's own Solana account.
tokenobjectrequiredThe exact token to sell.
Show attributes
The exact token to sell.
mintstringrequiredThe token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
decimalsintegerrequiredThe mint's decimals, exactly as returned with the mint.
Validation rules
- Minimum
0- Maximum
18
tokenProgramstringrequiredThe program that owns the mint, exactly as returned with the mint: spl_token or token_2022.
Validation rules
- Allowed values
["spl_token","token_2022"]
amountoneOfrequiredHow much of the token to sell.
Show attributes
How much of the token to sell.
oneOf · 2 variants
Variant 1 · kind: exact
Sell an exact amount of the token.
kindstringrequiredSell an exact amount of the token.
Validation rules
- Exact value
"exact"
amountRawstringrequiredExact amount of the token to sell, in its smallest unit (scaled by the token's decimals).
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: fraction
Sell a share of the account's balance of the token.
kindstringrequiredSell a share of what the Solana account holds of the token.
Validation rules
- Exact value
"fraction"
bpsintegerrequiredThe share to sell, in basis points of the account's balance of the token: all of it is 10000, half is 5000.
Validation rules
- Minimum
1- Maximum
10000
receivestringrequiredusdc returns the proceeds to the agent wallet as USDC on NEAR, which is what selling means; sol keeps them as SOL in the agent's Solana account.
Validation rules
- Allowed values
["usdc","sol"]
maxValueLossBpsintegerrequiredExplicit all-in maximum value loss in basis points, from the value paid to the value received, fees and price impact included: at least 1, at most 1500. Required; no default.
Validation rules
- Minimum
1- Maximum
1500
Variant 3 · object
Move an exact amount of USDC or USDT, or that many dollars of a coin, from the agent wallet into its own Solana account as SOL.
amountRawstringrequiredExact USDC or USDT to move from the agent wallet into the agent's Solana account as SOL, in six-decimal atomic units: 5 USDC is "5000000". Spent from one USDC or USDT holding of the agent wallet (USDC on NEAR, Base, Arbitrum, Ethereum or Solana, or USDT on NEAR; any USDC that covers it before USDT) that alone covers it, never split across holdings, or, when it pays with a coin, that coin's value of it.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
maxValueLossBpsintegerrequiredExplicit maximum value loss in basis points, including provider fees: at most 300. Required; no default.
Validation rules
- Minimum
0- Maximum
300
payWithobjectoptionalApproved in chat as one call: the coin this funding pays with instead of a USDC or USDT holding, and the most of it it may spend. Never SOL.
Show attributes
Approved in chat as one call: the coin this funding pays with instead of a USDC or USDT holding, and the most of it it may spend. Never SOL.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
maxInputRawstringrequiredThe most of the coin this funding may spend, in its smallest unit: the approved dollars at the price read when the approval opened, plus 5%.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 4 · object
Move SOL from the agent's own Solana account back to its agent wallet.
amountoneOfrequiredHow much SOL to withdraw from the agent's Solana account.
Show attributes
How much SOL to withdraw from the agent's Solana account.
oneOf · 2 variants
Variant 1 · kind: exact
Withdraw an exact amount of SOL.
kindstringrequiredWithdraw an exact amount of SOL.
Validation rules
- Exact value
"exact"
lamportsstringrequiredExact SOL to withdraw, in lamports (nine decimals): 0.5 SOL is "500000000".
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: all_spendable
Withdraw all the spendable SOL.
kindstringrequiredWithdraw all the SOL above the reserve the account keeps for rent and network fees.
Validation rules
- Exact value
"all_spendable"
receivestringrequiredusdc returns it to the agent wallet as USDC on NEAR; sol returns it to the agent wallet as SOL.
Validation rules
- Allowed values
["usdc","sol"]
maxValueLossBpsintegerrequiredExplicit maximum value loss in basis points, including provider fees: at most 300. Required; no default.
Validation rules
- Minimum
0- Maximum
300
approvalobjectoptionalThe request's own approval, when it needed one; absent when it ran under an automation's standing permission.
Show attributes
The request's own approval, when it needed one; absent when it ran under an automation's standing permission.
approvalIdstring · uuidrequiredThe single-use approval of this exact request.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
statusstringrequiredThe user's recorded decision, with an overdue pending approval shown as expired; an approval alone does not mean it ran.
Validation rules
- Allowed values
["pending","approved","denied","expired"]
expiresAtstring · date-timerequiredWhen the approval stops covering a start.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
statusstringrequiredpending until it starts, usually while it waits for the user's approval. processing while it runs, or while a Solana transaction it sent, or its transfer back to the agent wallet, has not finished. Then completed (the tokens bought, the proceeds of a sale or the SOL moved arrived), partial (part of it stands: a buy whose swap never happened after the account was funded, so the SOL is in the agent's Solana account, or a sale whose swap landed but whose transfer back did not finish, or that kept SOL, so the SOL is in the account or with 1Click until it refunds it; solLeftLamports says how much the account holds), refunded (1Click sent the funds back where they came from) or failed (nothing moved; failureReason says why). denied and expired mean the user denied it, or its approval ran out, before it started. uncertain means the result could not be confirmed yet: never ask the agent for a replacement, keep checking. completed, partial, refunded, failed, denied and expired are final.
Validation rules
- Allowed values
["pending","processing","completed","partial","refunded","failed","denied","expired","uncertain"]
failureReasonanyOfrequiredWhen status is failed, why; otherwise null. insufficient_funds: the agent wallet or the Solana account did not hold enough, the account's reserve included. quote_rejected: the price or the route failed its checks, the loss limit would have been crossed, or a buy was under the minimum. unavailable: a temporary problem stopped it before anything was sent. not_authorized: the approval no longer covered it, or the token is one the agent does not trade. stopped: an operator paused trading or turned the wallet off. not_executed: nothing it sent landed before it expired. signing_disabled: this deployment does not sign trades. In every case nothing moved.
Show attributes
When status is failed, why; otherwise null. insufficient_funds: the agent wallet or the Solana account did not hold enough, the account's reserve included. quote_rejected: the price or the route failed its checks, the loss limit would have been crossed, or a buy was under the minimum. unavailable: a temporary problem stopped it before anything was sent. not_authorized: the approval no longer covered it, or the token is one the agent does not trade. stopped: an operator paused trading or turned the wallet off. not_executed: nothing it sent landed before it expired. signing_disabled: this deployment does not sign trades. In every case nothing moved.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Allowed values
["insufficient_funds","quote_rejected","quote_expired","unavailable","not_authorized","stopped","not_executed","signing_disabled"]
Variant 2 · null
paidobjectoptionalWhat the operation spent, once known.
Show attributes
What the operation spent, once known.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
receivedobjectoptionalWhat the operation received, once it landed or settled.
Show attributes
What the operation received, once it landed or settled.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
solLeftLamportsstringoptionalSOL the operation left in the Solana account, in lamports: what a partial outcome left behind.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
transactionsarrayrequiredEvery transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of sales.
Show attributes
Every transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of sales.
Validation rules
- Maximum items
6
Array items · object
One signed Solana transaction of this operation.
purposestringrequiredswap trades on Jupiter; sweep sends SOL back to the agent wallet through 1Click.
Validation rules
- Allowed values
["swap","sweep"]
signaturestringrequiredA Solana transaction signature, which is also its id: base58 text of 64 bytes.
Validation rules
- Minimum length
64- Maximum length
88- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
statestringrequiredsigned and dispatching are not yet sent or not yet seen; landed succeeded on chain, failed landed with an error, expired provably never will; uncertain is not yet known: never sign it again.
Validation rules
- Allowed values
["signed","dispatching","landed","failed","expired","uncertain"]
feeLamportsstringoptionalThe network fee the transaction paid, in lamports, once it landed.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 8 · kind: solana_sell_many
idstring · uuidrequiredThe item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
createdAtstring · date-timerequiredWhen it happened: the request, or the change. The feed is ordered by it.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen it last changed, such as a settlement or a credit.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
kindstringrequiredA sale of several Solana tokens under one approval, through the agent's own Solana account; read solanaSellMany.
Validation rules
- Exact value
"solana_sell_many"
solanaSellManyobjectrequiredThe sale the agent asked for, in a chat or in an automation's run: each coin as approved, how the sale stands, and what became of each coin.
Show attributes
The sale the agent asked for, in a chat or in an automation's run: each coin as approved, how the sale stands, and what became of each coin.
conversationIdstring · uuidrequiredThe conversation in which the agent asked for it.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
originoneOfrequiredWhere it was asked for: an ordinary chat, or a conversation an automation started.
Show attributes
Where it was asked for: an ordinary chat, or a conversation an automation started.
oneOf · 2 variants
Variant 1 · type: conversation
typestringrequiredAn ordinary user-started conversation.
Validation rules
- Exact value
"conversation"
Variant 2 · type: automation
typestringrequiredA conversation an automation created.
Validation rules
- Exact value
"automation"
automationIdstring · uuidrequiredThe automation that created this conversation.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
namestringrequiredThe automation's name at the time this conversation started.
Validation rules
- Minimum length
1- Maximum length
120
titlestring or nullrequiredThe conversation's current title; null for an untitled conversation.
automationRunIdstringoptionalThe automation run that asked for it, when one did.
Validation rules
- Minimum length
1- Maximum length
160
approvalobjectoptionalThe request's own approval, when it needed one; absent when it ran under an automation's standing permission.
Show attributes
The request's own approval, when it needed one; absent when it ran under an automation's standing permission.
approvalIdstring · uuidrequiredThe single-use approval of this exact request.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
statusstringrequiredThe user's recorded decision, with an overdue pending approval shown as expired; an approval alone does not mean it ran.
Validation rules
- Allowed values
["pending","approved","denied","expired"]
expiresAtstring · date-timerequiredWhen the approval stops covering a start.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
statusstringrequiredpending until it starts, usually while it waits for the user's approval. processing while it runs, or while a Solana transaction it sent, or its transfer back to the agent wallet, has not finished. Then completed (the tokens bought, the proceeds of a sale or the SOL moved arrived), partial (part of it stands: a buy whose swap never happened after the account was funded, so the SOL is in the agent's Solana account, or a sale whose swap landed but whose transfer back did not finish, or that kept SOL, so the SOL is in the account or with 1Click until it refunds it; solLeftLamports says how much the account holds), refunded (1Click sent the funds back where they came from) or failed (nothing moved; failureReason says why). denied and expired mean the user denied it, or its approval ran out, before it started. uncertain means the result could not be confirmed yet: never ask the agent for a replacement, keep checking. completed, partial, refunded, failed, denied and expired are final.
Validation rules
- Allowed values
["pending","processing","completed","partial","refunded","failed","denied","expired","uncertain"]
failureReasonanyOfrequiredWhen status is failed, why; otherwise null. insufficient_funds: the agent wallet or the Solana account did not hold enough, the account's reserve included. quote_rejected: the price or the route failed its checks, the loss limit would have been crossed, or a buy was under the minimum. unavailable: a temporary problem stopped it before anything was sent. not_authorized: the approval no longer covered it, or the token is one the agent does not trade. stopped: an operator paused trading or turned the wallet off. not_executed: nothing it sent landed before it expired. signing_disabled: this deployment does not sign trades. In every case nothing moved.
Show attributes
When status is failed, why; otherwise null. insufficient_funds: the agent wallet or the Solana account did not hold enough, the account's reserve included. quote_rejected: the price or the route failed its checks, the loss limit would have been crossed, or a buy was under the minimum. unavailable: a temporary problem stopped it before anything was sent. not_authorized: the approval no longer covered it, or the token is one the agent does not trade. stopped: an operator paused trading or turned the wallet off. not_executed: nothing it sent landed before it expired. signing_disabled: this deployment does not sign trades. In every case nothing moved.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Allowed values
["insufficient_funds","quote_rejected","quote_expired","unavailable","not_authorized","stopped","not_executed","signing_disabled"]
Variant 2 · null
receivedobjectoptionalWhat the operation received, once it landed or settled.
Show attributes
What the operation received, once it landed or settled.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
solLeftLamportsstringoptionalSOL the operation left in the Solana account, in lamports: what a partial outcome left behind.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
transactionsarrayrequiredEvery transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of sales.
Show attributes
Every transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of sales.
Validation rules
- Maximum items
6
Array items · object
One signed Solana transaction of this operation.
purposestringrequiredswap trades on Jupiter; sweep sends SOL back to the agent wallet through 1Click.
Validation rules
- Allowed values
["swap","sweep"]
signaturestringrequiredA Solana transaction signature, which is also its id: base58 text of 64 bytes.
Validation rules
- Minimum length
64- Maximum length
88- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
statestringrequiredsigned and dispatching are not yet sent or not yet seen; landed succeeded on chain, failed landed with an error, expired provably never will; uncertain is not yet known: never sign it again.
Validation rules
- Allowed values
["signed","dispatching","landed","failed","expired","uncertain"]
feeLamportsstringoptionalThe network fee the transaction paid, in lamports, once it landed.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
requestobjectrequiredThe sale as the user approved it: each coin with its exact amount and its own loss bound, in the order they sold, and what they return.
Show attributes
The sale as the user approved it: each coin with its exact amount and its own loss bound, in the order they sold, and what they return.
sellsarrayrequiredThe coins to sell, in the order they are sold: 2 to 6, each a different mint, none of them SOL itself.
Show attributes
The coins to sell, in the order they are sold: 2 to 6, each a different mint, none of them SOL itself.
Validation rules
- Minimum items
2- Maximum items
6
Array items · object
One coin of a multi-coin sale, sold through the agent's own Solana account.
tokenobjectrequiredThe exact token to sell.
Show attributes
The exact token to sell.
mintstringrequiredThe token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
decimalsintegerrequiredThe mint's decimals, exactly as returned with the mint.
Validation rules
- Minimum
0- Maximum
18
tokenProgramstringrequiredThe program that owns the mint, exactly as returned with the mint: spl_token or token_2022.
Validation rules
- Allowed values
["spl_token","token_2022"]
amountoneOfrequiredHow much of the token to sell.
Show attributes
How much of the token to sell.
oneOf · 2 variants
Variant 1 · kind: exact
Sell an exact amount of the token.
kindstringrequiredSell an exact amount of the token.
Validation rules
- Exact value
"exact"
amountRawstringrequiredExact amount of the token to sell, in its smallest unit (scaled by the token's decimals).
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: fraction
Sell a share of the account's balance of the token.
kindstringrequiredSell a share of what the Solana account holds of the token.
Validation rules
- Exact value
"fraction"
bpsintegerrequiredThe share to sell, in basis points of the account's balance of the token: all of it is 10000, half is 5000.
Validation rules
- Minimum
1- Maximum
10000
maxValueLossBpsintegerrequiredExplicit all-in maximum value loss in basis points, from the value paid to the value received, fees and price impact included: at least 1, at most 1500. Required; no default.
Validation rules
- Minimum
1- Maximum
1500
receivestringrequiredusdc returns the summed proceeds of every sale that went through to the agent wallet as USDC on NEAR, in one transfer once the last sale ran; sol keeps them as SOL in the agent's Solana account.
Validation rules
- Allowed values
["usdc","sol"]
salesarrayoptionalEach coin in the order it ran and what became of it, once the sale's outcome is recorded; received is what the whole sale returned.
Show attributes
Each coin in the order it ran and what became of it, once the sale's outcome is recorded; received is what the whole sale returned.
Validation rules
- Maximum items
6
Array items · object
One coin of a multi-coin sale, and what became of it.
tokenobjectrequiredThe coin this sale sold, or was to sell.
Show attributes
The coin this sale sold, or was to sell.
mintstringrequiredThe token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
decimalsintegerrequiredThe mint's decimals, exactly as returned with the mint.
Validation rules
- Minimum
0- Maximum
18
tokenProgramstringrequiredThe program that owns the mint, exactly as returned with the mint: spl_token or token_2022.
Validation rules
- Allowed values
["spl_token","token_2022"]
statestringrequiredsold once its swap landed; not_sold when it ended without selling anything (refused before any signature, every attempt failed or expired, or the sale stopped before it); uncertain while an attempt of it may still land: never sign it again.
Validation rules
- Allowed values
["sold","not_sold","uncertain"]
paidobjectoptionalWhat this sale sold, once its swap landed: the token's exact amount.
Show attributes
What this sale sold, once its swap landed: the token's exact amount.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
solGainedLamportsstringoptionalThe SOL this sale's landed swap added to the Solana account, in lamports, before the one transfer back.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
transactionsarrayoptionalThis coin's swap attempts the sale signed, in the order it signed them; absent while none was signed.
Show attributes
This coin's swap attempts the sale signed, in the order it signed them; absent while none was signed.
Validation rules
- Maximum items
3
Array items · object
One signed Solana transaction of this operation.
purposestringrequiredswap trades on Jupiter; sweep sends SOL back to the agent wallet through 1Click.
Validation rules
- Allowed values
["swap","sweep"]
signaturestringrequiredA Solana transaction signature, which is also its id: base58 text of 64 bytes.
Validation rules
- Minimum length
64- Maximum length
88- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
statestringrequiredsigned and dispatching are not yet sent or not yet seen; landed succeeded on chain, failed landed with an error, expired provably never will; uncertain is not yet known: never sign it again.
Validation rules
- Allowed values
["signed","dispatching","landed","failed","expired","uncertain"]
feeLamportsstringoptionalThe network fee the transaction paid, in lamports, once it landed.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 9 · kind: solana_trade
idstring · uuidrequiredThe item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
createdAtstring · date-timerequiredWhen it happened: the request, or the change. The feed is ordered by it.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen it last changed, such as a settlement or a credit.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
kindstringrequiredA buy or a sale of a Solana token the user placed themselves on its page, with Place a Solana trade; read solanaTrade.
Validation rules
- Exact value
"solana_trade"
solanaTradeobjectrequiredThe trade, as Get a Solana trade returns it.
Show attributes
The trade, as Get a Solana trade returns it.
idstring · uuidrequiredThe trade's id, for Get a Solana trade.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
requestKeystring · uuidrequiredThe Idempotency-Key it was placed under.
Validation rules
- Format
"uuid"- Pattern
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
tradeoneOfrequiredThe trade as the user signed it.
Show attributes
The trade as the user signed it.
oneOf · 2 variants
Variant 1 · object
sidestringrequiredBuy the token.
Validation rules
- Exact value
"buy"
buyobjectrequiredThe exact buy: the token, what it pays, its all-in loss bound and its SOL top-up cap.
Show attributes
The exact buy: the token, what it pays, its all-in loss bound and its SOL top-up cap.
tokenobjectrequiredThe exact token to buy.
Show attributes
The exact token to buy.
mintstringrequiredThe token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
decimalsintegerrequiredThe mint's decimals, exactly as returned with the mint.
Validation rules
- Minimum
0- Maximum
18
tokenProgramstringrequiredThe program that owns the mint, exactly as returned with the mint: spl_token or token_2022.
Validation rules
- Allowed values
["spl_token","token_2022"]
payoneOfrequiredWhat the buy spends, as an exact input amount. Buying an exact number of tokens is not supported.
Show attributes
What the buy spends, as an exact input amount. Buying an exact number of tokens is not supported.
oneOf · 2 variants
Variant 1 · kind: usdc
Spend an exact amount of USDC or USDT from the agent wallet.
kindstringrequiredPay from one USDC or USDT holding of the agent wallet (USDC on NEAR, Base, Arbitrum, Ethereum or Solana, or USDT on NEAR; any USDC that covers it before USDT), moved to Solana as SOL first.
Validation rules
- Exact value
"usdc"
amountRawstringrequiredExact USDC or USDT to spend, in six-decimal atomic units: $50 is "50000000". At least 5 ("5000000"); a smaller buy is refused.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: sol
Spend an exact amount of SOL the agent's Solana account already holds.
kindstringrequiredPay with SOL already in the agent's Solana account.
Validation rules
- Exact value
"sol"
lamportsstringrequiredExact SOL to spend, in lamports (nine decimals): 0.5 SOL is "500000000".
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
maxValueLossBpsintegerrequiredExplicit all-in maximum value loss in basis points, from the value paid to the value received, fees and price impact included: at least 1, at most 1500. Required; no default.
Validation rules
- Minimum
1- Maximum
1500
maxSolTopUpUsdcRawstringrequiredThe most extra USDC or USDT the funding may add to keep SOL in the Solana account for network fees, in six-decimal atomic units: "0" for none, at most "1000000" (1 USDC). Must be "0" when paying with SOL.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
payWithobjectoptionalA buy paid in dollars and approved in chat as one call: the coin its funding pays with instead of a USDC or USDT holding, and the most of it it may spend, the SOL top-up included. Never SOL. A buy from a token's page refuses it.
Show attributes
A buy paid in dollars and approved in chat as one call: the coin its funding pays with instead of a USDC or USDT holding, and the most of it it may spend, the SOL top-up included. Never SOL. A buy from a token's page refuses it.
tokenIdstringrequiredThe exact ledger asset identifier, including its token standard namespace.
Validation rules
- Maximum length
256- Pattern
"^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$"
decimalsintegerrequiredHow many decimal places the token's smallest unit represents.
Validation rules
- Minimum
0- Maximum
38
maxInputRawstringrequiredThe most of the coin this funding may spend, in its smallest unit: the approved dollars at the price read when the approval opened, plus 5%.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · object
sidestringrequiredSell the token.
Validation rules
- Exact value
"sell"
sellobjectrequiredThe exact sale: the token, how much of it, where the proceeds go and its all-in loss bound.
Show attributes
The exact sale: the token, how much of it, where the proceeds go and its all-in loss bound.
tokenobjectrequiredThe exact token to sell.
Show attributes
The exact token to sell.
mintstringrequiredThe token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker.
Validation rules
- Minimum length
32- Maximum length
44- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
decimalsintegerrequiredThe mint's decimals, exactly as returned with the mint.
Validation rules
- Minimum
0- Maximum
18
tokenProgramstringrequiredThe program that owns the mint, exactly as returned with the mint: spl_token or token_2022.
Validation rules
- Allowed values
["spl_token","token_2022"]
amountoneOfrequiredHow much of the token to sell.
Show attributes
How much of the token to sell.
oneOf · 2 variants
Variant 1 · kind: exact
Sell an exact amount of the token.
kindstringrequiredSell an exact amount of the token.
Validation rules
- Exact value
"exact"
amountRawstringrequiredExact amount of the token to sell, in its smallest unit (scaled by the token's decimals).
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
Variant 2 · kind: fraction
Sell a share of the account's balance of the token.
kindstringrequiredSell a share of what the Solana account holds of the token.
Validation rules
- Exact value
"fraction"
bpsintegerrequiredThe share to sell, in basis points of the account's balance of the token: all of it is 10000, half is 5000.
Validation rules
- Minimum
1- Maximum
10000
receivestringrequiredusdc returns the proceeds to the agent wallet as USDC on NEAR, which is what selling means; sol keeps them as SOL in the agent's Solana account.
Validation rules
- Allowed values
["usdc","sol"]
maxValueLossBpsintegerrequiredExplicit all-in maximum value loss in basis points, from the value paid to the value received, fees and price impact included: at least 1, at most 1500. Required; no default.
Validation rules
- Minimum
1- Maximum
1500
statusstringrequiredpending until it starts, usually while it waits for the user's approval. processing while it runs, or while a Solana transaction it sent, or its transfer back to the agent wallet, has not finished. Then completed (the tokens bought, the proceeds of a sale or the SOL moved arrived), partial (part of it stands: a buy whose swap never happened after the account was funded, so the SOL is in the agent's Solana account, or a sale whose swap landed but whose transfer back did not finish, or that kept SOL, so the SOL is in the account or with 1Click until it refunds it; solLeftLamports says how much the account holds), refunded (1Click sent the funds back where they came from) or failed (nothing moved; failureReason says why). denied and expired mean the user denied it, or its approval ran out, before it started. uncertain means the result could not be confirmed yet: never ask the agent for a replacement, keep checking. completed, partial, refunded, failed, denied and expired are final.
Validation rules
- Allowed values
["pending","processing","completed","partial","refunded","failed","denied","expired","uncertain"]
failureReasonanyOfrequiredWhen status is failed, why; otherwise null. insufficient_funds: the agent wallet or the Solana account did not hold enough, the account's reserve included. quote_rejected: the price or the route failed its checks, the loss limit would have been crossed, or a buy was under the minimum. unavailable: a temporary problem stopped it before anything was sent. not_authorized: the approval no longer covered it, or the token is one the agent does not trade. stopped: an operator paused trading or turned the wallet off. not_executed: nothing it sent landed before it expired. signing_disabled: this deployment does not sign trades. In every case nothing moved.
Show attributes
When status is failed, why; otherwise null. insufficient_funds: the agent wallet or the Solana account did not hold enough, the account's reserve included. quote_rejected: the price or the route failed its checks, the loss limit would have been crossed, or a buy was under the minimum. unavailable: a temporary problem stopped it before anything was sent. not_authorized: the approval no longer covered it, or the token is one the agent does not trade. stopped: an operator paused trading or turned the wallet off. not_executed: nothing it sent landed before it expired. signing_disabled: this deployment does not sign trades. In every case nothing moved.
anyOf · 2 variants
Variant 1 · string
Validation rules
- Allowed values
["insufficient_funds","quote_rejected","quote_expired","unavailable","not_authorized","stopped","not_executed","signing_disabled"]
Variant 2 · null
stageobjectoptionalThe step it is on, once it started: funding moves USDC from the agent wallet to the Solana account as SOL through 1Click, swap trades on Jupiter, sweep sends a sale's SOL back to the agent wallet. A higher revision is newer.
Show attributes
The step it is on, once it started: funding moves USDC from the agent wallet to the Solana account as SOL through 1Click, swap trades on Jupiter, sweep sends a sale's SOL back to the agent wallet. A higher revision is newer.
revisionintegerrequiredPersisted lifecycle stage number. Ignore an older snapshot for the same operation.
Validation rules
- Minimum
1- Maximum
1024
phasestringrequiredValidation rules
- Allowed values
["funding","swap","sweep"]
statestringrequiredValidation rules
- Allowed values
["preparing","prepared","submitting","pending","delivering","confirmed","uncertain","refunded","failed","not_executed"]
transactionIndexintegeroptionalThe stored native transaction attempt, never a funding plan leg index.
Validation rules
- Minimum
0- Maximum
5
paidobjectoptionalWhat the operation spent, once known.
Show attributes
What the operation spent, once known.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
receivedobjectoptionalWhat the operation received, once it landed or settled.
Show attributes
What the operation received, once it landed or settled.
assetstringrequiredusdc is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, sol is SOL, token is the operation's own token.
Validation rules
- Allowed values
["usdc","sol","token"]
amountRawstringrequiredThe exact amount, in the asset's smallest unit.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
solLeftLamportsstringoptionalSOL the operation left in the Solana account, in lamports: what a partial outcome left behind.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
transactionsarrayrequiredEvery transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of sales.
Show attributes
Every transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of sales.
Validation rules
- Maximum items
6
Array items · object
One signed Solana transaction of this operation.
purposestringrequiredswap trades on Jupiter; sweep sends SOL back to the agent wallet through 1Click.
Validation rules
- Allowed values
["swap","sweep"]
signaturestringrequiredA Solana transaction signature, which is also its id: base58 text of 64 bytes.
Validation rules
- Minimum length
64- Maximum length
88- Pattern
"^[1-9A-HJ-NP-Za-km-z]+$"
statestringrequiredsigned and dispatching are not yet sent or not yet seen; landed succeeded on chain, failed landed with an error, expired provably never will; uncertain is not yet known: never sign it again.
Validation rules
- Allowed values
["signed","dispatching","landed","failed","expired","uncertain"]
feeLamportsstringoptionalThe network fee the transaction paid, in lamports, once it landed.
Validation rules
- Pattern
"^(0|[1-9]\\d{0,38})$"
completeBystring · date-timerequiredThe latest it may still run, as the user signed it; its status is final by then.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
createdAtstring · date-timerequiredWhen it was placed.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
updatedAtstring · date-timerequiredWhen its records last changed.
Validation rules
- Format
"date-time"- Pattern
"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
nextCursorstring or nullrequiredPass it back as cursor for older items; null at the end.
pendingApprovalsintegerrequiredHow many approvals are waiting for the user, across every conversation.
Validation rules
- Minimum
0- Maximum
9007199254740991
400 The request could not be read as this operation expects.
The request could not be read as this operation expects.
invalid_input— the body or query failed validation;issuesnames each fieldinvalid_cursor— thecursoris not one this list minted
application/problem+json · object
RFC 9457 problem details: what every error response carries. Never a provider's message, a query or a stack.
typestringrequiredThe kind of problem as a URN, urn:fin:error:<kind>; stable, compare against it
titlestringrequiredThe kind's human title, for logs; never parse it
statusintegerrequiredThe HTTP status, repeated in the body
Validation rules
- Minimum
400- Maximum
599
reasonstringoptionalThe machine-readable why. One of:
run_active(409) — a run already holds this conversationbudget_exhausted(429) — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze itapproval_not_pending(409) — the approval was already decided or has expired, or its id does not exist or belongs to a different conversationexecution_capacity(429) — no capacity is free to run this right now; honourRetry-Afterexecution_unavailable(503) — the service that runs the agent could not take the work;retryablesays whether to try againstop_pending(409) — a stop is already in progress and its cleanup is not yet confirmedautomation_changed(409) — the automation changed while this request was handled; read it again and retryautomation_held(409) — an operator holds the automation; it fires again when releasedautomation_invalid(409) — the automation's definition cannot run as writtenautomation_paused(409) — the automation is paused; resume it firstautomation_has_no_webhook(409) — the automation does not run on incoming events, so it has no webhookautomation_limit(409) — the user already has as many automations as the deployment allowsprofile_unknown_tool(400) —profile.toolsnames a tool this deployment does not havedeployment_paused(503) — an operator paused this kind of work for the deployment; try again laterrun_not_active(409) — the run named in the path is not the conversation's live runwithdrawal_changed(409) — the request key already binds different withdrawal terms, or the current balance cannot cover the requested amountswap_changed(409) — the swap cannot be made as asked: an asset is no longer available or the current balance cannot cover the amount; get a new quoteorder_changed(409) — the order can no longer be placed as prepared: the agent wallet no longer holds the amount, an asset is no longer offered, or its minimum no longer matches the assets' precision; prepare it againprediction_order_changed(409) — the Polymarket order can no longer be placed as signed: the market closed or stopped taking orders, its price is off the market's tick or its size off Polymarket's minimum, its fee or cost would exceed the signed caps, the Polymarket account cannot cover it, or the signature lapsed before it was placed. Nothing was placed; prepare it againsolana_trade_changed(409) — the Solana trade can no longer run as signed: the token's decimals or program changed, the agent's Solana account or holdings no longer fit it, another Solana trade is running, or the signature lapsed before it started. Nothing moved; prepare it againtrade_not_recoverable(409) — the original trade or a recovery attempt remains active or uncertain, its unfinished actions lack conclusive recovery proof, or its remaining proposal can no longer be usedorder_not_cancelable(409) — the limit order can no longer be cancelled: it filled or expired, or the swap provider never took it. Read the order for where it standsgrid_not_active(409) — the grid is not running, so it cannot be paused: it is already paused, stopping or ended. Read the grid for where it standsgrid_not_paused(409) — the grid is not paused, so there is nothing to resume. Read the grid for where it standssuggestion_changed(409) — the suggestion no longer holds: the account or the market moved since fin made it, the user set it aside, or it cannot be made where the user is now. Say it changed, and read the page's suggestions againrequest_key_conflict(409) — the request identity already binds different terms; retrieve the original resource or use a new identity for a new requestquestion_not_pending(409) — the questionnaire has already been answered, closed, or is not awaiting this submissionflag_changed(409) — the flag's targeting changed since you read it; read it again and retrygroup_changed(409) — the group changed or was deleted since you read it; read it again and retrygroup_in_use(409) — a flag's rules still name this group; take it out of those rules firstgroup_name_taken(409) — another group already has this nameagent_wallet_required(409) — create the agent wallet before opening a perps, prediction-market or Solana accountwallet_account_unsupported(409) — the user's wallet is an Agent API wallet, whose Intents account is a 0x address this route cannot name; read it with Get wallet account, Get wallet account balances and Open a wallet account session insteadconversation_deleted(410) — the conversation was deleted; its history stays readableautomation_deleted(410) — the automation was deletedgrid_ended(410) — the grid stopped, expired or failed; it stays readable but takes no command. A new grid needs the user's approval in chatcredential_expired(401) — the user token has expired; obtain a fresh oneaccount_disabled(403) — an operator disabled the accountperps_disabled(403) — perps is not enabled for this userprediction_disabled(403) — prediction-market trading is not enabled for this usersolana_disabled(403) — Solana trading is not enabled for this userno_account(404) — the user has not opened the account this call reads; open it firstnot_available_in_region(403) — perps funding is unavailable in the user's region for this request; withdrawals remain availablesteering_disabled(403) — steering a working run is not turned on for this user; send the message with Start a run once the run endsbaskets_disabled(403) — idea baskets are not turned on for this user; hide the Ideas pages and their basketsbasket_buying(409) — the basket is still buying, so it cannot be deleted yet; try again once its result is inbasket_awaiting_approval(409) — an approval to buy this basket is still open; decline it in the chat, then delete the basketbasket_step_not_failed(409) — the step bought, or the basket is not partly bought, so no order can be linked to it; read the basket againbasket_step_linked(409) — another order is already linked to this step; a link is permanent, so read the basket againbasket_order_not_linkable(400) — the order cannot stand in for this step: it is not one of the step'sfailures[].linkableorders, or another basket step already holds itvoice_disabled(403) — voice input is not turned on for this user; let them type insteadvoice_unavailable(503) — this deployment has no speech model, so it cannot transcribe recordings; let the user type insteadprovider_unavailable(503) — an external provider the call depends on did not answerquote_refused(400) — 1Click would not quote this request, usually an amount below what it routes or a pair it does not offer; nothing was reserved. Change the amount or the assets and quote again; for a deposit address, no address was issued, so offer another networkinvalid_input(400) — the body or query failed validation;issuesnames each fieldinternal(500) — a fault on our side; quoterequestIdwhen reporting itpartner_key_required(401) — noX-Api-Keyheader was sentpartner_key_invalid(401) — theX-Api-Keyis unknown or revokedsubject_mismatch(403) — the{userId}in the path is not the token's userorigin_rejected(403) — a browserOriginother than the configured web originpermission_required(403) — the verified credential is not permitted to make this callsignature_required(403) — creating the agent wallet needs the user's signature: send the user's signature ofcreation.messagefrom Get the agent wallet asauthorizationasset_not_withdrawable(403) — tokenized stocks cannot be withdrawn; sell them firstasset_not_swappable(403) — the swap names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offasset_not_tradable(403) — the order names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offsolana_token_not_tradable(403) — Fin won't trade this token: its mint lets someone freeze, move or charge for holdings or pause transfers, it can't be sold back, Fin couldn't read its mint, it has no reliable price, or it is wrapped SOL. A sale is refused only for what would stop it landinglimit_orders_disabled(403) — limit orders are not enabled for this usergrid_trading_disabled(403) — grid trading is not enabled for this user, so a paused grid cannot be resumed; pausing and cancelling a grid are never gateddeposit_limit_exceeded(429) — the deposit would take the agent wallet past the user's deposit limit, or, for a deposit address, the wallet has no room left under it; nothing was recorded. ReaddepositLimit.availableCentsfrom Get balances for how much fits now, and deposit no more than thatpolicy_change_throttled(429) — the user's Agent API wallet changed what it allows a few minutes ago, and the NEAR Intents Agent API lets it change again only after a cooldown; nothing was asked or signed, so call again onceRetry-Afterhas passedagent_slippage_exceeded(403) — the user's wallet is an Agent API wallet whose agent signs only trades that lose at most the share of their value its owner allowed (max_slippage_bps): fees, price and slippage together, by 1Click's own USD values at the quote's minimum output. This trade's quote loses more, states no USD value, or, before there is a quote, its loss bound is already quoted with more slippage than that (half the bound, plus 1Click's fee at the most it has been seen to take, 20 basis points, before an approval). Very small trades lose more to fixed fees; nothing was signed, so ask again with a larger amount or a smaller loss boundagent_api_orders_unavailable(403) — the user's Agent API wallet needs wallet setup to enable limit orders, or the order exceeds this wallet's 168-hour maximum; finish wallet setup or choose at most 168 hours before trying again; nothing was approved or signeddestination_not_allowed(403) — the user's wallet is an Agent API wallet, whose agent pays a deposit only to itself, to a NEAR Intents account its owner listed (on the confidential ledger) or to an address on a chain its owner listed; allow this one with Add a withdrawal destination (one owner signature), then ask again. A public NEAR Intents account, or an address with no valid spelling on its chain, cannot be paid at all; nothing was signedrate_limited(429) — the per-key or per-user limit is spent; honourRetry-Afterpartner_request_capacity(429) — this partner's request quota across all keys and replicas is spent; honour Retry-Afterpartner_run_capacity(429) — this partner's active run quota is full; honour Retry-After and reuse the same request identitystream_capacity(429) — the partner, user or replica has no free stream capacity; honourRetry-Afterinvalid_cursor(400) — thecursoris not one this list mintedinvalid_question_answer(400) — the questionnaire answer does not match its questions or allowed choicesquestion_closed(410) — the questionnaire expired or was cancelledunknown_target(400) — a rule names a partner, group or user that does not exist, or a user outside the partners the same rule namesscope_invalid(400) — a subject in the scope is not a subject id, or appears twicesubject_unsupported(404) — a subject in the scope is not one market briefs cover; list them with List market subjectsbrief_not_found(404) — no market brief job with this id was created with your partner keybriefs_busy(429) — your market briefs are at their limit of briefs generating at once; retry afterRetry-Aftermarket_briefs_disabled(403) — market briefs are not turned on for your partner keystory_not_found(404) — no market story with this id is current: it never was one, or Fin no longer shows it because its sources were withdrawn or its figures can no longer be read
Validation rules
- Allowed values
["run_active","budget_exhausted","approval_not_pending","execution_capacity","execution_unavailable","stop_pending","automation_changed","automation_held","automation_invalid","automation_paused","automation_has_no_webhook","automation_limit","profile_unknown_tool","deployment_paused","run_not_active","withdrawal_changed","swap_changed","order_changed","prediction_order_changed","solana_trade_changed","trade_not_recoverable","order_not_cancelable","grid_not_active","grid_not_paused","suggestion_changed","request_key_conflict","question_not_pending","flag_changed","group_changed","group_in_use","group_name_taken","agent_wallet_required","wallet_account_unsupported","conversation_deleted","automation_deleted","grid_ended","credential_expired","account_disabled","perps_disabled","prediction_disabled","solana_disabled","no_account","not_available_in_region","steering_disabled","baskets_disabled","basket_buying","basket_awaiting_approval","basket_step_not_failed","basket_step_linked","basket_order_not_linkable","voice_disabled","voice_unavailable","provider_unavailable","quote_refused","invalid_input","internal","partner_key_required","partner_key_invalid","subject_mismatch","origin_rejected","permission_required","signature_required","asset_not_withdrawable","asset_not_swappable","asset_not_tradable","solana_token_not_tradable","limit_orders_disabled","grid_trading_disabled","deposit_limit_exceeded","policy_change_throttled","agent_slippage_exceeded","agent_api_orders_unavailable","destination_not_allowed","rate_limited","partner_request_capacity","partner_run_capacity","stream_capacity","invalid_cursor","invalid_question_answer","question_closed","unknown_target","scope_invalid","subject_unsupported","brief_not_found","briefs_busy","market_briefs_disabled","story_not_found"]
requestIdstringrequiredThe id Fin used for this request; quote it when reporting a problem
retryablebooleanrequiredWhether repeating the same request later can succeed without changing it
detailstringoptionalOnly on invalid_input: which part of the request failed validation
issuesarrayoptionalOnly on invalid_input: one entry per failing field
Show attributes
Only on invalid_input: one entry per failing field
Array items · object
pathstringrequiredThe JSON pointer of the failing field; empty for the root object
messagestringrequiredWhy the field failed
401 A credential is missing, invalid or expired.
A credential is missing, invalid or expired.
partner_key_required— noX-Api-Keyheader was sentpartner_key_invalid— theX-Api-Keyis unknown or revokedcredential_expired— the user token has expired; obtain a fresh one
application/problem+json · object
RFC 9457 problem details: what every error response carries. Never a provider's message, a query or a stack.
typestringrequiredThe kind of problem as a URN, urn:fin:error:<kind>; stable, compare against it
titlestringrequiredThe kind's human title, for logs; never parse it
statusintegerrequiredThe HTTP status, repeated in the body
Validation rules
- Minimum
400- Maximum
599
reasonstringoptionalThe machine-readable why. One of:
run_active(409) — a run already holds this conversationbudget_exhausted(429) — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze itapproval_not_pending(409) — the approval was already decided or has expired, or its id does not exist or belongs to a different conversationexecution_capacity(429) — no capacity is free to run this right now; honourRetry-Afterexecution_unavailable(503) — the service that runs the agent could not take the work;retryablesays whether to try againstop_pending(409) — a stop is already in progress and its cleanup is not yet confirmedautomation_changed(409) — the automation changed while this request was handled; read it again and retryautomation_held(409) — an operator holds the automation; it fires again when releasedautomation_invalid(409) — the automation's definition cannot run as writtenautomation_paused(409) — the automation is paused; resume it firstautomation_has_no_webhook(409) — the automation does not run on incoming events, so it has no webhookautomation_limit(409) — the user already has as many automations as the deployment allowsprofile_unknown_tool(400) —profile.toolsnames a tool this deployment does not havedeployment_paused(503) — an operator paused this kind of work for the deployment; try again laterrun_not_active(409) — the run named in the path is not the conversation's live runwithdrawal_changed(409) — the request key already binds different withdrawal terms, or the current balance cannot cover the requested amountswap_changed(409) — the swap cannot be made as asked: an asset is no longer available or the current balance cannot cover the amount; get a new quoteorder_changed(409) — the order can no longer be placed as prepared: the agent wallet no longer holds the amount, an asset is no longer offered, or its minimum no longer matches the assets' precision; prepare it againprediction_order_changed(409) — the Polymarket order can no longer be placed as signed: the market closed or stopped taking orders, its price is off the market's tick or its size off Polymarket's minimum, its fee or cost would exceed the signed caps, the Polymarket account cannot cover it, or the signature lapsed before it was placed. Nothing was placed; prepare it againsolana_trade_changed(409) — the Solana trade can no longer run as signed: the token's decimals or program changed, the agent's Solana account or holdings no longer fit it, another Solana trade is running, or the signature lapsed before it started. Nothing moved; prepare it againtrade_not_recoverable(409) — the original trade or a recovery attempt remains active or uncertain, its unfinished actions lack conclusive recovery proof, or its remaining proposal can no longer be usedorder_not_cancelable(409) — the limit order can no longer be cancelled: it filled or expired, or the swap provider never took it. Read the order for where it standsgrid_not_active(409) — the grid is not running, so it cannot be paused: it is already paused, stopping or ended. Read the grid for where it standsgrid_not_paused(409) — the grid is not paused, so there is nothing to resume. Read the grid for where it standssuggestion_changed(409) — the suggestion no longer holds: the account or the market moved since fin made it, the user set it aside, or it cannot be made where the user is now. Say it changed, and read the page's suggestions againrequest_key_conflict(409) — the request identity already binds different terms; retrieve the original resource or use a new identity for a new requestquestion_not_pending(409) — the questionnaire has already been answered, closed, or is not awaiting this submissionflag_changed(409) — the flag's targeting changed since you read it; read it again and retrygroup_changed(409) — the group changed or was deleted since you read it; read it again and retrygroup_in_use(409) — a flag's rules still name this group; take it out of those rules firstgroup_name_taken(409) — another group already has this nameagent_wallet_required(409) — create the agent wallet before opening a perps, prediction-market or Solana accountwallet_account_unsupported(409) — the user's wallet is an Agent API wallet, whose Intents account is a 0x address this route cannot name; read it with Get wallet account, Get wallet account balances and Open a wallet account session insteadconversation_deleted(410) — the conversation was deleted; its history stays readableautomation_deleted(410) — the automation was deletedgrid_ended(410) — the grid stopped, expired or failed; it stays readable but takes no command. A new grid needs the user's approval in chatcredential_expired(401) — the user token has expired; obtain a fresh oneaccount_disabled(403) — an operator disabled the accountperps_disabled(403) — perps is not enabled for this userprediction_disabled(403) — prediction-market trading is not enabled for this usersolana_disabled(403) — Solana trading is not enabled for this userno_account(404) — the user has not opened the account this call reads; open it firstnot_available_in_region(403) — perps funding is unavailable in the user's region for this request; withdrawals remain availablesteering_disabled(403) — steering a working run is not turned on for this user; send the message with Start a run once the run endsbaskets_disabled(403) — idea baskets are not turned on for this user; hide the Ideas pages and their basketsbasket_buying(409) — the basket is still buying, so it cannot be deleted yet; try again once its result is inbasket_awaiting_approval(409) — an approval to buy this basket is still open; decline it in the chat, then delete the basketbasket_step_not_failed(409) — the step bought, or the basket is not partly bought, so no order can be linked to it; read the basket againbasket_step_linked(409) — another order is already linked to this step; a link is permanent, so read the basket againbasket_order_not_linkable(400) — the order cannot stand in for this step: it is not one of the step'sfailures[].linkableorders, or another basket step already holds itvoice_disabled(403) — voice input is not turned on for this user; let them type insteadvoice_unavailable(503) — this deployment has no speech model, so it cannot transcribe recordings; let the user type insteadprovider_unavailable(503) — an external provider the call depends on did not answerquote_refused(400) — 1Click would not quote this request, usually an amount below what it routes or a pair it does not offer; nothing was reserved. Change the amount or the assets and quote again; for a deposit address, no address was issued, so offer another networkinvalid_input(400) — the body or query failed validation;issuesnames each fieldinternal(500) — a fault on our side; quoterequestIdwhen reporting itpartner_key_required(401) — noX-Api-Keyheader was sentpartner_key_invalid(401) — theX-Api-Keyis unknown or revokedsubject_mismatch(403) — the{userId}in the path is not the token's userorigin_rejected(403) — a browserOriginother than the configured web originpermission_required(403) — the verified credential is not permitted to make this callsignature_required(403) — creating the agent wallet needs the user's signature: send the user's signature ofcreation.messagefrom Get the agent wallet asauthorizationasset_not_withdrawable(403) — tokenized stocks cannot be withdrawn; sell them firstasset_not_swappable(403) — the swap names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offasset_not_tradable(403) — the order names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offsolana_token_not_tradable(403) — Fin won't trade this token: its mint lets someone freeze, move or charge for holdings or pause transfers, it can't be sold back, Fin couldn't read its mint, it has no reliable price, or it is wrapped SOL. A sale is refused only for what would stop it landinglimit_orders_disabled(403) — limit orders are not enabled for this usergrid_trading_disabled(403) — grid trading is not enabled for this user, so a paused grid cannot be resumed; pausing and cancelling a grid are never gateddeposit_limit_exceeded(429) — the deposit would take the agent wallet past the user's deposit limit, or, for a deposit address, the wallet has no room left under it; nothing was recorded. ReaddepositLimit.availableCentsfrom Get balances for how much fits now, and deposit no more than thatpolicy_change_throttled(429) — the user's Agent API wallet changed what it allows a few minutes ago, and the NEAR Intents Agent API lets it change again only after a cooldown; nothing was asked or signed, so call again onceRetry-Afterhas passedagent_slippage_exceeded(403) — the user's wallet is an Agent API wallet whose agent signs only trades that lose at most the share of their value its owner allowed (max_slippage_bps): fees, price and slippage together, by 1Click's own USD values at the quote's minimum output. This trade's quote loses more, states no USD value, or, before there is a quote, its loss bound is already quoted with more slippage than that (half the bound, plus 1Click's fee at the most it has been seen to take, 20 basis points, before an approval). Very small trades lose more to fixed fees; nothing was signed, so ask again with a larger amount or a smaller loss boundagent_api_orders_unavailable(403) — the user's Agent API wallet needs wallet setup to enable limit orders, or the order exceeds this wallet's 168-hour maximum; finish wallet setup or choose at most 168 hours before trying again; nothing was approved or signeddestination_not_allowed(403) — the user's wallet is an Agent API wallet, whose agent pays a deposit only to itself, to a NEAR Intents account its owner listed (on the confidential ledger) or to an address on a chain its owner listed; allow this one with Add a withdrawal destination (one owner signature), then ask again. A public NEAR Intents account, or an address with no valid spelling on its chain, cannot be paid at all; nothing was signedrate_limited(429) — the per-key or per-user limit is spent; honourRetry-Afterpartner_request_capacity(429) — this partner's request quota across all keys and replicas is spent; honour Retry-Afterpartner_run_capacity(429) — this partner's active run quota is full; honour Retry-After and reuse the same request identitystream_capacity(429) — the partner, user or replica has no free stream capacity; honourRetry-Afterinvalid_cursor(400) — thecursoris not one this list mintedinvalid_question_answer(400) — the questionnaire answer does not match its questions or allowed choicesquestion_closed(410) — the questionnaire expired or was cancelledunknown_target(400) — a rule names a partner, group or user that does not exist, or a user outside the partners the same rule namesscope_invalid(400) — a subject in the scope is not a subject id, or appears twicesubject_unsupported(404) — a subject in the scope is not one market briefs cover; list them with List market subjectsbrief_not_found(404) — no market brief job with this id was created with your partner keybriefs_busy(429) — your market briefs are at their limit of briefs generating at once; retry afterRetry-Aftermarket_briefs_disabled(403) — market briefs are not turned on for your partner keystory_not_found(404) — no market story with this id is current: it never was one, or Fin no longer shows it because its sources were withdrawn or its figures can no longer be read
Validation rules
- Allowed values
["run_active","budget_exhausted","approval_not_pending","execution_capacity","execution_unavailable","stop_pending","automation_changed","automation_held","automation_invalid","automation_paused","automation_has_no_webhook","automation_limit","profile_unknown_tool","deployment_paused","run_not_active","withdrawal_changed","swap_changed","order_changed","prediction_order_changed","solana_trade_changed","trade_not_recoverable","order_not_cancelable","grid_not_active","grid_not_paused","suggestion_changed","request_key_conflict","question_not_pending","flag_changed","group_changed","group_in_use","group_name_taken","agent_wallet_required","wallet_account_unsupported","conversation_deleted","automation_deleted","grid_ended","credential_expired","account_disabled","perps_disabled","prediction_disabled","solana_disabled","no_account","not_available_in_region","steering_disabled","baskets_disabled","basket_buying","basket_awaiting_approval","basket_step_not_failed","basket_step_linked","basket_order_not_linkable","voice_disabled","voice_unavailable","provider_unavailable","quote_refused","invalid_input","internal","partner_key_required","partner_key_invalid","subject_mismatch","origin_rejected","permission_required","signature_required","asset_not_withdrawable","asset_not_swappable","asset_not_tradable","solana_token_not_tradable","limit_orders_disabled","grid_trading_disabled","deposit_limit_exceeded","policy_change_throttled","agent_slippage_exceeded","agent_api_orders_unavailable","destination_not_allowed","rate_limited","partner_request_capacity","partner_run_capacity","stream_capacity","invalid_cursor","invalid_question_answer","question_closed","unknown_target","scope_invalid","subject_unsupported","brief_not_found","briefs_busy","market_briefs_disabled","story_not_found"]
requestIdstringrequiredThe id Fin used for this request; quote it when reporting a problem
retryablebooleanrequiredWhether repeating the same request later can succeed without changing it
detailstringoptionalOnly on invalid_input: which part of the request failed validation
issuesarrayoptionalOnly on invalid_input: one entry per failing field
Show attributes
Only on invalid_input: one entry per failing field
Array items · object
pathstringrequiredThe JSON pointer of the failing field; empty for the root object
messagestringrequiredWhy the field failed
403 The credentials are valid but may not do this.
The credentials are valid but may not do this.
subject_mismatch— the{userId}in the path is not the token's useraccount_disabled— an operator disabled the accountorigin_rejected— a browserOriginother than the configured web originpermission_required— the verified credential is not permitted to make this call
application/problem+json · object
RFC 9457 problem details: what every error response carries. Never a provider's message, a query or a stack.
typestringrequiredThe kind of problem as a URN, urn:fin:error:<kind>; stable, compare against it
titlestringrequiredThe kind's human title, for logs; never parse it
statusintegerrequiredThe HTTP status, repeated in the body
Validation rules
- Minimum
400- Maximum
599
reasonstringoptionalThe machine-readable why. One of:
run_active(409) — a run already holds this conversationbudget_exhausted(429) — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze itapproval_not_pending(409) — the approval was already decided or has expired, or its id does not exist or belongs to a different conversationexecution_capacity(429) — no capacity is free to run this right now; honourRetry-Afterexecution_unavailable(503) — the service that runs the agent could not take the work;retryablesays whether to try againstop_pending(409) — a stop is already in progress and its cleanup is not yet confirmedautomation_changed(409) — the automation changed while this request was handled; read it again and retryautomation_held(409) — an operator holds the automation; it fires again when releasedautomation_invalid(409) — the automation's definition cannot run as writtenautomation_paused(409) — the automation is paused; resume it firstautomation_has_no_webhook(409) — the automation does not run on incoming events, so it has no webhookautomation_limit(409) — the user already has as many automations as the deployment allowsprofile_unknown_tool(400) —profile.toolsnames a tool this deployment does not havedeployment_paused(503) — an operator paused this kind of work for the deployment; try again laterrun_not_active(409) — the run named in the path is not the conversation's live runwithdrawal_changed(409) — the request key already binds different withdrawal terms, or the current balance cannot cover the requested amountswap_changed(409) — the swap cannot be made as asked: an asset is no longer available or the current balance cannot cover the amount; get a new quoteorder_changed(409) — the order can no longer be placed as prepared: the agent wallet no longer holds the amount, an asset is no longer offered, or its minimum no longer matches the assets' precision; prepare it againprediction_order_changed(409) — the Polymarket order can no longer be placed as signed: the market closed or stopped taking orders, its price is off the market's tick or its size off Polymarket's minimum, its fee or cost would exceed the signed caps, the Polymarket account cannot cover it, or the signature lapsed before it was placed. Nothing was placed; prepare it againsolana_trade_changed(409) — the Solana trade can no longer run as signed: the token's decimals or program changed, the agent's Solana account or holdings no longer fit it, another Solana trade is running, or the signature lapsed before it started. Nothing moved; prepare it againtrade_not_recoverable(409) — the original trade or a recovery attempt remains active or uncertain, its unfinished actions lack conclusive recovery proof, or its remaining proposal can no longer be usedorder_not_cancelable(409) — the limit order can no longer be cancelled: it filled or expired, or the swap provider never took it. Read the order for where it standsgrid_not_active(409) — the grid is not running, so it cannot be paused: it is already paused, stopping or ended. Read the grid for where it standsgrid_not_paused(409) — the grid is not paused, so there is nothing to resume. Read the grid for where it standssuggestion_changed(409) — the suggestion no longer holds: the account or the market moved since fin made it, the user set it aside, or it cannot be made where the user is now. Say it changed, and read the page's suggestions againrequest_key_conflict(409) — the request identity already binds different terms; retrieve the original resource or use a new identity for a new requestquestion_not_pending(409) — the questionnaire has already been answered, closed, or is not awaiting this submissionflag_changed(409) — the flag's targeting changed since you read it; read it again and retrygroup_changed(409) — the group changed or was deleted since you read it; read it again and retrygroup_in_use(409) — a flag's rules still name this group; take it out of those rules firstgroup_name_taken(409) — another group already has this nameagent_wallet_required(409) — create the agent wallet before opening a perps, prediction-market or Solana accountwallet_account_unsupported(409) — the user's wallet is an Agent API wallet, whose Intents account is a 0x address this route cannot name; read it with Get wallet account, Get wallet account balances and Open a wallet account session insteadconversation_deleted(410) — the conversation was deleted; its history stays readableautomation_deleted(410) — the automation was deletedgrid_ended(410) — the grid stopped, expired or failed; it stays readable but takes no command. A new grid needs the user's approval in chatcredential_expired(401) — the user token has expired; obtain a fresh oneaccount_disabled(403) — an operator disabled the accountperps_disabled(403) — perps is not enabled for this userprediction_disabled(403) — prediction-market trading is not enabled for this usersolana_disabled(403) — Solana trading is not enabled for this userno_account(404) — the user has not opened the account this call reads; open it firstnot_available_in_region(403) — perps funding is unavailable in the user's region for this request; withdrawals remain availablesteering_disabled(403) — steering a working run is not turned on for this user; send the message with Start a run once the run endsbaskets_disabled(403) — idea baskets are not turned on for this user; hide the Ideas pages and their basketsbasket_buying(409) — the basket is still buying, so it cannot be deleted yet; try again once its result is inbasket_awaiting_approval(409) — an approval to buy this basket is still open; decline it in the chat, then delete the basketbasket_step_not_failed(409) — the step bought, or the basket is not partly bought, so no order can be linked to it; read the basket againbasket_step_linked(409) — another order is already linked to this step; a link is permanent, so read the basket againbasket_order_not_linkable(400) — the order cannot stand in for this step: it is not one of the step'sfailures[].linkableorders, or another basket step already holds itvoice_disabled(403) — voice input is not turned on for this user; let them type insteadvoice_unavailable(503) — this deployment has no speech model, so it cannot transcribe recordings; let the user type insteadprovider_unavailable(503) — an external provider the call depends on did not answerquote_refused(400) — 1Click would not quote this request, usually an amount below what it routes or a pair it does not offer; nothing was reserved. Change the amount or the assets and quote again; for a deposit address, no address was issued, so offer another networkinvalid_input(400) — the body or query failed validation;issuesnames each fieldinternal(500) — a fault on our side; quoterequestIdwhen reporting itpartner_key_required(401) — noX-Api-Keyheader was sentpartner_key_invalid(401) — theX-Api-Keyis unknown or revokedsubject_mismatch(403) — the{userId}in the path is not the token's userorigin_rejected(403) — a browserOriginother than the configured web originpermission_required(403) — the verified credential is not permitted to make this callsignature_required(403) — creating the agent wallet needs the user's signature: send the user's signature ofcreation.messagefrom Get the agent wallet asauthorizationasset_not_withdrawable(403) — tokenized stocks cannot be withdrawn; sell them firstasset_not_swappable(403) — the swap names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offasset_not_tradable(403) — the order names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offsolana_token_not_tradable(403) — Fin won't trade this token: its mint lets someone freeze, move or charge for holdings or pause transfers, it can't be sold back, Fin couldn't read its mint, it has no reliable price, or it is wrapped SOL. A sale is refused only for what would stop it landinglimit_orders_disabled(403) — limit orders are not enabled for this usergrid_trading_disabled(403) — grid trading is not enabled for this user, so a paused grid cannot be resumed; pausing and cancelling a grid are never gateddeposit_limit_exceeded(429) — the deposit would take the agent wallet past the user's deposit limit, or, for a deposit address, the wallet has no room left under it; nothing was recorded. ReaddepositLimit.availableCentsfrom Get balances for how much fits now, and deposit no more than thatpolicy_change_throttled(429) — the user's Agent API wallet changed what it allows a few minutes ago, and the NEAR Intents Agent API lets it change again only after a cooldown; nothing was asked or signed, so call again onceRetry-Afterhas passedagent_slippage_exceeded(403) — the user's wallet is an Agent API wallet whose agent signs only trades that lose at most the share of their value its owner allowed (max_slippage_bps): fees, price and slippage together, by 1Click's own USD values at the quote's minimum output. This trade's quote loses more, states no USD value, or, before there is a quote, its loss bound is already quoted with more slippage than that (half the bound, plus 1Click's fee at the most it has been seen to take, 20 basis points, before an approval). Very small trades lose more to fixed fees; nothing was signed, so ask again with a larger amount or a smaller loss boundagent_api_orders_unavailable(403) — the user's Agent API wallet needs wallet setup to enable limit orders, or the order exceeds this wallet's 168-hour maximum; finish wallet setup or choose at most 168 hours before trying again; nothing was approved or signeddestination_not_allowed(403) — the user's wallet is an Agent API wallet, whose agent pays a deposit only to itself, to a NEAR Intents account its owner listed (on the confidential ledger) or to an address on a chain its owner listed; allow this one with Add a withdrawal destination (one owner signature), then ask again. A public NEAR Intents account, or an address with no valid spelling on its chain, cannot be paid at all; nothing was signedrate_limited(429) — the per-key or per-user limit is spent; honourRetry-Afterpartner_request_capacity(429) — this partner's request quota across all keys and replicas is spent; honour Retry-Afterpartner_run_capacity(429) — this partner's active run quota is full; honour Retry-After and reuse the same request identitystream_capacity(429) — the partner, user or replica has no free stream capacity; honourRetry-Afterinvalid_cursor(400) — thecursoris not one this list mintedinvalid_question_answer(400) — the questionnaire answer does not match its questions or allowed choicesquestion_closed(410) — the questionnaire expired or was cancelledunknown_target(400) — a rule names a partner, group or user that does not exist, or a user outside the partners the same rule namesscope_invalid(400) — a subject in the scope is not a subject id, or appears twicesubject_unsupported(404) — a subject in the scope is not one market briefs cover; list them with List market subjectsbrief_not_found(404) — no market brief job with this id was created with your partner keybriefs_busy(429) — your market briefs are at their limit of briefs generating at once; retry afterRetry-Aftermarket_briefs_disabled(403) — market briefs are not turned on for your partner keystory_not_found(404) — no market story with this id is current: it never was one, or Fin no longer shows it because its sources were withdrawn or its figures can no longer be read
Validation rules
- Allowed values
["run_active","budget_exhausted","approval_not_pending","execution_capacity","execution_unavailable","stop_pending","automation_changed","automation_held","automation_invalid","automation_paused","automation_has_no_webhook","automation_limit","profile_unknown_tool","deployment_paused","run_not_active","withdrawal_changed","swap_changed","order_changed","prediction_order_changed","solana_trade_changed","trade_not_recoverable","order_not_cancelable","grid_not_active","grid_not_paused","suggestion_changed","request_key_conflict","question_not_pending","flag_changed","group_changed","group_in_use","group_name_taken","agent_wallet_required","wallet_account_unsupported","conversation_deleted","automation_deleted","grid_ended","credential_expired","account_disabled","perps_disabled","prediction_disabled","solana_disabled","no_account","not_available_in_region","steering_disabled","baskets_disabled","basket_buying","basket_awaiting_approval","basket_step_not_failed","basket_step_linked","basket_order_not_linkable","voice_disabled","voice_unavailable","provider_unavailable","quote_refused","invalid_input","internal","partner_key_required","partner_key_invalid","subject_mismatch","origin_rejected","permission_required","signature_required","asset_not_withdrawable","asset_not_swappable","asset_not_tradable","solana_token_not_tradable","limit_orders_disabled","grid_trading_disabled","deposit_limit_exceeded","policy_change_throttled","agent_slippage_exceeded","agent_api_orders_unavailable","destination_not_allowed","rate_limited","partner_request_capacity","partner_run_capacity","stream_capacity","invalid_cursor","invalid_question_answer","question_closed","unknown_target","scope_invalid","subject_unsupported","brief_not_found","briefs_busy","market_briefs_disabled","story_not_found"]
requestIdstringrequiredThe id Fin used for this request; quote it when reporting a problem
retryablebooleanrequiredWhether repeating the same request later can succeed without changing it
detailstringoptionalOnly on invalid_input: which part of the request failed validation
issuesarrayoptionalOnly on invalid_input: one entry per failing field
Show attributes
Only on invalid_input: one entry per failing field
Array items · object
pathstringrequiredThe JSON pointer of the failing field; empty for the root object
messagestringrequiredWhy the field failed
404 The resource is missing, belongs to someone else, or its id is malformed: all three answer alike.
The resource is missing, belongs to someone else, or its id is malformed: all three answer alike.
application/problem+json · object
RFC 9457 problem details: what every error response carries. Never a provider's message, a query or a stack.
typestringrequiredThe kind of problem as a URN, urn:fin:error:<kind>; stable, compare against it
titlestringrequiredThe kind's human title, for logs; never parse it
statusintegerrequiredThe HTTP status, repeated in the body
Validation rules
- Minimum
400- Maximum
599
reasonstringoptionalThe machine-readable why. One of:
run_active(409) — a run already holds this conversationbudget_exhausted(429) — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze itapproval_not_pending(409) — the approval was already decided or has expired, or its id does not exist or belongs to a different conversationexecution_capacity(429) — no capacity is free to run this right now; honourRetry-Afterexecution_unavailable(503) — the service that runs the agent could not take the work;retryablesays whether to try againstop_pending(409) — a stop is already in progress and its cleanup is not yet confirmedautomation_changed(409) — the automation changed while this request was handled; read it again and retryautomation_held(409) — an operator holds the automation; it fires again when releasedautomation_invalid(409) — the automation's definition cannot run as writtenautomation_paused(409) — the automation is paused; resume it firstautomation_has_no_webhook(409) — the automation does not run on incoming events, so it has no webhookautomation_limit(409) — the user already has as many automations as the deployment allowsprofile_unknown_tool(400) —profile.toolsnames a tool this deployment does not havedeployment_paused(503) — an operator paused this kind of work for the deployment; try again laterrun_not_active(409) — the run named in the path is not the conversation's live runwithdrawal_changed(409) — the request key already binds different withdrawal terms, or the current balance cannot cover the requested amountswap_changed(409) — the swap cannot be made as asked: an asset is no longer available or the current balance cannot cover the amount; get a new quoteorder_changed(409) — the order can no longer be placed as prepared: the agent wallet no longer holds the amount, an asset is no longer offered, or its minimum no longer matches the assets' precision; prepare it againprediction_order_changed(409) — the Polymarket order can no longer be placed as signed: the market closed or stopped taking orders, its price is off the market's tick or its size off Polymarket's minimum, its fee or cost would exceed the signed caps, the Polymarket account cannot cover it, or the signature lapsed before it was placed. Nothing was placed; prepare it againsolana_trade_changed(409) — the Solana trade can no longer run as signed: the token's decimals or program changed, the agent's Solana account or holdings no longer fit it, another Solana trade is running, or the signature lapsed before it started. Nothing moved; prepare it againtrade_not_recoverable(409) — the original trade or a recovery attempt remains active or uncertain, its unfinished actions lack conclusive recovery proof, or its remaining proposal can no longer be usedorder_not_cancelable(409) — the limit order can no longer be cancelled: it filled or expired, or the swap provider never took it. Read the order for where it standsgrid_not_active(409) — the grid is not running, so it cannot be paused: it is already paused, stopping or ended. Read the grid for where it standsgrid_not_paused(409) — the grid is not paused, so there is nothing to resume. Read the grid for where it standssuggestion_changed(409) — the suggestion no longer holds: the account or the market moved since fin made it, the user set it aside, or it cannot be made where the user is now. Say it changed, and read the page's suggestions againrequest_key_conflict(409) — the request identity already binds different terms; retrieve the original resource or use a new identity for a new requestquestion_not_pending(409) — the questionnaire has already been answered, closed, or is not awaiting this submissionflag_changed(409) — the flag's targeting changed since you read it; read it again and retrygroup_changed(409) — the group changed or was deleted since you read it; read it again and retrygroup_in_use(409) — a flag's rules still name this group; take it out of those rules firstgroup_name_taken(409) — another group already has this nameagent_wallet_required(409) — create the agent wallet before opening a perps, prediction-market or Solana accountwallet_account_unsupported(409) — the user's wallet is an Agent API wallet, whose Intents account is a 0x address this route cannot name; read it with Get wallet account, Get wallet account balances and Open a wallet account session insteadconversation_deleted(410) — the conversation was deleted; its history stays readableautomation_deleted(410) — the automation was deletedgrid_ended(410) — the grid stopped, expired or failed; it stays readable but takes no command. A new grid needs the user's approval in chatcredential_expired(401) — the user token has expired; obtain a fresh oneaccount_disabled(403) — an operator disabled the accountperps_disabled(403) — perps is not enabled for this userprediction_disabled(403) — prediction-market trading is not enabled for this usersolana_disabled(403) — Solana trading is not enabled for this userno_account(404) — the user has not opened the account this call reads; open it firstnot_available_in_region(403) — perps funding is unavailable in the user's region for this request; withdrawals remain availablesteering_disabled(403) — steering a working run is not turned on for this user; send the message with Start a run once the run endsbaskets_disabled(403) — idea baskets are not turned on for this user; hide the Ideas pages and their basketsbasket_buying(409) — the basket is still buying, so it cannot be deleted yet; try again once its result is inbasket_awaiting_approval(409) — an approval to buy this basket is still open; decline it in the chat, then delete the basketbasket_step_not_failed(409) — the step bought, or the basket is not partly bought, so no order can be linked to it; read the basket againbasket_step_linked(409) — another order is already linked to this step; a link is permanent, so read the basket againbasket_order_not_linkable(400) — the order cannot stand in for this step: it is not one of the step'sfailures[].linkableorders, or another basket step already holds itvoice_disabled(403) — voice input is not turned on for this user; let them type insteadvoice_unavailable(503) — this deployment has no speech model, so it cannot transcribe recordings; let the user type insteadprovider_unavailable(503) — an external provider the call depends on did not answerquote_refused(400) — 1Click would not quote this request, usually an amount below what it routes or a pair it does not offer; nothing was reserved. Change the amount or the assets and quote again; for a deposit address, no address was issued, so offer another networkinvalid_input(400) — the body or query failed validation;issuesnames each fieldinternal(500) — a fault on our side; quoterequestIdwhen reporting itpartner_key_required(401) — noX-Api-Keyheader was sentpartner_key_invalid(401) — theX-Api-Keyis unknown or revokedsubject_mismatch(403) — the{userId}in the path is not the token's userorigin_rejected(403) — a browserOriginother than the configured web originpermission_required(403) — the verified credential is not permitted to make this callsignature_required(403) — creating the agent wallet needs the user's signature: send the user's signature ofcreation.messagefrom Get the agent wallet asauthorizationasset_not_withdrawable(403) — tokenized stocks cannot be withdrawn; sell them firstasset_not_swappable(403) — the swap names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offasset_not_tradable(403) — the order names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offsolana_token_not_tradable(403) — Fin won't trade this token: its mint lets someone freeze, move or charge for holdings or pause transfers, it can't be sold back, Fin couldn't read its mint, it has no reliable price, or it is wrapped SOL. A sale is refused only for what would stop it landinglimit_orders_disabled(403) — limit orders are not enabled for this usergrid_trading_disabled(403) — grid trading is not enabled for this user, so a paused grid cannot be resumed; pausing and cancelling a grid are never gateddeposit_limit_exceeded(429) — the deposit would take the agent wallet past the user's deposit limit, or, for a deposit address, the wallet has no room left under it; nothing was recorded. ReaddepositLimit.availableCentsfrom Get balances for how much fits now, and deposit no more than thatpolicy_change_throttled(429) — the user's Agent API wallet changed what it allows a few minutes ago, and the NEAR Intents Agent API lets it change again only after a cooldown; nothing was asked or signed, so call again onceRetry-Afterhas passedagent_slippage_exceeded(403) — the user's wallet is an Agent API wallet whose agent signs only trades that lose at most the share of their value its owner allowed (max_slippage_bps): fees, price and slippage together, by 1Click's own USD values at the quote's minimum output. This trade's quote loses more, states no USD value, or, before there is a quote, its loss bound is already quoted with more slippage than that (half the bound, plus 1Click's fee at the most it has been seen to take, 20 basis points, before an approval). Very small trades lose more to fixed fees; nothing was signed, so ask again with a larger amount or a smaller loss boundagent_api_orders_unavailable(403) — the user's Agent API wallet needs wallet setup to enable limit orders, or the order exceeds this wallet's 168-hour maximum; finish wallet setup or choose at most 168 hours before trying again; nothing was approved or signeddestination_not_allowed(403) — the user's wallet is an Agent API wallet, whose agent pays a deposit only to itself, to a NEAR Intents account its owner listed (on the confidential ledger) or to an address on a chain its owner listed; allow this one with Add a withdrawal destination (one owner signature), then ask again. A public NEAR Intents account, or an address with no valid spelling on its chain, cannot be paid at all; nothing was signedrate_limited(429) — the per-key or per-user limit is spent; honourRetry-Afterpartner_request_capacity(429) — this partner's request quota across all keys and replicas is spent; honour Retry-Afterpartner_run_capacity(429) — this partner's active run quota is full; honour Retry-After and reuse the same request identitystream_capacity(429) — the partner, user or replica has no free stream capacity; honourRetry-Afterinvalid_cursor(400) — thecursoris not one this list mintedinvalid_question_answer(400) — the questionnaire answer does not match its questions or allowed choicesquestion_closed(410) — the questionnaire expired or was cancelledunknown_target(400) — a rule names a partner, group or user that does not exist, or a user outside the partners the same rule namesscope_invalid(400) — a subject in the scope is not a subject id, or appears twicesubject_unsupported(404) — a subject in the scope is not one market briefs cover; list them with List market subjectsbrief_not_found(404) — no market brief job with this id was created with your partner keybriefs_busy(429) — your market briefs are at their limit of briefs generating at once; retry afterRetry-Aftermarket_briefs_disabled(403) — market briefs are not turned on for your partner keystory_not_found(404) — no market story with this id is current: it never was one, or Fin no longer shows it because its sources were withdrawn or its figures can no longer be read
Validation rules
- Allowed values
["run_active","budget_exhausted","approval_not_pending","execution_capacity","execution_unavailable","stop_pending","automation_changed","automation_held","automation_invalid","automation_paused","automation_has_no_webhook","automation_limit","profile_unknown_tool","deployment_paused","run_not_active","withdrawal_changed","swap_changed","order_changed","prediction_order_changed","solana_trade_changed","trade_not_recoverable","order_not_cancelable","grid_not_active","grid_not_paused","suggestion_changed","request_key_conflict","question_not_pending","flag_changed","group_changed","group_in_use","group_name_taken","agent_wallet_required","wallet_account_unsupported","conversation_deleted","automation_deleted","grid_ended","credential_expired","account_disabled","perps_disabled","prediction_disabled","solana_disabled","no_account","not_available_in_region","steering_disabled","baskets_disabled","basket_buying","basket_awaiting_approval","basket_step_not_failed","basket_step_linked","basket_order_not_linkable","voice_disabled","voice_unavailable","provider_unavailable","quote_refused","invalid_input","internal","partner_key_required","partner_key_invalid","subject_mismatch","origin_rejected","permission_required","signature_required","asset_not_withdrawable","asset_not_swappable","asset_not_tradable","solana_token_not_tradable","limit_orders_disabled","grid_trading_disabled","deposit_limit_exceeded","policy_change_throttled","agent_slippage_exceeded","agent_api_orders_unavailable","destination_not_allowed","rate_limited","partner_request_capacity","partner_run_capacity","stream_capacity","invalid_cursor","invalid_question_answer","question_closed","unknown_target","scope_invalid","subject_unsupported","brief_not_found","briefs_busy","market_briefs_disabled","story_not_found"]
requestIdstringrequiredThe id Fin used for this request; quote it when reporting a problem
retryablebooleanrequiredWhether repeating the same request later can succeed without changing it
detailstringoptionalOnly on invalid_input: which part of the request failed validation
issuesarrayoptionalOnly on invalid_input: one entry per failing field
Show attributes
Only on invalid_input: one entry per failing field
Array items · object
pathstringrequiredThe JSON pointer of the failing field; empty for the root object
messagestringrequiredWhy the field failed
429 A limit refused the request; wait for `Retry-After` when it is sent.
A limit refused the request; wait for Retry-After when it is sent.
rate_limited— the per-key or per-user limit is spent; honourRetry-Afterpartner_request_capacity— this partner's request quota across all keys and replicas is spent; honour Retry-After
application/problem+json · object
RFC 9457 problem details: what every error response carries. Never a provider's message, a query or a stack.
typestringrequiredThe kind of problem as a URN, urn:fin:error:<kind>; stable, compare against it
titlestringrequiredThe kind's human title, for logs; never parse it
statusintegerrequiredThe HTTP status, repeated in the body
Validation rules
- Minimum
400- Maximum
599
reasonstringoptionalThe machine-readable why. One of:
run_active(409) — a run already holds this conversationbudget_exhausted(429) — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze itapproval_not_pending(409) — the approval was already decided or has expired, or its id does not exist or belongs to a different conversationexecution_capacity(429) — no capacity is free to run this right now; honourRetry-Afterexecution_unavailable(503) — the service that runs the agent could not take the work;retryablesays whether to try againstop_pending(409) — a stop is already in progress and its cleanup is not yet confirmedautomation_changed(409) — the automation changed while this request was handled; read it again and retryautomation_held(409) — an operator holds the automation; it fires again when releasedautomation_invalid(409) — the automation's definition cannot run as writtenautomation_paused(409) — the automation is paused; resume it firstautomation_has_no_webhook(409) — the automation does not run on incoming events, so it has no webhookautomation_limit(409) — the user already has as many automations as the deployment allowsprofile_unknown_tool(400) —profile.toolsnames a tool this deployment does not havedeployment_paused(503) — an operator paused this kind of work for the deployment; try again laterrun_not_active(409) — the run named in the path is not the conversation's live runwithdrawal_changed(409) — the request key already binds different withdrawal terms, or the current balance cannot cover the requested amountswap_changed(409) — the swap cannot be made as asked: an asset is no longer available or the current balance cannot cover the amount; get a new quoteorder_changed(409) — the order can no longer be placed as prepared: the agent wallet no longer holds the amount, an asset is no longer offered, or its minimum no longer matches the assets' precision; prepare it againprediction_order_changed(409) — the Polymarket order can no longer be placed as signed: the market closed or stopped taking orders, its price is off the market's tick or its size off Polymarket's minimum, its fee or cost would exceed the signed caps, the Polymarket account cannot cover it, or the signature lapsed before it was placed. Nothing was placed; prepare it againsolana_trade_changed(409) — the Solana trade can no longer run as signed: the token's decimals or program changed, the agent's Solana account or holdings no longer fit it, another Solana trade is running, or the signature lapsed before it started. Nothing moved; prepare it againtrade_not_recoverable(409) — the original trade or a recovery attempt remains active or uncertain, its unfinished actions lack conclusive recovery proof, or its remaining proposal can no longer be usedorder_not_cancelable(409) — the limit order can no longer be cancelled: it filled or expired, or the swap provider never took it. Read the order for where it standsgrid_not_active(409) — the grid is not running, so it cannot be paused: it is already paused, stopping or ended. Read the grid for where it standsgrid_not_paused(409) — the grid is not paused, so there is nothing to resume. Read the grid for where it standssuggestion_changed(409) — the suggestion no longer holds: the account or the market moved since fin made it, the user set it aside, or it cannot be made where the user is now. Say it changed, and read the page's suggestions againrequest_key_conflict(409) — the request identity already binds different terms; retrieve the original resource or use a new identity for a new requestquestion_not_pending(409) — the questionnaire has already been answered, closed, or is not awaiting this submissionflag_changed(409) — the flag's targeting changed since you read it; read it again and retrygroup_changed(409) — the group changed or was deleted since you read it; read it again and retrygroup_in_use(409) — a flag's rules still name this group; take it out of those rules firstgroup_name_taken(409) — another group already has this nameagent_wallet_required(409) — create the agent wallet before opening a perps, prediction-market or Solana accountwallet_account_unsupported(409) — the user's wallet is an Agent API wallet, whose Intents account is a 0x address this route cannot name; read it with Get wallet account, Get wallet account balances and Open a wallet account session insteadconversation_deleted(410) — the conversation was deleted; its history stays readableautomation_deleted(410) — the automation was deletedgrid_ended(410) — the grid stopped, expired or failed; it stays readable but takes no command. A new grid needs the user's approval in chatcredential_expired(401) — the user token has expired; obtain a fresh oneaccount_disabled(403) — an operator disabled the accountperps_disabled(403) — perps is not enabled for this userprediction_disabled(403) — prediction-market trading is not enabled for this usersolana_disabled(403) — Solana trading is not enabled for this userno_account(404) — the user has not opened the account this call reads; open it firstnot_available_in_region(403) — perps funding is unavailable in the user's region for this request; withdrawals remain availablesteering_disabled(403) — steering a working run is not turned on for this user; send the message with Start a run once the run endsbaskets_disabled(403) — idea baskets are not turned on for this user; hide the Ideas pages and their basketsbasket_buying(409) — the basket is still buying, so it cannot be deleted yet; try again once its result is inbasket_awaiting_approval(409) — an approval to buy this basket is still open; decline it in the chat, then delete the basketbasket_step_not_failed(409) — the step bought, or the basket is not partly bought, so no order can be linked to it; read the basket againbasket_step_linked(409) — another order is already linked to this step; a link is permanent, so read the basket againbasket_order_not_linkable(400) — the order cannot stand in for this step: it is not one of the step'sfailures[].linkableorders, or another basket step already holds itvoice_disabled(403) — voice input is not turned on for this user; let them type insteadvoice_unavailable(503) — this deployment has no speech model, so it cannot transcribe recordings; let the user type insteadprovider_unavailable(503) — an external provider the call depends on did not answerquote_refused(400) — 1Click would not quote this request, usually an amount below what it routes or a pair it does not offer; nothing was reserved. Change the amount or the assets and quote again; for a deposit address, no address was issued, so offer another networkinvalid_input(400) — the body or query failed validation;issuesnames each fieldinternal(500) — a fault on our side; quoterequestIdwhen reporting itpartner_key_required(401) — noX-Api-Keyheader was sentpartner_key_invalid(401) — theX-Api-Keyis unknown or revokedsubject_mismatch(403) — the{userId}in the path is not the token's userorigin_rejected(403) — a browserOriginother than the configured web originpermission_required(403) — the verified credential is not permitted to make this callsignature_required(403) — creating the agent wallet needs the user's signature: send the user's signature ofcreation.messagefrom Get the agent wallet asauthorizationasset_not_withdrawable(403) — tokenized stocks cannot be withdrawn; sell them firstasset_not_swappable(403) — the swap names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offasset_not_tradable(403) — the order names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offsolana_token_not_tradable(403) — Fin won't trade this token: its mint lets someone freeze, move or charge for holdings or pause transfers, it can't be sold back, Fin couldn't read its mint, it has no reliable price, or it is wrapped SOL. A sale is refused only for what would stop it landinglimit_orders_disabled(403) — limit orders are not enabled for this usergrid_trading_disabled(403) — grid trading is not enabled for this user, so a paused grid cannot be resumed; pausing and cancelling a grid are never gateddeposit_limit_exceeded(429) — the deposit would take the agent wallet past the user's deposit limit, or, for a deposit address, the wallet has no room left under it; nothing was recorded. ReaddepositLimit.availableCentsfrom Get balances for how much fits now, and deposit no more than thatpolicy_change_throttled(429) — the user's Agent API wallet changed what it allows a few minutes ago, and the NEAR Intents Agent API lets it change again only after a cooldown; nothing was asked or signed, so call again onceRetry-Afterhas passedagent_slippage_exceeded(403) — the user's wallet is an Agent API wallet whose agent signs only trades that lose at most the share of their value its owner allowed (max_slippage_bps): fees, price and slippage together, by 1Click's own USD values at the quote's minimum output. This trade's quote loses more, states no USD value, or, before there is a quote, its loss bound is already quoted with more slippage than that (half the bound, plus 1Click's fee at the most it has been seen to take, 20 basis points, before an approval). Very small trades lose more to fixed fees; nothing was signed, so ask again with a larger amount or a smaller loss boundagent_api_orders_unavailable(403) — the user's Agent API wallet needs wallet setup to enable limit orders, or the order exceeds this wallet's 168-hour maximum; finish wallet setup or choose at most 168 hours before trying again; nothing was approved or signeddestination_not_allowed(403) — the user's wallet is an Agent API wallet, whose agent pays a deposit only to itself, to a NEAR Intents account its owner listed (on the confidential ledger) or to an address on a chain its owner listed; allow this one with Add a withdrawal destination (one owner signature), then ask again. A public NEAR Intents account, or an address with no valid spelling on its chain, cannot be paid at all; nothing was signedrate_limited(429) — the per-key or per-user limit is spent; honourRetry-Afterpartner_request_capacity(429) — this partner's request quota across all keys and replicas is spent; honour Retry-Afterpartner_run_capacity(429) — this partner's active run quota is full; honour Retry-After and reuse the same request identitystream_capacity(429) — the partner, user or replica has no free stream capacity; honourRetry-Afterinvalid_cursor(400) — thecursoris not one this list mintedinvalid_question_answer(400) — the questionnaire answer does not match its questions or allowed choicesquestion_closed(410) — the questionnaire expired or was cancelledunknown_target(400) — a rule names a partner, group or user that does not exist, or a user outside the partners the same rule namesscope_invalid(400) — a subject in the scope is not a subject id, or appears twicesubject_unsupported(404) — a subject in the scope is not one market briefs cover; list them with List market subjectsbrief_not_found(404) — no market brief job with this id was created with your partner keybriefs_busy(429) — your market briefs are at their limit of briefs generating at once; retry afterRetry-Aftermarket_briefs_disabled(403) — market briefs are not turned on for your partner keystory_not_found(404) — no market story with this id is current: it never was one, or Fin no longer shows it because its sources were withdrawn or its figures can no longer be read
Validation rules
- Allowed values
["run_active","budget_exhausted","approval_not_pending","execution_capacity","execution_unavailable","stop_pending","automation_changed","automation_held","automation_invalid","automation_paused","automation_has_no_webhook","automation_limit","profile_unknown_tool","deployment_paused","run_not_active","withdrawal_changed","swap_changed","order_changed","prediction_order_changed","solana_trade_changed","trade_not_recoverable","order_not_cancelable","grid_not_active","grid_not_paused","suggestion_changed","request_key_conflict","question_not_pending","flag_changed","group_changed","group_in_use","group_name_taken","agent_wallet_required","wallet_account_unsupported","conversation_deleted","automation_deleted","grid_ended","credential_expired","account_disabled","perps_disabled","prediction_disabled","solana_disabled","no_account","not_available_in_region","steering_disabled","baskets_disabled","basket_buying","basket_awaiting_approval","basket_step_not_failed","basket_step_linked","basket_order_not_linkable","voice_disabled","voice_unavailable","provider_unavailable","quote_refused","invalid_input","internal","partner_key_required","partner_key_invalid","subject_mismatch","origin_rejected","permission_required","signature_required","asset_not_withdrawable","asset_not_swappable","asset_not_tradable","solana_token_not_tradable","limit_orders_disabled","grid_trading_disabled","deposit_limit_exceeded","policy_change_throttled","agent_slippage_exceeded","agent_api_orders_unavailable","destination_not_allowed","rate_limited","partner_request_capacity","partner_run_capacity","stream_capacity","invalid_cursor","invalid_question_answer","question_closed","unknown_target","scope_invalid","subject_unsupported","brief_not_found","briefs_busy","market_briefs_disabled","story_not_found"]
requestIdstringrequiredThe id Fin used for this request; quote it when reporting a problem
retryablebooleanrequiredWhether repeating the same request later can succeed without changing it
detailstringoptionalOnly on invalid_input: which part of the request failed validation
issuesarrayoptionalOnly on invalid_input: one entry per failing field
Show attributes
Only on invalid_input: one entry per failing field
Array items · object
pathstringrequiredThe JSON pointer of the failing field; empty for the root object
messagestringrequiredWhy the field failed
500 A fault on our side; quote `requestId` when reporting it.
A fault on our side; quote requestId when reporting it.
internal— a fault on our side; quoterequestIdwhen reporting it
application/problem+json · object
RFC 9457 problem details: what every error response carries. Never a provider's message, a query or a stack.
typestringrequiredThe kind of problem as a URN, urn:fin:error:<kind>; stable, compare against it
titlestringrequiredThe kind's human title, for logs; never parse it
statusintegerrequiredThe HTTP status, repeated in the body
Validation rules
- Minimum
400- Maximum
599
reasonstringoptionalThe machine-readable why. One of:
run_active(409) — a run already holds this conversationbudget_exhausted(429) — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze itapproval_not_pending(409) — the approval was already decided or has expired, or its id does not exist or belongs to a different conversationexecution_capacity(429) — no capacity is free to run this right now; honourRetry-Afterexecution_unavailable(503) — the service that runs the agent could not take the work;retryablesays whether to try againstop_pending(409) — a stop is already in progress and its cleanup is not yet confirmedautomation_changed(409) — the automation changed while this request was handled; read it again and retryautomation_held(409) — an operator holds the automation; it fires again when releasedautomation_invalid(409) — the automation's definition cannot run as writtenautomation_paused(409) — the automation is paused; resume it firstautomation_has_no_webhook(409) — the automation does not run on incoming events, so it has no webhookautomation_limit(409) — the user already has as many automations as the deployment allowsprofile_unknown_tool(400) —profile.toolsnames a tool this deployment does not havedeployment_paused(503) — an operator paused this kind of work for the deployment; try again laterrun_not_active(409) — the run named in the path is not the conversation's live runwithdrawal_changed(409) — the request key already binds different withdrawal terms, or the current balance cannot cover the requested amountswap_changed(409) — the swap cannot be made as asked: an asset is no longer available or the current balance cannot cover the amount; get a new quoteorder_changed(409) — the order can no longer be placed as prepared: the agent wallet no longer holds the amount, an asset is no longer offered, or its minimum no longer matches the assets' precision; prepare it againprediction_order_changed(409) — the Polymarket order can no longer be placed as signed: the market closed or stopped taking orders, its price is off the market's tick or its size off Polymarket's minimum, its fee or cost would exceed the signed caps, the Polymarket account cannot cover it, or the signature lapsed before it was placed. Nothing was placed; prepare it againsolana_trade_changed(409) — the Solana trade can no longer run as signed: the token's decimals or program changed, the agent's Solana account or holdings no longer fit it, another Solana trade is running, or the signature lapsed before it started. Nothing moved; prepare it againtrade_not_recoverable(409) — the original trade or a recovery attempt remains active or uncertain, its unfinished actions lack conclusive recovery proof, or its remaining proposal can no longer be usedorder_not_cancelable(409) — the limit order can no longer be cancelled: it filled or expired, or the swap provider never took it. Read the order for where it standsgrid_not_active(409) — the grid is not running, so it cannot be paused: it is already paused, stopping or ended. Read the grid for where it standsgrid_not_paused(409) — the grid is not paused, so there is nothing to resume. Read the grid for where it standssuggestion_changed(409) — the suggestion no longer holds: the account or the market moved since fin made it, the user set it aside, or it cannot be made where the user is now. Say it changed, and read the page's suggestions againrequest_key_conflict(409) — the request identity already binds different terms; retrieve the original resource or use a new identity for a new requestquestion_not_pending(409) — the questionnaire has already been answered, closed, or is not awaiting this submissionflag_changed(409) — the flag's targeting changed since you read it; read it again and retrygroup_changed(409) — the group changed or was deleted since you read it; read it again and retrygroup_in_use(409) — a flag's rules still name this group; take it out of those rules firstgroup_name_taken(409) — another group already has this nameagent_wallet_required(409) — create the agent wallet before opening a perps, prediction-market or Solana accountwallet_account_unsupported(409) — the user's wallet is an Agent API wallet, whose Intents account is a 0x address this route cannot name; read it with Get wallet account, Get wallet account balances and Open a wallet account session insteadconversation_deleted(410) — the conversation was deleted; its history stays readableautomation_deleted(410) — the automation was deletedgrid_ended(410) — the grid stopped, expired or failed; it stays readable but takes no command. A new grid needs the user's approval in chatcredential_expired(401) — the user token has expired; obtain a fresh oneaccount_disabled(403) — an operator disabled the accountperps_disabled(403) — perps is not enabled for this userprediction_disabled(403) — prediction-market trading is not enabled for this usersolana_disabled(403) — Solana trading is not enabled for this userno_account(404) — the user has not opened the account this call reads; open it firstnot_available_in_region(403) — perps funding is unavailable in the user's region for this request; withdrawals remain availablesteering_disabled(403) — steering a working run is not turned on for this user; send the message with Start a run once the run endsbaskets_disabled(403) — idea baskets are not turned on for this user; hide the Ideas pages and their basketsbasket_buying(409) — the basket is still buying, so it cannot be deleted yet; try again once its result is inbasket_awaiting_approval(409) — an approval to buy this basket is still open; decline it in the chat, then delete the basketbasket_step_not_failed(409) — the step bought, or the basket is not partly bought, so no order can be linked to it; read the basket againbasket_step_linked(409) — another order is already linked to this step; a link is permanent, so read the basket againbasket_order_not_linkable(400) — the order cannot stand in for this step: it is not one of the step'sfailures[].linkableorders, or another basket step already holds itvoice_disabled(403) — voice input is not turned on for this user; let them type insteadvoice_unavailable(503) — this deployment has no speech model, so it cannot transcribe recordings; let the user type insteadprovider_unavailable(503) — an external provider the call depends on did not answerquote_refused(400) — 1Click would not quote this request, usually an amount below what it routes or a pair it does not offer; nothing was reserved. Change the amount or the assets and quote again; for a deposit address, no address was issued, so offer another networkinvalid_input(400) — the body or query failed validation;issuesnames each fieldinternal(500) — a fault on our side; quoterequestIdwhen reporting itpartner_key_required(401) — noX-Api-Keyheader was sentpartner_key_invalid(401) — theX-Api-Keyis unknown or revokedsubject_mismatch(403) — the{userId}in the path is not the token's userorigin_rejected(403) — a browserOriginother than the configured web originpermission_required(403) — the verified credential is not permitted to make this callsignature_required(403) — creating the agent wallet needs the user's signature: send the user's signature ofcreation.messagefrom Get the agent wallet asauthorizationasset_not_withdrawable(403) — tokenized stocks cannot be withdrawn; sell them firstasset_not_swappable(403) — the swap names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offasset_not_tradable(403) — the order names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offsolana_token_not_tradable(403) — Fin won't trade this token: its mint lets someone freeze, move or charge for holdings or pause transfers, it can't be sold back, Fin couldn't read its mint, it has no reliable price, or it is wrapped SOL. A sale is refused only for what would stop it landinglimit_orders_disabled(403) — limit orders are not enabled for this usergrid_trading_disabled(403) — grid trading is not enabled for this user, so a paused grid cannot be resumed; pausing and cancelling a grid are never gateddeposit_limit_exceeded(429) — the deposit would take the agent wallet past the user's deposit limit, or, for a deposit address, the wallet has no room left under it; nothing was recorded. ReaddepositLimit.availableCentsfrom Get balances for how much fits now, and deposit no more than thatpolicy_change_throttled(429) — the user's Agent API wallet changed what it allows a few minutes ago, and the NEAR Intents Agent API lets it change again only after a cooldown; nothing was asked or signed, so call again onceRetry-Afterhas passedagent_slippage_exceeded(403) — the user's wallet is an Agent API wallet whose agent signs only trades that lose at most the share of their value its owner allowed (max_slippage_bps): fees, price and slippage together, by 1Click's own USD values at the quote's minimum output. This trade's quote loses more, states no USD value, or, before there is a quote, its loss bound is already quoted with more slippage than that (half the bound, plus 1Click's fee at the most it has been seen to take, 20 basis points, before an approval). Very small trades lose more to fixed fees; nothing was signed, so ask again with a larger amount or a smaller loss boundagent_api_orders_unavailable(403) — the user's Agent API wallet needs wallet setup to enable limit orders, or the order exceeds this wallet's 168-hour maximum; finish wallet setup or choose at most 168 hours before trying again; nothing was approved or signeddestination_not_allowed(403) — the user's wallet is an Agent API wallet, whose agent pays a deposit only to itself, to a NEAR Intents account its owner listed (on the confidential ledger) or to an address on a chain its owner listed; allow this one with Add a withdrawal destination (one owner signature), then ask again. A public NEAR Intents account, or an address with no valid spelling on its chain, cannot be paid at all; nothing was signedrate_limited(429) — the per-key or per-user limit is spent; honourRetry-Afterpartner_request_capacity(429) — this partner's request quota across all keys and replicas is spent; honour Retry-Afterpartner_run_capacity(429) — this partner's active run quota is full; honour Retry-After and reuse the same request identitystream_capacity(429) — the partner, user or replica has no free stream capacity; honourRetry-Afterinvalid_cursor(400) — thecursoris not one this list mintedinvalid_question_answer(400) — the questionnaire answer does not match its questions or allowed choicesquestion_closed(410) — the questionnaire expired or was cancelledunknown_target(400) — a rule names a partner, group or user that does not exist, or a user outside the partners the same rule namesscope_invalid(400) — a subject in the scope is not a subject id, or appears twicesubject_unsupported(404) — a subject in the scope is not one market briefs cover; list them with List market subjectsbrief_not_found(404) — no market brief job with this id was created with your partner keybriefs_busy(429) — your market briefs are at their limit of briefs generating at once; retry afterRetry-Aftermarket_briefs_disabled(403) — market briefs are not turned on for your partner keystory_not_found(404) — no market story with this id is current: it never was one, or Fin no longer shows it because its sources were withdrawn or its figures can no longer be read
Validation rules
- Allowed values
["run_active","budget_exhausted","approval_not_pending","execution_capacity","execution_unavailable","stop_pending","automation_changed","automation_held","automation_invalid","automation_paused","automation_has_no_webhook","automation_limit","profile_unknown_tool","deployment_paused","run_not_active","withdrawal_changed","swap_changed","order_changed","prediction_order_changed","solana_trade_changed","trade_not_recoverable","order_not_cancelable","grid_not_active","grid_not_paused","suggestion_changed","request_key_conflict","question_not_pending","flag_changed","group_changed","group_in_use","group_name_taken","agent_wallet_required","wallet_account_unsupported","conversation_deleted","automation_deleted","grid_ended","credential_expired","account_disabled","perps_disabled","prediction_disabled","solana_disabled","no_account","not_available_in_region","steering_disabled","baskets_disabled","basket_buying","basket_awaiting_approval","basket_step_not_failed","basket_step_linked","basket_order_not_linkable","voice_disabled","voice_unavailable","provider_unavailable","quote_refused","invalid_input","internal","partner_key_required","partner_key_invalid","subject_mismatch","origin_rejected","permission_required","signature_required","asset_not_withdrawable","asset_not_swappable","asset_not_tradable","solana_token_not_tradable","limit_orders_disabled","grid_trading_disabled","deposit_limit_exceeded","policy_change_throttled","agent_slippage_exceeded","agent_api_orders_unavailable","destination_not_allowed","rate_limited","partner_request_capacity","partner_run_capacity","stream_capacity","invalid_cursor","invalid_question_answer","question_closed","unknown_target","scope_invalid","subject_unsupported","brief_not_found","briefs_busy","market_briefs_disabled","story_not_found"]
requestIdstringrequiredThe id Fin used for this request; quote it when reporting a problem
retryablebooleanrequiredWhether repeating the same request later can succeed without changing it
detailstringoptionalOnly on invalid_input: which part of the request failed validation
issuesarrayoptionalOnly on invalid_input: one entry per failing field
Show attributes
Only on invalid_input: one entry per failing field
Array items · object
pathstringrequiredThe JSON pointer of the failing field; empty for the root object
messagestringrequiredWhy the field failed
503 The service cannot take this right now (draining, a dependency did not answer, or an operator paused the work); `retryable` says whether to try again.
The service cannot take this right now (draining, a dependency did not answer, or an operator paused the work); retryable says whether to try again.
internal— a fault on our side; quoterequestIdwhen reporting it
application/problem+json · object
RFC 9457 problem details: what every error response carries. Never a provider's message, a query or a stack.
typestringrequiredThe kind of problem as a URN, urn:fin:error:<kind>; stable, compare against it
titlestringrequiredThe kind's human title, for logs; never parse it
statusintegerrequiredThe HTTP status, repeated in the body
Validation rules
- Minimum
400- Maximum
599
reasonstringoptionalThe machine-readable why. One of:
run_active(409) — a run already holds this conversationbudget_exhausted(429) — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze itapproval_not_pending(409) — the approval was already decided or has expired, or its id does not exist or belongs to a different conversationexecution_capacity(429) — no capacity is free to run this right now; honourRetry-Afterexecution_unavailable(503) — the service that runs the agent could not take the work;retryablesays whether to try againstop_pending(409) — a stop is already in progress and its cleanup is not yet confirmedautomation_changed(409) — the automation changed while this request was handled; read it again and retryautomation_held(409) — an operator holds the automation; it fires again when releasedautomation_invalid(409) — the automation's definition cannot run as writtenautomation_paused(409) — the automation is paused; resume it firstautomation_has_no_webhook(409) — the automation does not run on incoming events, so it has no webhookautomation_limit(409) — the user already has as many automations as the deployment allowsprofile_unknown_tool(400) —profile.toolsnames a tool this deployment does not havedeployment_paused(503) — an operator paused this kind of work for the deployment; try again laterrun_not_active(409) — the run named in the path is not the conversation's live runwithdrawal_changed(409) — the request key already binds different withdrawal terms, or the current balance cannot cover the requested amountswap_changed(409) — the swap cannot be made as asked: an asset is no longer available or the current balance cannot cover the amount; get a new quoteorder_changed(409) — the order can no longer be placed as prepared: the agent wallet no longer holds the amount, an asset is no longer offered, or its minimum no longer matches the assets' precision; prepare it againprediction_order_changed(409) — the Polymarket order can no longer be placed as signed: the market closed or stopped taking orders, its price is off the market's tick or its size off Polymarket's minimum, its fee or cost would exceed the signed caps, the Polymarket account cannot cover it, or the signature lapsed before it was placed. Nothing was placed; prepare it againsolana_trade_changed(409) — the Solana trade can no longer run as signed: the token's decimals or program changed, the agent's Solana account or holdings no longer fit it, another Solana trade is running, or the signature lapsed before it started. Nothing moved; prepare it againtrade_not_recoverable(409) — the original trade or a recovery attempt remains active or uncertain, its unfinished actions lack conclusive recovery proof, or its remaining proposal can no longer be usedorder_not_cancelable(409) — the limit order can no longer be cancelled: it filled or expired, or the swap provider never took it. Read the order for where it standsgrid_not_active(409) — the grid is not running, so it cannot be paused: it is already paused, stopping or ended. Read the grid for where it standsgrid_not_paused(409) — the grid is not paused, so there is nothing to resume. Read the grid for where it standssuggestion_changed(409) — the suggestion no longer holds: the account or the market moved since fin made it, the user set it aside, or it cannot be made where the user is now. Say it changed, and read the page's suggestions againrequest_key_conflict(409) — the request identity already binds different terms; retrieve the original resource or use a new identity for a new requestquestion_not_pending(409) — the questionnaire has already been answered, closed, or is not awaiting this submissionflag_changed(409) — the flag's targeting changed since you read it; read it again and retrygroup_changed(409) — the group changed or was deleted since you read it; read it again and retrygroup_in_use(409) — a flag's rules still name this group; take it out of those rules firstgroup_name_taken(409) — another group already has this nameagent_wallet_required(409) — create the agent wallet before opening a perps, prediction-market or Solana accountwallet_account_unsupported(409) — the user's wallet is an Agent API wallet, whose Intents account is a 0x address this route cannot name; read it with Get wallet account, Get wallet account balances and Open a wallet account session insteadconversation_deleted(410) — the conversation was deleted; its history stays readableautomation_deleted(410) — the automation was deletedgrid_ended(410) — the grid stopped, expired or failed; it stays readable but takes no command. A new grid needs the user's approval in chatcredential_expired(401) — the user token has expired; obtain a fresh oneaccount_disabled(403) — an operator disabled the accountperps_disabled(403) — perps is not enabled for this userprediction_disabled(403) — prediction-market trading is not enabled for this usersolana_disabled(403) — Solana trading is not enabled for this userno_account(404) — the user has not opened the account this call reads; open it firstnot_available_in_region(403) — perps funding is unavailable in the user's region for this request; withdrawals remain availablesteering_disabled(403) — steering a working run is not turned on for this user; send the message with Start a run once the run endsbaskets_disabled(403) — idea baskets are not turned on for this user; hide the Ideas pages and their basketsbasket_buying(409) — the basket is still buying, so it cannot be deleted yet; try again once its result is inbasket_awaiting_approval(409) — an approval to buy this basket is still open; decline it in the chat, then delete the basketbasket_step_not_failed(409) — the step bought, or the basket is not partly bought, so no order can be linked to it; read the basket againbasket_step_linked(409) — another order is already linked to this step; a link is permanent, so read the basket againbasket_order_not_linkable(400) — the order cannot stand in for this step: it is not one of the step'sfailures[].linkableorders, or another basket step already holds itvoice_disabled(403) — voice input is not turned on for this user; let them type insteadvoice_unavailable(503) — this deployment has no speech model, so it cannot transcribe recordings; let the user type insteadprovider_unavailable(503) — an external provider the call depends on did not answerquote_refused(400) — 1Click would not quote this request, usually an amount below what it routes or a pair it does not offer; nothing was reserved. Change the amount or the assets and quote again; for a deposit address, no address was issued, so offer another networkinvalid_input(400) — the body or query failed validation;issuesnames each fieldinternal(500) — a fault on our side; quoterequestIdwhen reporting itpartner_key_required(401) — noX-Api-Keyheader was sentpartner_key_invalid(401) — theX-Api-Keyis unknown or revokedsubject_mismatch(403) — the{userId}in the path is not the token's userorigin_rejected(403) — a browserOriginother than the configured web originpermission_required(403) — the verified credential is not permitted to make this callsignature_required(403) — creating the agent wallet needs the user's signature: send the user's signature ofcreation.messagefrom Get the agent wallet asauthorizationasset_not_withdrawable(403) — tokenized stocks cannot be withdrawn; sell them firstasset_not_swappable(403) — the swap names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offasset_not_tradable(403) — the order names an asset this user cannot buy or trade with this request: a tokenized stock with nocontext.country, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user'searnflag is offsolana_token_not_tradable(403) — Fin won't trade this token: its mint lets someone freeze, move or charge for holdings or pause transfers, it can't be sold back, Fin couldn't read its mint, it has no reliable price, or it is wrapped SOL. A sale is refused only for what would stop it landinglimit_orders_disabled(403) — limit orders are not enabled for this usergrid_trading_disabled(403) — grid trading is not enabled for this user, so a paused grid cannot be resumed; pausing and cancelling a grid are never gateddeposit_limit_exceeded(429) — the deposit would take the agent wallet past the user's deposit limit, or, for a deposit address, the wallet has no room left under it; nothing was recorded. ReaddepositLimit.availableCentsfrom Get balances for how much fits now, and deposit no more than thatpolicy_change_throttled(429) — the user's Agent API wallet changed what it allows a few minutes ago, and the NEAR Intents Agent API lets it change again only after a cooldown; nothing was asked or signed, so call again onceRetry-Afterhas passedagent_slippage_exceeded(403) — the user's wallet is an Agent API wallet whose agent signs only trades that lose at most the share of their value its owner allowed (max_slippage_bps): fees, price and slippage together, by 1Click's own USD values at the quote's minimum output. This trade's quote loses more, states no USD value, or, before there is a quote, its loss bound is already quoted with more slippage than that (half the bound, plus 1Click's fee at the most it has been seen to take, 20 basis points, before an approval). Very small trades lose more to fixed fees; nothing was signed, so ask again with a larger amount or a smaller loss boundagent_api_orders_unavailable(403) — the user's Agent API wallet needs wallet setup to enable limit orders, or the order exceeds this wallet's 168-hour maximum; finish wallet setup or choose at most 168 hours before trying again; nothing was approved or signeddestination_not_allowed(403) — the user's wallet is an Agent API wallet, whose agent pays a deposit only to itself, to a NEAR Intents account its owner listed (on the confidential ledger) or to an address on a chain its owner listed; allow this one with Add a withdrawal destination (one owner signature), then ask again. A public NEAR Intents account, or an address with no valid spelling on its chain, cannot be paid at all; nothing was signedrate_limited(429) — the per-key or per-user limit is spent; honourRetry-Afterpartner_request_capacity(429) — this partner's request quota across all keys and replicas is spent; honour Retry-Afterpartner_run_capacity(429) — this partner's active run quota is full; honour Retry-After and reuse the same request identitystream_capacity(429) — the partner, user or replica has no free stream capacity; honourRetry-Afterinvalid_cursor(400) — thecursoris not one this list mintedinvalid_question_answer(400) — the questionnaire answer does not match its questions or allowed choicesquestion_closed(410) — the questionnaire expired or was cancelledunknown_target(400) — a rule names a partner, group or user that does not exist, or a user outside the partners the same rule namesscope_invalid(400) — a subject in the scope is not a subject id, or appears twicesubject_unsupported(404) — a subject in the scope is not one market briefs cover; list them with List market subjectsbrief_not_found(404) — no market brief job with this id was created with your partner keybriefs_busy(429) — your market briefs are at their limit of briefs generating at once; retry afterRetry-Aftermarket_briefs_disabled(403) — market briefs are not turned on for your partner keystory_not_found(404) — no market story with this id is current: it never was one, or Fin no longer shows it because its sources were withdrawn or its figures can no longer be read
Validation rules
- Allowed values
["run_active","budget_exhausted","approval_not_pending","execution_capacity","execution_unavailable","stop_pending","automation_changed","automation_held","automation_invalid","automation_paused","automation_has_no_webhook","automation_limit","profile_unknown_tool","deployment_paused","run_not_active","withdrawal_changed","swap_changed","order_changed","prediction_order_changed","solana_trade_changed","trade_not_recoverable","order_not_cancelable","grid_not_active","grid_not_paused","suggestion_changed","request_key_conflict","question_not_pending","flag_changed","group_changed","group_in_use","group_name_taken","agent_wallet_required","wallet_account_unsupported","conversation_deleted","automation_deleted","grid_ended","credential_expired","account_disabled","perps_disabled","prediction_disabled","solana_disabled","no_account","not_available_in_region","steering_disabled","baskets_disabled","basket_buying","basket_awaiting_approval","basket_step_not_failed","basket_step_linked","basket_order_not_linkable","voice_disabled","voice_unavailable","provider_unavailable","quote_refused","invalid_input","internal","partner_key_required","partner_key_invalid","subject_mismatch","origin_rejected","permission_required","signature_required","asset_not_withdrawable","asset_not_swappable","asset_not_tradable","solana_token_not_tradable","limit_orders_disabled","grid_trading_disabled","deposit_limit_exceeded","policy_change_throttled","agent_slippage_exceeded","agent_api_orders_unavailable","destination_not_allowed","rate_limited","partner_request_capacity","partner_run_capacity","stream_capacity","invalid_cursor","invalid_question_answer","question_closed","unknown_target","scope_invalid","subject_unsupported","brief_not_found","briefs_busy","market_briefs_disabled","story_not_found"]
requestIdstringrequiredThe id Fin used for this request; quote it when reporting a problem
retryablebooleanrequiredWhether repeating the same request later can succeed without changing it
detailstringoptionalOnly on invalid_input: which part of the request failed validation
issuesarrayoptionalOnly on invalid_input: one entry per failing field
Show attributes
Only on invalid_input: one entry per failing field
Array items · object
pathstringrequiredThe JSON pointer of the failing field; empty for the root object
messagestringrequiredWhy the field failed
Complete OpenAPI definition
The exact operation and all referenced components, including recursive schemas.
{
"operation": {
"operationId": "activity.list",
"summary": "List activity",
"tags": [
"activity"
],
"description": "Lists what happened in the user's wallet and automations, newest first: the agent's trades, its Solana trades and transfers, the user's own swaps, withdrawals, deposits, transfers to deposit addresses and changes to automations. Each item carries the same object its own route returns, so render it by `kind`. Narrow it with `type` and `origin`, and pass `nextCursor` back as `cursor` for older items. A deposit or deposit address appears once the user is expected to send to it; one that expired unpaid is only in List deposits or Get a deposit address.",
"parameters": [
{
"schema": {
"default": 20,
"type": "integer",
"minimum": 1,
"maximum": 50
},
"in": "query",
"name": "limit",
"required": false,
"description": "How many items to return, at most 50."
},
{
"schema": {
"type": "string",
"maxLength": 256
},
"in": "query",
"name": "cursor",
"required": false,
"description": "The `nextCursor` from the previous page; omit for the newest items."
},
{
"schema": {
"anyOf": [
{
"type": "string",
"enum": [
"trade",
"swap",
"withdrawal",
"deposit",
"deposit_address",
"automation",
"solana",
"solana_sell_many",
"solana_trade"
]
},
{
"minItems": 1,
"maxItems": 9,
"type": "array",
"items": {
"type": "string",
"enum": [
"trade",
"swap",
"withdrawal",
"deposit",
"deposit_address",
"automation",
"solana",
"solana_sell_many",
"solana_trade"
]
}
}
]
},
"in": "query",
"name": "type",
"required": false,
"description": "Keep only these kinds of item; repeat it for several (`type=trade&type=deposit`). Omit for every kind."
},
{
"schema": {
"type": "string",
"enum": [
"conversation",
"automation"
]
},
"in": "query",
"name": "origin",
"required": false,
"description": "Keep only trades, and Solana trades and transfers, the agent asked for in a chat (`conversation`) or in an automation's run (`automation`, which also keeps changes to automations). The user's own swaps, deposits, deposit addresses and withdrawals are left out when this is set."
},
{
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
},
"in": "path",
"name": "userId",
"required": true,
"description": "Your id for the user: the `userId` you sent to Create a user. It must be the session's user."
}
],
"security": [
{
"apiKey": [],
"userToken": []
}
],
"responses": {
"200": {
"description": "A page of activity, and how many approvals are waiting.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"maxItems": 50,
"type": "array",
"items": {
"$ref": "#/components/schemas/ActivityItem"
},
"description": "This page of activity, newest first."
},
"nextCursor": {
"description": "Pass it back as `cursor` for older items; null at the end.",
"type": [
"string",
"null"
]
},
"pendingApprovals": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "How many approvals are waiting for the user, across every conversation."
}
},
"required": [
"data",
"nextCursor",
"pendingApprovals"
]
}
}
}
},
"400": {
"$ref": "#/components/responses/InvalidInput"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/Internal"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
},
"components": {
"schemas": {
"ActivityItem": {
"oneOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it happened: the request, or the change. The feed is ordered by it."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it last changed, such as a settlement or a credit."
},
"kind": {
"type": "string",
"const": "trade",
"description": "A trade; read `trade`."
},
"trade": {
"type": "object",
"properties": {
"conversationId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The conversation in which the agent asked for this trade."
},
"origin": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "conversation",
"description": "An ordinary user-started conversation."
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "automation",
"description": "A conversation an automation created."
},
"automationId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The automation that created this conversation."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The automation's name at the time this conversation started."
}
},
"required": [
"type",
"automationId",
"name"
]
}
],
"description": "Where the trade was asked for: an ordinary chat, or a conversation an automation started."
},
"title": {
"description": "The conversation's current title; null for an untitled conversation.",
"type": [
"string",
"null"
]
},
"assetIds": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"additionalProperties": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "Opaque stable Fin asset identity returned by balances and the transfer catalog."
},
"description": "Maps the explicit Intents protocol assets in this trade to opaque Fin holdings identities, for joining portfolio metadata and prices."
},
"approval": {
"description": "The request's exact human review, when one was required; absent when it runs under an automation's standing permission.",
"type": "object",
"properties": {
"approvalId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The exact single-use review bound to this financial request."
},
"status": {
"type": "string",
"enum": [
"pending",
"approved",
"denied",
"expired"
],
"description": "The recorded human decision, with overdue pending reviews shown as expired; approval alone does not prove execution."
},
"contract": {
"description": "The exact reviewed financial terms, when retained and readable.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "near_intents_transfer",
"description": "Which contract template this is."
},
"actions": {
"minItems": 1,
"maxItems": 16,
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "swap",
"description": "Exchange one asset for another; custody never leaves the agent wallet."
},
"input": {
"anyOf": [
{
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact token this asset is pinned to."
}
},
"required": [
"pinned"
]
},
{
"type": "object",
"properties": {
"any": {
"type": "boolean",
"const": true,
"description": "Any token the agent wallet holds; the executor picks one at execution."
}
},
"required": [
"any"
]
}
],
"description": "The asset this action spends: pinned to one token, or any token the agent wallet holds."
},
"quantity": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_tokens",
"description": "Spend an exact amount of the input token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact input amount, in the input token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw \"5000000\". No floating-point arithmetic or bash."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_value_usd",
"description": "Spend a USD-denominated value of the input token."
},
"value": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$",
"description": "The USD value to spend, as a decimal string."
}
},
"required": [
"kind",
"value"
],
"description": "A USD value of the input token: \"$5 worth of USDC\" is value \"5\", never exactly 5 USDC. The host converts it at live prices."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_output_tokens",
"description": "Receive an exact amount of the output token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact output amount, in the output token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the output token, scaled by its verified decimals; the host calculates the input."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "all_of_input",
"description": "Spend everything the agent wallet holds of the input asset."
}
},
"required": [
"kind"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_input",
"description": "Spend a fraction of the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to spend, in basis points of the input asset."
}
},
"required": [
"kind",
"bps"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_position",
"description": "Sell a fraction of this automation's own position in the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to sell, in basis points of this automation's own position; 10000 is all of it."
}
},
"required": [
"kind",
"bps"
],
"description": "A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an `exit` guard."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "gain_of_position",
"description": "Sell only the gain on this automation's own position in the input asset."
}
},
"required": [
"kind"
],
"description": "Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every `exit` guard and a pinned output other than that token."
}
],
"description": "How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it."
},
"output": {
"anyOf": [
{
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact token this asset is pinned to."
}
},
"required": [
"pinned"
]
},
{
"type": "object",
"properties": {
"any": {
"type": "boolean",
"const": true,
"description": "Any token the agent wallet holds; the executor picks one at execution."
}
},
"required": [
"any"
]
}
],
"description": "The asset this action produces: pinned to one token, or left open."
},
"exit": {
"description": "Optional exit guard: this action sells only when the asset's price in its output token crosses the automation's own average cost by the approved amount.",
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "take_profit",
"description": "Sell when the asset is this far ABOVE the automation's average cost."
},
"gainBps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "How far above the average cost the price must be, in basis points."
}
},
"required": [
"kind",
"gainBps"
],
"description": "A take-profit exit: sell once the price is up this much on average cost."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "stop_loss",
"description": "Sell when the asset is this far BELOW the automation's average cost."
},
"lossBps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "How far below the average cost the price must be, in basis points."
}
},
"required": [
"kind",
"lossBps"
],
"description": "A stop-loss exit: sell once the price is down this much on average cost."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "harvest_every",
"description": "Take profits on a schedule: sell only the gain every this many days, counted from the last harvest that settled, or from the first deposit that settled."
},
"days": {
"type": "string",
"pattern": "^[1-9]\\d{0,2}$",
"description": "How many days apart harvests are, 7 to 365, as a decimal string: \"7\" weekly, \"30\" monthly."
}
},
"required": [
"kind",
"days"
],
"description": "A scheduled harvest: only on a gain_of_position exit selling a curated yield vault's share token (earn_vaults). Every `days` days it sells only the gain, if there is any, and the automation keeps running."
}
]
}
},
"required": [
"kind",
"input",
"quantity",
"output"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "withdraw_to_owner",
"description": "Return an asset to the account that owns the agent wallet."
},
"input": {
"anyOf": [
{
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact token this asset is pinned to."
}
},
"required": [
"pinned"
]
},
{
"type": "object",
"properties": {
"any": {
"type": "boolean",
"const": true,
"description": "Any token the agent wallet holds; the executor picks one at execution."
}
},
"required": [
"any"
]
}
],
"description": "The asset this action spends: pinned to one token, or any token the agent wallet holds."
},
"quantity": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_tokens",
"description": "Spend an exact amount of the input token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact input amount, in the input token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw \"5000000\". No floating-point arithmetic or bash."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_value_usd",
"description": "Spend a USD-denominated value of the input token."
},
"value": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$",
"description": "The USD value to spend, as a decimal string."
}
},
"required": [
"kind",
"value"
],
"description": "A USD value of the input token: \"$5 worth of USDC\" is value \"5\", never exactly 5 USDC. The host converts it at live prices."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_output_tokens",
"description": "Receive an exact amount of the output token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact output amount, in the output token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the output token, scaled by its verified decimals; the host calculates the input."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "all_of_input",
"description": "Spend everything the agent wallet holds of the input asset."
}
},
"required": [
"kind"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_input",
"description": "Spend a fraction of the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to spend, in basis points of the input asset."
}
},
"required": [
"kind",
"bps"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_position",
"description": "Sell a fraction of this automation's own position in the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to sell, in basis points of this automation's own position; 10000 is all of it."
}
},
"required": [
"kind",
"bps"
],
"description": "A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an `exit` guard."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "gain_of_position",
"description": "Sell only the gain on this automation's own position in the input asset."
}
},
"required": [
"kind"
],
"description": "Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every `exit` guard and a pinned output other than that token."
}
],
"description": "How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it."
},
"output": {
"anyOf": [
{
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact token this asset is pinned to."
}
},
"required": [
"pinned"
]
},
{
"type": "object",
"properties": {
"any": {
"type": "boolean",
"const": true,
"description": "Any token the agent wallet holds; the executor picks one at execution."
}
},
"required": [
"any"
]
}
],
"description": "The asset this action produces: pinned to one token, or left open."
}
},
"required": [
"kind",
"input",
"quantity",
"output"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "withdraw_transfer",
"description": "Pay the exact approved destination through the provider’s chain or Intents transfer route."
},
"input": {
"anyOf": [
{
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact token this asset is pinned to."
}
},
"required": [
"pinned"
]
},
{
"type": "object",
"properties": {
"any": {
"type": "boolean",
"const": true,
"description": "Any token the agent wallet holds; the executor picks one at execution."
}
},
"required": [
"any"
]
}
],
"description": "The asset this action spends: pinned to one token, or any token the agent wallet holds."
},
"quantity": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_tokens",
"description": "Spend an exact amount of the input token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact input amount, in the input token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw \"5000000\". No floating-point arithmetic or bash."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_value_usd",
"description": "Spend a USD-denominated value of the input token."
},
"value": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$",
"description": "The USD value to spend, as a decimal string."
}
},
"required": [
"kind",
"value"
],
"description": "A USD value of the input token: \"$5 worth of USDC\" is value \"5\", never exactly 5 USDC. The host converts it at live prices."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_output_tokens",
"description": "Receive an exact amount of the output token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact output amount, in the output token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the output token, scaled by its verified decimals; the host calculates the input."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "all_of_input",
"description": "Spend everything the agent wallet holds of the input asset."
}
},
"required": [
"kind"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_input",
"description": "Spend a fraction of the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to spend, in basis points of the input asset."
}
},
"required": [
"kind",
"bps"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_position",
"description": "Sell a fraction of this automation's own position in the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to sell, in basis points of this automation's own position; 10000 is all of it."
}
},
"required": [
"kind",
"bps"
],
"description": "A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an `exit` guard."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "gain_of_position",
"description": "Sell only the gain on this automation's own position in the input asset."
}
},
"required": [
"kind"
],
"description": "Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every `exit` guard and a pinned output other than that token."
}
],
"description": "How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it."
},
"output": {
"anyOf": [
{
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact token this asset is pinned to."
}
},
"required": [
"pinned"
]
},
{
"type": "object",
"properties": {
"any": {
"type": "boolean",
"const": true,
"description": "Any token the agent wallet holds; the executor picks one at execution."
}
},
"required": [
"any"
]
}
],
"description": "The asset this action produces: pinned to one token, or left open."
},
"recipient": {
"type": "object",
"properties": {
"rail": {
"type": "string",
"enum": [
"chain",
"intents"
],
"description": "A native blockchain transfer or a signed transfer within an Intents ledger."
},
"network": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,63}$",
"description": "Exact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain."
},
"address": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval."
},
"memo": {
"type": "null",
"description": "Standalone routing memos are unsupported; routing must be encoded in the approved address."
}
},
"required": [
"rail",
"network",
"address",
"memo"
],
"description": "The exact approved payout rail, network and address."
},
"minimumReceivedRaw": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
{
"type": "null"
}
],
"description": "Minimum acceptable payout in output-asset atomic units, or null when the approved all-in loss bound alone sets the floor."
},
"maxFeeRaw": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
{
"type": "null"
}
],
"description": "Optional separate withdrawal fee cap in output-asset atomic units; null means undisclosed, while all-in loss and minimum receive remain enforced."
}
},
"required": [
"kind",
"input",
"quantity",
"output",
"recipient",
"minimumReceivedRaw",
"maxFeeRaw"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "send",
"description": "Not executable, and refused in new contracts: pay an address with withdraw_transfer."
},
"input": {
"anyOf": [
{
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact token this asset is pinned to."
}
},
"required": [
"pinned"
]
},
{
"type": "object",
"properties": {
"any": {
"type": "boolean",
"const": true,
"description": "Any token the agent wallet holds; the executor picks one at execution."
}
},
"required": [
"any"
]
}
],
"description": "The asset this action spends: pinned to one token, or any token the agent wallet holds."
},
"quantity": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_tokens",
"description": "Spend an exact amount of the input token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact input amount, in the input token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw \"5000000\". No floating-point arithmetic or bash."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_value_usd",
"description": "Spend a USD-denominated value of the input token."
},
"value": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$",
"description": "The USD value to spend, as a decimal string."
}
},
"required": [
"kind",
"value"
],
"description": "A USD value of the input token: \"$5 worth of USDC\" is value \"5\", never exactly 5 USDC. The host converts it at live prices."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_output_tokens",
"description": "Receive an exact amount of the output token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact output amount, in the output token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the output token, scaled by its verified decimals; the host calculates the input."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "all_of_input",
"description": "Spend everything the agent wallet holds of the input asset."
}
},
"required": [
"kind"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_input",
"description": "Spend a fraction of the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to spend, in basis points of the input asset."
}
},
"required": [
"kind",
"bps"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_position",
"description": "Sell a fraction of this automation's own position in the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to sell, in basis points of this automation's own position; 10000 is all of it."
}
},
"required": [
"kind",
"bps"
],
"description": "A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an `exit` guard."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "gain_of_position",
"description": "Sell only the gain on this automation's own position in the input asset."
}
},
"required": [
"kind"
],
"description": "Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every `exit` guard and a pinned output other than that token."
}
],
"description": "How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it."
},
"output": {
"anyOf": [
{
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact token this asset is pinned to."
}
},
"required": [
"pinned"
]
},
{
"type": "object",
"properties": {
"any": {
"type": "boolean",
"const": true,
"description": "Any token the agent wallet holds; the executor picks one at execution."
}
},
"required": [
"any"
]
}
],
"description": "The asset this action produces: pinned to one token, or left open."
},
"recipient": {
"type": "object",
"properties": {
"chain": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"description": "Which chain the destination address is on."
},
"address": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,128}$",
"description": "The destination address on that chain."
}
},
"required": [
"chain",
"address"
],
"description": "The pinned destination this action pays."
}
},
"required": [
"kind",
"input",
"quantity",
"output",
"recipient"
]
}
]
},
"description": "The actions this contract authorizes, executed in order."
},
"validUntil": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When this contract's authority expires."
},
"maxExecutions": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"description": "How many times this contract may be executed before it is exhausted."
},
"maxTotalInput": {
"description": "Optional total cap on what all executions together may spend, per input token, in raw units. A $500 budget paid in USDC is 500 USDC. Every action input must be pinned and capped.",
"minItems": 1,
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The most this contract may spend of this token in total, across every execution, in the token's smallest unit."
}
},
"required": [
"tokenId",
"decimals",
"amountRaw"
],
"description": "One capped input token and its total spend ceiling."
}
},
"bounds": {
"type": "object",
"properties": {
"maxValueLossBps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The most value an execution may give up to price movement and fees together, in basis points; 0 allows no loss."
},
"maxSignatureLifetimeSeconds": {
"type": "integer",
"minimum": 1,
"maximum": 259500,
"description": "Explicit maximum lifetime of each released transfer signature, in seconds. 1Click confidential swaps require up to 259500 seconds (72 hours 5 minutes). This does not extend the execution window or approval validity."
}
},
"required": [
"maxValueLossBps",
"maxSignatureLifetimeSeconds"
],
"description": "The value-loss and signature-lifetime limits every execution must respect."
},
"execution": {
"description": "Optional explicit recovery authority, signed with these exact actions and bounds; omitted on historical approvals.",
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"ordered",
"parallel_independent"
],
"description": "Ordered actions run in approved order. Parallel-independent actions run up to four concurrently after the complete initially funded request is reserved."
},
"maxPreparationAttempts": {
"type": "integer",
"minimum": 1,
"maximum": 3,
"description": "The maximum unsigned preparation attempts for each approved action, including its first attempt."
},
"dispatchWindowSeconds": {
"type": "integer",
"minimum": 60,
"maximum": 86400,
"description": "The maximum dispatch window in seconds for this operation, from when its approval opened: exactly 1200 for a new chat request, and up to its signed deadline for an automation's grant. Closing dispatch never proves a submitted transfer did not move; observation continues."
}
},
"required": [
"mode",
"maxPreparationAttempts",
"dispatchWindowSeconds"
]
},
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "dependency_graph"
},
"dependencies": {
"minItems": 1,
"maxItems": 16,
"type": "array",
"items": {
"maxItems": 16,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 15
}
},
"description": "One row per requested action, listing its sorted unique predecessor action indices. A successor requires confirmed predecessor settlement. Every action must be funded from initial holdings."
},
"maxPreparationAttempts": {
"type": "integer",
"minimum": 1,
"maximum": 3,
"description": "The maximum unsigned preparation attempts for each approved action, including its first attempt."
},
"dispatchWindowSeconds": {
"type": "integer",
"minimum": 60,
"maximum": 86400,
"description": "The maximum dispatch window in seconds for this operation, from when its approval opened: exactly 1200 for a new chat request, and up to its signed deadline for an automation's grant. Closing dispatch never proves a submitted transfer did not move; observation continues."
}
},
"required": [
"mode",
"dependencies",
"maxPreparationAttempts",
"dispatchWindowSeconds"
]
}
]
}
},
"required": [
"type",
"actions",
"validUntil",
"maxExecutions",
"bounds"
]
},
"expiresAt": {
"description": "When the exact review ceases to authorize an execution claim.",
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"executionRestriction": {
"description": "The immutable restriction that prevents automatic signing under this approval.",
"type": "string",
"const": "signing_disabled"
}
},
"required": [
"approvalId",
"status"
]
},
"automationRunId": {
"description": "The automation run that asked for this trade, when one did.",
"type": "string",
"minLength": 1,
"maxLength": 160
},
"request": {
"anyOf": [
{
"type": "object",
"properties": {
"actions": {
"minItems": 1,
"maxItems": 16,
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "swap",
"description": "Exchange one asset for another; custody never leaves the agent wallet."
},
"input": {
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact input asset's token id and decimals."
}
},
"required": [
"pinned"
],
"description": "The concrete asset this request spends; it must match the approved action at this position."
},
"quantity": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_tokens",
"description": "Spend an exact amount of the input token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact input amount, in the input token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw \"5000000\". No floating-point arithmetic or bash."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_value_usd",
"description": "Spend a USD-denominated value of the input token."
},
"value": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$",
"description": "The USD value to spend, as a decimal string."
}
},
"required": [
"kind",
"value"
],
"description": "A USD value of the input token: \"$5 worth of USDC\" is value \"5\", never exactly 5 USDC. The host converts it at live prices."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_output_tokens",
"description": "Receive an exact amount of the output token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact output amount, in the output token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the output token, scaled by its verified decimals; the host calculates the input."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "all_of_input",
"description": "Spend everything the agent wallet holds of the input asset."
}
},
"required": [
"kind"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_input",
"description": "Spend a fraction of the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to spend, in basis points of the input asset."
}
},
"required": [
"kind",
"bps"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_position",
"description": "Sell a fraction of this automation's own position in the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to sell, in basis points of this automation's own position; 10000 is all of it."
}
},
"required": [
"kind",
"bps"
],
"description": "A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an `exit` guard."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "gain_of_position",
"description": "Sell only the gain on this automation's own position in the input asset."
}
},
"required": [
"kind"
],
"description": "Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every `exit` guard and a pinned output other than that token."
}
],
"description": "How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it."
},
"output": {
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact output asset's token id and decimals."
}
},
"required": [
"pinned"
],
"description": "The concrete asset this request produces; it must match the approved action at this position."
}
},
"required": [
"kind",
"input",
"quantity",
"output"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "withdraw_to_owner",
"description": "Return an asset to the account that owns the agent wallet."
},
"input": {
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact input asset's token id and decimals."
}
},
"required": [
"pinned"
],
"description": "The concrete asset this request spends; it must match the approved action at this position."
},
"quantity": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_tokens",
"description": "Spend an exact amount of the input token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact input amount, in the input token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw \"5000000\". No floating-point arithmetic or bash."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_value_usd",
"description": "Spend a USD-denominated value of the input token."
},
"value": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$",
"description": "The USD value to spend, as a decimal string."
}
},
"required": [
"kind",
"value"
],
"description": "A USD value of the input token: \"$5 worth of USDC\" is value \"5\", never exactly 5 USDC. The host converts it at live prices."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_output_tokens",
"description": "Receive an exact amount of the output token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact output amount, in the output token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the output token, scaled by its verified decimals; the host calculates the input."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "all_of_input",
"description": "Spend everything the agent wallet holds of the input asset."
}
},
"required": [
"kind"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_input",
"description": "Spend a fraction of the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to spend, in basis points of the input asset."
}
},
"required": [
"kind",
"bps"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_position",
"description": "Sell a fraction of this automation's own position in the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to sell, in basis points of this automation's own position; 10000 is all of it."
}
},
"required": [
"kind",
"bps"
],
"description": "A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an `exit` guard."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "gain_of_position",
"description": "Sell only the gain on this automation's own position in the input asset."
}
},
"required": [
"kind"
],
"description": "Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every `exit` guard and a pinned output other than that token."
}
],
"description": "How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it."
},
"output": {
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact output asset's token id and decimals."
}
},
"required": [
"pinned"
],
"description": "The concrete asset this request produces; it must match the approved action at this position."
}
},
"required": [
"kind",
"input",
"quantity",
"output"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "withdraw_transfer",
"description": "Pay the exact approved destination through the provider’s chain or Intents transfer route."
},
"input": {
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact input asset's token id and decimals."
}
},
"required": [
"pinned"
],
"description": "The concrete asset this request spends; it must match the approved action at this position."
},
"quantity": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_tokens",
"description": "Spend an exact amount of the input token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact input amount, in the input token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the input token, not its USD value: exactly 5 USDC at decimals 6 is amountRaw \"5000000\". No floating-point arithmetic or bash."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_input_value_usd",
"description": "Spend a USD-denominated value of the input token."
},
"value": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})(?:\\.\\d{1,18})?$",
"description": "The USD value to spend, as a decimal string."
}
},
"required": [
"kind",
"value"
],
"description": "A USD value of the input token: \"$5 worth of USDC\" is value \"5\", never exactly 5 USDC. The host converts it at live prices."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact_output_tokens",
"description": "Receive an exact amount of the output token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact output amount, in the output token's smallest unit."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "An exact quantity of the output token, scaled by its verified decimals; the host calculates the input."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "all_of_input",
"description": "Spend everything the agent wallet holds of the input asset."
}
},
"required": [
"kind"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_input",
"description": "Spend a fraction of the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to spend, in basis points of the input asset."
}
},
"required": [
"kind",
"bps"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction_of_position",
"description": "Sell a fraction of this automation's own position in the input asset."
},
"bps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The fraction to sell, in basis points of this automation's own position; 10000 is all of it."
}
},
"required": [
"kind",
"bps"
],
"description": "A fraction of what THIS automation's own settled fills still hold of the input asset, never of the wallet balance; only on an action with an `exit` guard."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "gain_of_position",
"description": "Sell only the gain on this automation's own position in the input asset."
}
},
"required": [
"kind"
],
"description": "Only the gain on THIS automation's own position, priced in the token its buys paid with; only with a take_profit or harvest_every `exit` guard and a pinned output other than that token."
}
],
"description": "How much moves: an exact token amount, an exact USD value, an exact output amount, all of the input, or a fraction of it."
},
"output": {
"type": "object",
"properties": {
"pinned": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
}
},
"required": [
"tokenId",
"decimals"
],
"description": "The exact output asset's token id and decimals."
}
},
"required": [
"pinned"
],
"description": "The concrete asset this request produces; it must match the approved action at this position."
},
"recipient": {
"type": "object",
"properties": {
"rail": {
"type": "string",
"enum": [
"chain",
"intents"
],
"description": "A native blockchain transfer or a signed transfer within an Intents ledger."
},
"network": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,63}$",
"description": "Exact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain."
},
"address": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval."
},
"memo": {
"type": "null",
"description": "Standalone routing memos are unsupported; routing must be encoded in the approved address."
}
},
"required": [
"rail",
"network",
"address",
"memo"
],
"description": "The exact approved payout rail, network and address."
},
"minimumReceivedRaw": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
{
"type": "null"
}
],
"description": "Minimum acceptable payout in output-asset atomic units, or null when the approved all-in loss bound alone sets the floor."
},
"maxFeeRaw": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
{
"type": "null"
}
],
"description": "Optional separate withdrawal fee cap in output-asset atomic units; null means undisclosed, while all-in loss and minimum receive remain enforced."
}
},
"required": [
"kind",
"input",
"quantity",
"output",
"recipient",
"minimumReceivedRaw",
"maxFeeRaw"
]
}
]
},
"description": "The complete ordered financial actions proposed for this execution, with concrete assets and exact quantity rules."
},
"bounds": {
"type": "object",
"properties": {
"maxValueLossBps": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,4})$",
"description": "The most value an execution may give up to price movement and fees together, in basis points; 0 allows no loss."
},
"maxSignatureLifetimeSeconds": {
"type": "integer",
"minimum": 1,
"maximum": 259500,
"description": "Explicit maximum lifetime of each released transfer signature, in seconds. 1Click confidential swaps require up to 259500 seconds (72 hours 5 minutes). This does not extend the execution window or approval validity."
}
},
"required": [
"maxValueLossBps",
"maxSignatureLifetimeSeconds"
],
"description": "The explicit loss and signature-lifetime limits; these must exactly match the approved grant."
},
"execution": {
"description": "Required on every new chat proposal: the exact execution limits proposed for approval. Copy existing signed grants unchanged; historical approvals and standing grants with this field omitted retain their original execution behavior.",
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"ordered",
"parallel_independent"
],
"description": "Ordered actions run in approved order. Parallel-independent actions run up to four concurrently after the complete initially funded request is reserved."
},
"maxPreparationAttempts": {
"type": "integer",
"minimum": 1,
"maximum": 3,
"description": "The maximum unsigned preparation attempts for each approved action, including its first attempt."
},
"dispatchWindowSeconds": {
"type": "integer",
"minimum": 60,
"maximum": 86400,
"description": "The maximum dispatch window in seconds for this operation, from when its approval opened: exactly 1200 for a new chat request, and up to its signed deadline for an automation's grant. Closing dispatch never proves a submitted transfer did not move; observation continues."
}
},
"required": [
"mode",
"maxPreparationAttempts",
"dispatchWindowSeconds"
]
},
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "dependency_graph"
},
"dependencies": {
"minItems": 1,
"maxItems": 16,
"type": "array",
"items": {
"maxItems": 16,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 15
}
},
"description": "One row per requested action, listing its sorted unique predecessor action indices. A successor requires confirmed predecessor settlement. Every action must be funded from initial holdings."
},
"maxPreparationAttempts": {
"type": "integer",
"minimum": 1,
"maximum": 3,
"description": "The maximum unsigned preparation attempts for each approved action, including its first attempt."
},
"dispatchWindowSeconds": {
"type": "integer",
"minimum": 60,
"maximum": 86400,
"description": "The maximum dispatch window in seconds for this operation, from when its approval opened: exactly 1200 for a new chat request, and up to its signed deadline for an automation's grant. Closing dispatch never proves a submitted transfer did not move; observation continues."
}
},
"required": [
"mode",
"dependencies",
"maxPreparationAttempts",
"dispatchWindowSeconds"
]
}
]
}
},
"required": [
"actions",
"bounds"
]
},
{
"type": "null"
}
],
"description": "What the agent asked for: the actions and their limits, as swaps and payouts to the destination the user approved, the same as Get a trade returns. A leg's `actionIndex` names its action, so a payout can be shown as one. `null` only for old trades recorded without it."
},
"legs": {
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "This leg's position in the frozen plan, counting from zero."
},
"actionIndex": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "Which of the trade's `request.actions` this leg carries out, counting from zero: a swap, or a payout to the user's main wallet or to an address they approved."
},
"inputPriceUsd": {
"description": "The USD price of one whole input token that the plan was checked against, as plain decimal text; absent on plans that recorded none.",
"type": "string",
"maxLength": 80,
"pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$"
},
"outputPriceUsd": {
"description": "The USD price of one whole output token that the plan was checked against, as plain decimal text; absent on plans that recorded none.",
"type": "string",
"maxLength": 80,
"pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$"
},
"input": {
"description": "The frozen input asset and requested amount when that side was fixed; not measured spend.",
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"description": "The asset's NEP-141 token id."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
},
"amountRaw": {
"description": "The amount, in the token's smallest unit, when it is known.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
}
},
"required": [
"tokenId",
"decimals"
]
},
"output": {
"description": "The frozen output asset and requested amount when that side was fixed; not measured proceeds.",
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"description": "The asset's NEP-141 token id."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
},
"amountRaw": {
"description": "The amount, in the token's smallest unit, when it is known.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
}
},
"required": [
"tokenId",
"decimals"
]
},
"minimumOutputRaw": {
"description": "The minimum output required by an exact-input leg, in the output asset's smallest unit.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
"maximumInputRaw": {
"description": "The maximum input permitted by an exact-output leg, in the input asset's smallest unit.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
"stage": {
"description": "The stage derived from the persisted claim while it has no terminal receipt; absent for untouched planned legs.",
"type": "string",
"enum": [
"checking",
"retrying",
"quoting",
"signed",
"confirming",
"unresolved"
]
},
"legId": {
"description": "The actual claim's durable ID; absent when this planned leg was never attempted.",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"receipt": {
"description": "The retained terminal evidence for the actual leg; untouched planned legs have no receipt.",
"oneOf": [
{
"type": "object",
"properties": {
"approvalId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The approval's id."
},
"legId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Which leg of the plan this receipt settles."
},
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "This leg's position within the plan, counting from zero."
},
"operationId": {
"description": "The durable financial request this evidence belongs to.",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"occurrenceId": {
"description": "The archived event's original identity, retained verbatim; current receipts use `operationId`.",
"type": "string",
"minLength": 1,
"maxLength": 160
},
"state": {
"type": "string",
"const": "settled",
"description": "The leg settled: its output asset moved as planned."
},
"output": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"description": "The asset's NEP-141 token id."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
},
"amountRaw": {
"description": "The amount, in the token's smallest unit, when it is known.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
}
},
"required": [
"tokenId",
"decimals"
],
"description": "What the leg produced."
}
},
"required": [
"approvalId",
"legId",
"index",
"state",
"output"
]
},
{
"type": "object",
"properties": {
"approvalId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The approval's id."
},
"legId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Which leg of the plan this receipt settles."
},
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "This leg's position within the plan, counting from zero."
},
"operationId": {
"description": "The durable financial request this evidence belongs to.",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"occurrenceId": {
"description": "The archived event's original identity, retained verbatim; current receipts use `operationId`.",
"type": "string",
"minLength": 1,
"maxLength": 160
},
"state": {
"type": "string",
"const": "refunded",
"description": "The leg did not settle and its input asset was returned."
},
"refund": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"description": "The asset's NEP-141 token id."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
},
"amountRaw": {
"description": "The amount, in the token's smallest unit, when it is known.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
}
},
"required": [
"tokenId",
"decimals"
],
"description": "What was returned."
}
},
"required": [
"approvalId",
"legId",
"index",
"state",
"refund"
]
},
{
"type": "object",
"properties": {
"approvalId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The approval's id."
},
"legId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Which leg of the plan this receipt settles."
},
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "This leg's position within the plan, counting from zero."
},
"operationId": {
"description": "The durable financial request this evidence belongs to.",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"occurrenceId": {
"description": "The archived event's original identity, retained verbatim; current receipts use `operationId`.",
"type": "string",
"minLength": 1,
"maxLength": 160
},
"state": {
"type": "string",
"const": "not_executed",
"description": "The leg did not settle. Most reasons mean it never reached the provider; `rejected` means it did and was refused there — see `reason`."
},
"reason": {
"description": "Why nothing executed: `signing_disabled` when automatic signing was off, `signing_failed` when signing itself failed, `rejected` when the provider refused the submission outright (it did reach the provider), `expired` when the leg's own signing/deposit window elapsed before a terminal fact arrived, or `failed` otherwise. Optional so receipts written before the reason was carried still parse.",
"type": "string",
"enum": [
"signing_disabled",
"signing_failed",
"rejected",
"expired",
"failed"
]
},
"unsignedBy": {
"description": "Present with `signing_failed` on an Agent API wallet's leg when the NEAR Intents Agent API, the wallet's signer, released no signature for it: it refused the request, or its own history proves it released none. Nothing moved.",
"type": "string",
"const": "agent_api"
}
},
"required": [
"approvalId",
"legId",
"index",
"state"
]
}
]
}
},
"required": [
"index",
"actionIndex"
]
},
"description": "Every leg of the frozen plan in plan order, including untouched legs without claims or receipts; empty before a plan exists."
},
"result": {
"description": "The persisted outcome, updated by conclusive receipts; absent while no outcome exists, including denied or expired preparation.",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"completed",
"failed",
"denied",
"unverified",
"pending",
"partial",
"no_trade",
"settled",
"refunded",
"not_executed"
],
"description": "The canonical financial outcome projected for display; refused requests appear as denied, pending is unresolved and partial means only part executed."
},
"reason": {
"description": "Present when automatic signing was disabled for the reported non-execution.",
"type": "string",
"const": "signing_disabled"
},
"stopped": {
"description": "Present only on a partial result whose run refused a later leg before it was claimed: the planned action it stopped on and the bounded reason it never started.",
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "The leg's zero-based position in the frozen plan."
},
"reason": {
"type": "string",
"enum": [
"lineage_unavailable",
"consent_invalid",
"allowance_exhausted",
"spend_cap_reached",
"position_unknown",
"exit_not_reached",
"selection_mismatch",
"action_mismatch",
"request_frozen",
"insufficient_funds",
"evidence_unavailable",
"inventory_stale",
"plan_conflict",
"leg_order",
"quote_invalid",
"payload_invalid",
"account_busy",
"expired",
"credentials_unavailable",
"execution_paused",
"automation_held",
"authority_withdrawn",
"perps_disabled",
"prediction_disabled",
"not_available_in_region",
"no_account",
"withdrawal_too_small",
"withdrawal_reserve_required",
"nothing_freed",
"order_invalid",
"route_unsupported",
"route_changed",
"solana_disabled",
"token_unpriced",
"token_mismatch",
"token_freezable",
"token_transfer_hook",
"token_permanent_delegate",
"token_non_transferable",
"token_default_frozen",
"token_transfer_fee",
"token_pausable",
"token_unknown_extension",
"token_not_sellable",
"route_invalid",
"loss_bound_exceeded",
"reserve_required",
"buy_too_small",
"swap_already_landed",
"solana_unavailable"
],
"description": "The bounded category the stopped leg was refused with; no provider text, account details or amounts."
}
},
"required": [
"index",
"reason"
]
},
"message": {
"description": "The host's fixed explanation for a refused request, when present; never raw provider text.",
"type": "string",
"maxLength": 280
},
"legs": {
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "The reported leg's position in the frozen plan, counting from zero."
},
"state": {
"type": "string",
"enum": [
"claimed",
"signed",
"uncertain",
"settled",
"refunded",
"not_executed"
],
"description": "The retained execution or settlement state for this reported leg."
}
},
"required": [
"index",
"state"
]
},
"description": "The actual legs represented by this outcome; untouched planned legs are not fabricated as results."
}
},
"required": [
"status",
"legs"
]
},
"running": {
"type": "boolean",
"description": "True when the trade has an execution claim and no current outcome; it does not prove a process is still running."
},
"ended": {
"type": "boolean",
"description": "True when no outcome is available and the trade is uncertain, denied or expired. Later receipts may resolve uncertainty; this does not assert that settlement is final."
}
},
"required": [
"conversationId",
"origin",
"title",
"assetIds",
"request",
"legs",
"running",
"ended"
],
"description": "The trade the agent asked for, in a chat or in an automation's run."
}
},
"required": [
"id",
"createdAt",
"updatedAt",
"kind",
"trade"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it happened: the request, or the change. The feed is ordered by it."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it last changed, such as a settlement or a credit."
},
"kind": {
"type": "string",
"const": "swap",
"description": "A swap the user made in the agent wallet with Swap tokens; read `swap`."
},
"swap": {
"$ref": "#/components/schemas/Swap"
}
},
"required": [
"id",
"createdAt",
"updatedAt",
"kind",
"swap"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it happened: the request, or the change. The feed is ordered by it."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it last changed, such as a settlement or a credit."
},
"kind": {
"type": "string",
"const": "withdrawal",
"description": "A withdrawal; read `withdrawal`."
},
"withdrawal": {
"$ref": "#/components/schemas/Withdrawal"
}
},
"required": [
"id",
"createdAt",
"updatedAt",
"kind",
"withdrawal"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it happened: the request, or the change. The feed is ordered by it."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it last changed, such as a settlement or a credit."
},
"kind": {
"type": "string",
"const": "deposit",
"description": "A deposit; read `deposit`."
},
"deposit": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The deposit's id."
},
"requestKey": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The `Idempotency-Key` the deposit was created with; filter List deposits on it."
},
"terms": {
"description": "The terms the deposit was created with.",
"$ref": "#/components/schemas/DepositTerms"
},
"state": {
"type": "string",
"enum": [
"preparing",
"awaiting_deposit",
"processing",
"credited",
"refunded",
"unknown",
"expired",
"failed"
],
"description": "Where the deposit is: `preparing` (getting the address), `awaiting_deposit` (waiting for the user's transfer), `processing`, then `credited` or `refunded`. `failed` means no address was issued. `expired` means the deadline passed with no transfer seen; a late transfer still moves it on. `unknown` means Fin saw something it could not confirm; it never proves that no money moved, so keep checking."
},
"instruction": {
"anyOf": [
{
"oneOf": [
{
"type": "object",
"properties": {
"rail": {
"type": "string",
"const": "chain",
"description": "Payment originates on the specified native blockchain."
},
"network": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,63}$",
"description": "Exact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain."
},
"asset": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "Opaque stable Fin asset identity returned by balances and the transfer catalog."
},
"network": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,63}$",
"description": "The asset's native blockchain network."
},
"kind": {
"type": "string",
"enum": [
"native",
"token"
],
"description": "Native currency or a token contract according to the provider catalog."
},
"contractAddress": {
"anyOf": [
{
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval."
},
{
"type": "null"
}
],
"description": "Native-chain token identifier; null for native currency."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "Atomic-unit precision."
},
"symbol": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Display label; the asset id determines identity."
}
},
"required": [
"id",
"network",
"kind",
"contractAddress",
"decimals",
"symbol"
],
"description": "Exact asset and atomic-unit precision to transfer."
},
"address": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Verified destination for this deposit request only."
},
"memo": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[\\x20-\\x7e]+$"
},
{
"type": "null"
}
],
"description": "Required deposit memo or tag, exactly as returned; null means absent."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Exact funding amount in asset atomic units."
},
"minimumCreditRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Minimum authorized wallet credit."
},
"expectedCreditRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Quoted credit; the receipt records actual credit separately."
},
"sendBefore": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "Do not initiate another transfer after this deadline."
},
"expiresAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "Provider deposit deadline. Late payment remains observable; expiry never proves a refund."
},
"refundAddress": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval."
},
"reusable": {
"type": "boolean",
"const": false,
"description": "Bound to one funding request; never reuse for a later transfer."
},
"kind": {
"type": "string",
"const": "chain_transfer",
"description": "The external wallet broadcasts a native-chain transfer using these instructions."
}
},
"required": [
"rail",
"network",
"asset",
"address",
"memo",
"amountRaw",
"minimumCreditRaw",
"expectedCreditRaw",
"sendBefore",
"expiresAt",
"refundAddress",
"reusable",
"kind"
]
},
{
"type": "object",
"properties": {
"rail": {
"type": "string",
"const": "intents",
"description": "Payment originates on the specified public or confidential Intents ledger."
},
"network": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,63}$",
"description": "Exact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain."
},
"asset": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "Opaque stable Fin asset identity returned by balances and the transfer catalog."
},
"network": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,63}$",
"description": "The asset's native blockchain network."
},
"kind": {
"type": "string",
"enum": [
"native",
"token"
],
"description": "Native currency or a token contract according to the provider catalog."
},
"contractAddress": {
"anyOf": [
{
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval."
},
{
"type": "null"
}
],
"description": "Native-chain token identifier; null for native currency."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "Atomic-unit precision."
},
"symbol": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Display label; the asset id determines identity."
}
},
"required": [
"id",
"network",
"kind",
"contractAddress",
"decimals",
"symbol"
],
"description": "Exact asset and atomic-unit precision to transfer."
},
"address": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Verified destination for this deposit request only."
},
"memo": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[\\x20-\\x7e]+$"
},
{
"type": "null"
}
],
"description": "Required deposit memo or tag, exactly as returned; null means absent."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Exact funding amount in asset atomic units."
},
"minimumCreditRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Minimum authorized wallet credit."
},
"expectedCreditRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Quoted credit; the receipt records actual credit separately."
},
"sendBefore": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "Do not initiate another transfer after this deadline."
},
"expiresAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "Provider deposit deadline. Late payment remains observable; expiry never proves a refund."
},
"refundAddress": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval."
},
"reusable": {
"type": "boolean",
"const": false,
"description": "Bound to one funding request; never reuse for a later transfer."
},
"kind": {
"type": "string",
"const": "intents_transfer",
"description": "The external wallet signs and submits a transfer intent on the specified ledger."
},
"protocol": {
"type": "object",
"properties": {
"verifier": {
"type": "string",
"enum": [
"intents.near",
"intents.far"
],
"description": "Ledger verifier for the external wallet's signed transfer intent."
},
"assetId": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"description": "Ledger protocol asset identifier, exposed only for explicit advanced Intents funding."
},
"depositAddress": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Quote deposit account, used by the external wallet to generate the exact signed transfer intent; identical to the instruction address."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Exact signed transfer amount."
}
},
"required": [
"verifier",
"assetId",
"depositAddress",
"amountRaw"
],
"description": "The external wallet constructs and signs a transfer intent with its own authority. Fin does not sign for or hold credentials to that source wallet."
}
},
"required": [
"rail",
"network",
"asset",
"address",
"memo",
"amountRaw",
"minimumCreditRaw",
"expectedCreditRaw",
"sendBefore",
"expiresAt",
"refundAddress",
"reusable",
"kind",
"protocol"
]
}
]
},
{
"type": "null"
}
],
"description": "Where and what to send; `null` until the address is issued."
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {
"observedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When trusted provider evidence was observed."
},
"state": {
"type": "string",
"enum": [
"credited",
"refunded"
],
"description": "Provider-established terminal financial outcome."
},
"depositedRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Observed source amount."
},
"creditedRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Actual wallet credit; zero on full refund."
},
"refundedRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Amount refunded to the approved source destination."
},
"sourceTransactionHashes": {
"minItems": 1,
"maxItems": 32,
"type": "array",
"items": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash."
},
"description": "Observed source transactions or ledger intent identifiers bound to the instruction."
},
"refundTransactionHashes": {
"maxItems": 32,
"type": "array",
"items": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash."
},
"description": "Observed refund transactions or ledger intent identifiers."
}
},
"required": [
"observedAt",
"state",
"depositedRaw",
"creditedRaw",
"refundedRaw",
"sourceTransactionHashes",
"refundTransactionHashes"
]
},
{
"type": "null"
}
],
"description": "What was credited or refunded; `null` until that is observed."
},
"seenAt": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "When Fin first saw the user's transfer: the first check that found it on its way, or already credited or refunded. `null` until then, and for a transfer Fin saw before it kept this."
},
"arrivedRaw": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
{
"type": "null"
}
],
"description": "What 1Click reported arriving while it confirmed the transfer, in the asset's smallest unit; `null` until it reports a figure. For display while it confirms: `receipt` records what was finally credited."
},
"value": {
"anyOf": [
{
"$ref": "#/components/schemas/ValueAtTime"
},
{
"type": "null"
}
],
"description": "What was credited (`receipt.creditedRaw`) was worth when it was credited, at the price Fin recorded with the credit. `null` until it is credited, and when no fresh price was known then."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When the deposit was created."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When the deposit last changed."
}
},
"required": [
"id",
"requestKey",
"terms",
"state",
"instruction",
"receipt",
"seenAt",
"arrivedRaw",
"value",
"createdAt",
"updatedAt"
],
"description": "The deposit, as Get a deposit returns it."
}
},
"required": [
"id",
"createdAt",
"updatedAt",
"kind",
"deposit"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it happened: the request, or the change. The feed is ordered by it."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it last changed, such as a settlement or a credit."
},
"kind": {
"type": "string",
"const": "deposit_address",
"description": "A transfer to a one-time deposit address; read `depositAddress`."
},
"depositAddress": {
"description": "The deposit address, as Get a deposit address returns it: what arrived is in its `receipt`.",
"$ref": "#/components/schemas/DepositAddress"
}
},
"required": [
"id",
"createdAt",
"updatedAt",
"kind",
"depositAddress"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it happened: the request, or the change. The feed is ordered by it."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it last changed, such as a settlement or a credit."
},
"kind": {
"type": "string",
"const": "automation",
"description": "A change to an automation; read `automation`."
},
"automation": {
"type": "object",
"properties": {
"automationId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The automation that changed."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The automation's name."
},
"change": {
"type": "string",
"enum": [
"created",
"paused",
"resumed",
"deleted"
],
"description": "What happened to it: `created`, `paused`, `resumed` or `deleted` (which includes an automation that finished on its own). Edits are retained privately and shown in chat receipts and automation detail, not in this feed."
}
},
"required": [
"automationId",
"name",
"change"
],
"description": "The automation and what changed."
}
},
"required": [
"id",
"createdAt",
"updatedAt",
"kind",
"automation"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it happened: the request, or the change. The feed is ordered by it."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it last changed, such as a settlement or a credit."
},
"kind": {
"type": "string",
"const": "solana",
"description": "A buy or a sell of a Solana token through the agent's own Solana account, or SOL moved into or out of it; read `solana`."
},
"solana": {
"type": "object",
"properties": {
"conversationId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The conversation in which the agent asked for it."
},
"origin": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "conversation",
"description": "An ordinary user-started conversation."
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "automation",
"description": "A conversation an automation created."
},
"automationId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The automation that created this conversation."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The automation's name at the time this conversation started."
}
},
"required": [
"type",
"automationId",
"name"
]
}
],
"description": "Where it was asked for: an ordinary chat, or a conversation an automation started."
},
"title": {
"description": "The conversation's current title; null for an untitled conversation.",
"type": [
"string",
"null"
]
},
"automationRunId": {
"description": "The automation run that asked for it, when one did.",
"type": "string",
"minLength": 1,
"maxLength": 160
},
"side": {
"type": "string",
"enum": [
"buy",
"sell",
"fund",
"withdraw"
],
"description": "Which Solana operation this is: a buy, a sell, a fund or a withdrawal."
},
"token": {
"description": "The token bought or sold; absent for a fund or a withdrawal.",
"$ref": "#/components/schemas/SolanaToken"
},
"request": {
"anyOf": [
{
"$ref": "#/components/schemas/SolanaBuyInput"
},
{
"$ref": "#/components/schemas/SolanaSellInput"
},
{
"$ref": "#/components/schemas/SolanaFundInput"
},
{
"$ref": "#/components/schemas/SolanaWithdrawInput"
}
],
"description": "What the agent asked for, as the user approved it: a buy's, a sell's, a fund's or a withdrawal's terms, as `side` says."
},
"approval": {
"description": "The request's own approval, when it needed one; absent when it ran under an automation's standing permission.",
"type": "object",
"properties": {
"approvalId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The single-use approval of this exact request."
},
"status": {
"type": "string",
"enum": [
"pending",
"approved",
"denied",
"expired"
],
"description": "The user's recorded decision, with an overdue pending approval shown as expired; an approval alone does not mean it ran."
},
"expiresAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When the approval stops covering a start."
}
},
"required": [
"approvalId",
"status",
"expiresAt"
]
},
"status": {
"type": "string",
"enum": [
"pending",
"processing",
"completed",
"partial",
"refunded",
"failed",
"denied",
"expired",
"uncertain"
],
"description": "`pending` until it starts, usually while it waits for the user's approval. `processing` while it runs, or while a Solana transaction it sent, or its transfer back to the agent wallet, has not finished. Then `completed` (the tokens bought, the proceeds of a sale or the SOL moved arrived), `partial` (part of it stands: a buy whose swap never happened after the account was funded, so the SOL is in the agent's Solana account, or a sale whose swap landed but whose transfer back did not finish, or that kept SOL, so the SOL is in the account or with 1Click until it refunds it; `solLeftLamports` says how much the account holds), `refunded` (1Click sent the funds back where they came from) or `failed` (nothing moved; `failureReason` says why). `denied` and `expired` mean the user denied it, or its approval ran out, before it started. `uncertain` means the result could not be confirmed yet: never ask the agent for a replacement, keep checking. `completed`, `partial`, `refunded`, `failed`, `denied` and `expired` are final."
},
"failureReason": {
"anyOf": [
{
"type": "string",
"enum": [
"insufficient_funds",
"quote_rejected",
"quote_expired",
"unavailable",
"not_authorized",
"stopped",
"not_executed",
"signing_disabled"
]
},
{
"type": "null"
}
],
"description": "When `status` is `failed`, why; otherwise `null`. `insufficient_funds`: the agent wallet or the Solana account did not hold enough, the account's reserve included. `quote_rejected`: the price or the route failed its checks, the loss limit would have been crossed, or a buy was under the minimum. `unavailable`: a temporary problem stopped it before anything was sent. `not_authorized`: the approval no longer covered it, or the token is one the agent does not trade. `stopped`: an operator paused trading or turned the wallet off. `not_executed`: nothing it sent landed before it expired. `signing_disabled`: this deployment does not sign trades. In every case nothing moved."
},
"paid": {
"description": "What the operation spent, once known.",
"type": "object",
"properties": {
"asset": {
"type": "string",
"enum": [
"usdc",
"sol",
"token"
],
"description": "`usdc` is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, `sol` is SOL, `token` is the operation's own token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact amount, in the asset's smallest unit."
}
},
"required": [
"asset",
"amountRaw"
]
},
"received": {
"description": "What the operation received, once it landed or settled.",
"type": "object",
"properties": {
"asset": {
"type": "string",
"enum": [
"usdc",
"sol",
"token"
],
"description": "`usdc` is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, `sol` is SOL, `token` is the operation's own token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact amount, in the asset's smallest unit."
}
},
"required": [
"asset",
"amountRaw"
]
},
"solLeftLamports": {
"description": "SOL the operation left in the Solana account, in lamports: what a partial outcome left behind.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
"transactions": {
"maxItems": 6,
"type": "array",
"items": {
"type": "object",
"properties": {
"purpose": {
"type": "string",
"enum": [
"swap",
"sweep"
],
"description": "`swap` trades on Jupiter; `sweep` sends SOL back to the agent wallet through 1Click."
},
"signature": {
"type": "string",
"minLength": 64,
"maxLength": 88,
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
"description": "A Solana transaction signature, which is also its id: base58 text of 64 bytes."
},
"state": {
"type": "string",
"enum": [
"signed",
"dispatching",
"landed",
"failed",
"expired",
"uncertain"
],
"description": "`signed` and `dispatching` are not yet sent or not yet seen; `landed` succeeded on chain, `failed` landed with an error, `expired` provably never will; `uncertain` is not yet known: never sign it again."
},
"feeLamports": {
"description": "The network fee the transaction paid, in lamports, once it landed.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
}
},
"required": [
"purpose",
"signature",
"state"
],
"description": "One signed Solana transaction of this operation."
},
"description": "Every transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of `sales`."
}
},
"required": [
"conversationId",
"origin",
"title",
"side",
"request",
"status",
"failureReason",
"transactions"
],
"description": "The Solana trade or transfer the agent asked for, in a chat or in an automation's run."
}
},
"required": [
"id",
"createdAt",
"updatedAt",
"kind",
"solana"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it happened: the request, or the change. The feed is ordered by it."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it last changed, such as a settlement or a credit."
},
"kind": {
"type": "string",
"const": "solana_sell_many",
"description": "A sale of several Solana tokens under one approval, through the agent's own Solana account; read `solanaSellMany`."
},
"solanaSellMany": {
"type": "object",
"properties": {
"conversationId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The conversation in which the agent asked for it."
},
"origin": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "conversation",
"description": "An ordinary user-started conversation."
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "automation",
"description": "A conversation an automation created."
},
"automationId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The automation that created this conversation."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "The automation's name at the time this conversation started."
}
},
"required": [
"type",
"automationId",
"name"
]
}
],
"description": "Where it was asked for: an ordinary chat, or a conversation an automation started."
},
"title": {
"description": "The conversation's current title; null for an untitled conversation.",
"type": [
"string",
"null"
]
},
"automationRunId": {
"description": "The automation run that asked for it, when one did.",
"type": "string",
"minLength": 1,
"maxLength": 160
},
"approval": {
"description": "The request's own approval, when it needed one; absent when it ran under an automation's standing permission.",
"type": "object",
"properties": {
"approvalId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The single-use approval of this exact request."
},
"status": {
"type": "string",
"enum": [
"pending",
"approved",
"denied",
"expired"
],
"description": "The user's recorded decision, with an overdue pending approval shown as expired; an approval alone does not mean it ran."
},
"expiresAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When the approval stops covering a start."
}
},
"required": [
"approvalId",
"status",
"expiresAt"
]
},
"status": {
"type": "string",
"enum": [
"pending",
"processing",
"completed",
"partial",
"refunded",
"failed",
"denied",
"expired",
"uncertain"
],
"description": "`pending` until it starts, usually while it waits for the user's approval. `processing` while it runs, or while a Solana transaction it sent, or its transfer back to the agent wallet, has not finished. Then `completed` (the tokens bought, the proceeds of a sale or the SOL moved arrived), `partial` (part of it stands: a buy whose swap never happened after the account was funded, so the SOL is in the agent's Solana account, or a sale whose swap landed but whose transfer back did not finish, or that kept SOL, so the SOL is in the account or with 1Click until it refunds it; `solLeftLamports` says how much the account holds), `refunded` (1Click sent the funds back where they came from) or `failed` (nothing moved; `failureReason` says why). `denied` and `expired` mean the user denied it, or its approval ran out, before it started. `uncertain` means the result could not be confirmed yet: never ask the agent for a replacement, keep checking. `completed`, `partial`, `refunded`, `failed`, `denied` and `expired` are final."
},
"failureReason": {
"anyOf": [
{
"type": "string",
"enum": [
"insufficient_funds",
"quote_rejected",
"quote_expired",
"unavailable",
"not_authorized",
"stopped",
"not_executed",
"signing_disabled"
]
},
{
"type": "null"
}
],
"description": "When `status` is `failed`, why; otherwise `null`. `insufficient_funds`: the agent wallet or the Solana account did not hold enough, the account's reserve included. `quote_rejected`: the price or the route failed its checks, the loss limit would have been crossed, or a buy was under the minimum. `unavailable`: a temporary problem stopped it before anything was sent. `not_authorized`: the approval no longer covered it, or the token is one the agent does not trade. `stopped`: an operator paused trading or turned the wallet off. `not_executed`: nothing it sent landed before it expired. `signing_disabled`: this deployment does not sign trades. In every case nothing moved."
},
"received": {
"description": "What the operation received, once it landed or settled.",
"type": "object",
"properties": {
"asset": {
"type": "string",
"enum": [
"usdc",
"sol",
"token"
],
"description": "`usdc` is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, `sol` is SOL, `token` is the operation's own token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact amount, in the asset's smallest unit."
}
},
"required": [
"asset",
"amountRaw"
]
},
"solLeftLamports": {
"description": "SOL the operation left in the Solana account, in lamports: what a partial outcome left behind.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
"transactions": {
"maxItems": 6,
"type": "array",
"items": {
"type": "object",
"properties": {
"purpose": {
"type": "string",
"enum": [
"swap",
"sweep"
],
"description": "`swap` trades on Jupiter; `sweep` sends SOL back to the agent wallet through 1Click."
},
"signature": {
"type": "string",
"minLength": 64,
"maxLength": 88,
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
"description": "A Solana transaction signature, which is also its id: base58 text of 64 bytes."
},
"state": {
"type": "string",
"enum": [
"signed",
"dispatching",
"landed",
"failed",
"expired",
"uncertain"
],
"description": "`signed` and `dispatching` are not yet sent or not yet seen; `landed` succeeded on chain, `failed` landed with an error, `expired` provably never will; `uncertain` is not yet known: never sign it again."
},
"feeLamports": {
"description": "The network fee the transaction paid, in lamports, once it landed.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
}
},
"required": [
"purpose",
"signature",
"state"
],
"description": "One signed Solana transaction of this operation."
},
"description": "Every transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of `sales`."
},
"request": {
"description": "The sale as the user approved it: each coin with its exact amount and its own loss bound, in the order they sold, and what they return.",
"$ref": "#/components/schemas/SolanaSellManyInput"
},
"sales": {
"description": "Each coin in the order it ran and what became of it, once the sale's outcome is recorded; `received` is what the whole sale returned.",
"maxItems": 6,
"type": "array",
"items": {
"type": "object",
"properties": {
"token": {
"description": "The coin this sale sold, or was to sell.",
"$ref": "#/components/schemas/SolanaToken"
},
"state": {
"type": "string",
"enum": [
"sold",
"not_sold",
"uncertain"
],
"description": "`sold` once its swap landed; `not_sold` when it ended without selling anything (refused before any signature, every attempt failed or expired, or the sale stopped before it); `uncertain` while an attempt of it may still land: never sign it again."
},
"paid": {
"description": "What this sale sold, once its swap landed: the token's exact amount.",
"type": "object",
"properties": {
"asset": {
"type": "string",
"enum": [
"usdc",
"sol",
"token"
],
"description": "`usdc` is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, `sol` is SOL, `token` is the operation's own token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact amount, in the asset's smallest unit."
}
},
"required": [
"asset",
"amountRaw"
]
},
"solGainedLamports": {
"description": "The SOL this sale's landed swap added to the Solana account, in lamports, before the one transfer back.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
"transactions": {
"description": "This coin's swap attempts the sale signed, in the order it signed them; absent while none was signed.",
"maxItems": 3,
"type": "array",
"items": {
"type": "object",
"properties": {
"purpose": {
"type": "string",
"enum": [
"swap",
"sweep"
],
"description": "`swap` trades on Jupiter; `sweep` sends SOL back to the agent wallet through 1Click."
},
"signature": {
"type": "string",
"minLength": 64,
"maxLength": 88,
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
"description": "A Solana transaction signature, which is also its id: base58 text of 64 bytes."
},
"state": {
"type": "string",
"enum": [
"signed",
"dispatching",
"landed",
"failed",
"expired",
"uncertain"
],
"description": "`signed` and `dispatching` are not yet sent or not yet seen; `landed` succeeded on chain, `failed` landed with an error, `expired` provably never will; `uncertain` is not yet known: never sign it again."
},
"feeLamports": {
"description": "The network fee the transaction paid, in lamports, once it landed.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
}
},
"required": [
"purpose",
"signature",
"state"
],
"description": "One signed Solana transaction of this operation."
}
}
},
"required": [
"token",
"state"
],
"description": "One coin of a multi-coin sale, and what became of it."
}
}
},
"required": [
"conversationId",
"origin",
"title",
"status",
"failureReason",
"transactions",
"request"
],
"description": "The sale the agent asked for, in a chat or in an automation's run: each coin as approved, how the sale stands, and what became of each coin."
}
},
"required": [
"id",
"createdAt",
"updatedAt",
"kind",
"solanaSellMany"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The item's id: the trade, swap, withdrawal, deposit, deposit address, Solana operation or Solana trade id, or the automation change's own id."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it happened: the request, or the change. The feed is ordered by it."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it last changed, such as a settlement or a credit."
},
"kind": {
"type": "string",
"const": "solana_trade",
"description": "A buy or a sale of a Solana token the user placed themselves on its page, with Place a Solana trade; read `solanaTrade`."
},
"solanaTrade": {
"description": "The trade, as Get a Solana trade returns it.",
"$ref": "#/components/schemas/SolanaTrade"
}
},
"required": [
"id",
"createdAt",
"updatedAt",
"kind",
"solanaTrade"
]
}
],
"description": "One thing that happened in the user's wallet or automations. `kind` names the object it carries, which is the same object that resource's own route returns."
},
"Swap": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The swap's id."
},
"terms": {
"description": "The terms the user signed.",
"$ref": "#/components/schemas/SwapTerms"
},
"status": {
"type": "string",
"enum": [
"pending",
"processing",
"completed",
"refunded",
"failed",
"denied",
"expired",
"uncertain"
],
"description": "`pending` until it starts, `processing` while it runs, then `completed` (the bought asset is in the agent wallet), `refunded` (the provider sent the sold asset back to the agent wallet) or `failed` (nothing was swapped; `failureReason` says why). `denied` and `expired` mean the request was refused or its signature ran out before it started. `uncertain` means the result could not be confirmed yet: never send a replacement, keep checking. `completed`, `refunded`, `failed`, `denied` and `expired` are final."
},
"failureReason": {
"anyOf": [
{
"type": "string",
"enum": [
"insufficient_funds",
"quote_rejected",
"quote_expired",
"unavailable",
"not_authorized",
"stopped",
"not_executed",
"signing_disabled"
]
},
{
"type": "null"
}
],
"description": "When `status` is `failed`, why; otherwise `null`. `insufficient_funds`: the wallet did not hold the amount when the swap started. `quote_rejected`: the price at execution failed its checks, or would have received less than `terms.minimumReceivedRaw` or lost more than the loss limit. `quote_expired`: the quote ran out before the provider took the swap. `unavailable`: a temporary problem stopped it before anything was sent. `not_authorized`: the signature no longer covered it when it started. `stopped`: an operator paused trading or turned the wallet off. `not_executed`: the provider did not carry it out. `signing_disabled`: this deployment does not sign trades. In every case nothing was swapped; get a new quote to try again."
},
"result": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "in_progress"
},
"operationId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The persisted financial operation still owned by its durable executor."
}
},
"required": [
"status",
"operationId"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "no_trade",
"description": "The request resolved without attempting a financial action."
}
},
"required": [
"status"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "refused",
"description": "The financial command refused execution under its authority or safety checks."
},
"scope": {
"type": "string",
"enum": [
"authority",
"request",
"transient",
"insufficient_funds",
"request_frozen",
"verification",
"stale_evidence",
"account_busy",
"conflict",
"paused",
"held",
"withdrawn",
"spend_cap_reached",
"no_signing_authority",
"not_available_in_region",
"no_account",
"withdrawal_too_small",
"withdrawal_reserve_required",
"nothing_freed",
"order_invalid",
"route_unavailable",
"buy_too_small",
"reserve_required",
"loss_bound_exceeded",
"token_blocked"
],
"description": "The bounded category of the refusal; no provider text, account details or amounts are exposed here. `buy_too_small` (a Solana buy below its minimum), `reserve_required` (it would spend the SOL the Solana account keeps for fees) and `loss_bound_exceeded` (no route returned at least the approved minimum) can be corrected by asking the user for other terms; `token_blocked` means the token's own rules, or its missing price, keep it from trading through fin; `route_unavailable` means the requested financial route was not available; `nothing_freed` means a cash-out's withdrawal found nothing its exit freed to bring home."
}
},
"required": [
"status",
"scope"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"settled",
"pending",
"partial",
"refunded",
"not_executed"
],
"description": "The financial outcome: settled, unresolved, mixed or incomplete, refunded, or conclusively not executed. An outcome can still be waiting for receipts; the trade's or withdrawal's `status` says whether it is final."
},
"reason": {
"description": "Present when execution was restricted to a mode that cannot sign or move funds.",
"type": "string",
"const": "signing_disabled"
},
"stopped": {
"description": "Present only on a partial outcome whose run refused a later leg before it was claimed: the planned action the run stopped on and the bounded reason it never started.",
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "The leg's zero-based position in the frozen plan."
},
"reason": {
"type": "string",
"enum": [
"lineage_unavailable",
"consent_invalid",
"allowance_exhausted",
"spend_cap_reached",
"position_unknown",
"exit_not_reached",
"selection_mismatch",
"action_mismatch",
"request_frozen",
"insufficient_funds",
"evidence_unavailable",
"inventory_stale",
"plan_conflict",
"leg_order",
"quote_invalid",
"payload_invalid",
"account_busy",
"expired",
"credentials_unavailable",
"execution_paused",
"automation_held",
"authority_withdrawn",
"perps_disabled",
"prediction_disabled",
"not_available_in_region",
"no_account",
"withdrawal_too_small",
"withdrawal_reserve_required",
"nothing_freed",
"order_invalid",
"route_unsupported",
"route_changed",
"solana_disabled",
"token_unpriced",
"token_mismatch",
"token_freezable",
"token_transfer_hook",
"token_permanent_delegate",
"token_non_transferable",
"token_default_frozen",
"token_transfer_fee",
"token_pausable",
"token_unknown_extension",
"token_not_sellable",
"route_invalid",
"loss_bound_exceeded",
"reserve_required",
"buy_too_small",
"swap_already_landed",
"solana_unavailable"
],
"description": "The bounded category the stopped leg was refused with; no provider text, account details or amounts."
}
},
"required": [
"index",
"reason"
]
},
"blocked": {
"description": "Unclaimed actions blocked before dispatch, with unique indices disjoint from all actual legs.",
"minItems": 1,
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "The leg's zero-based position in the frozen plan."
},
"reason": {
"type": "string",
"enum": [
"lineage_unavailable",
"consent_invalid",
"allowance_exhausted",
"spend_cap_reached",
"position_unknown",
"exit_not_reached",
"selection_mismatch",
"action_mismatch",
"request_frozen",
"insufficient_funds",
"evidence_unavailable",
"inventory_stale",
"plan_conflict",
"leg_order",
"quote_invalid",
"payload_invalid",
"account_busy",
"expired",
"credentials_unavailable",
"execution_paused",
"automation_held",
"authority_withdrawn",
"perps_disabled",
"prediction_disabled",
"not_available_in_region",
"no_account",
"withdrawal_too_small",
"withdrawal_reserve_required",
"nothing_freed",
"order_invalid",
"route_unsupported",
"route_changed",
"solana_disabled",
"token_unpriced",
"token_mismatch",
"token_freezable",
"token_transfer_hook",
"token_permanent_delegate",
"token_non_transferable",
"token_default_frozen",
"token_transfer_fee",
"token_pausable",
"token_unknown_extension",
"token_not_sellable",
"route_invalid",
"loss_bound_exceeded",
"reserve_required",
"buy_too_small",
"swap_already_landed",
"solana_unavailable"
],
"description": "The bounded category the stopped leg was refused with; no provider text, account details or amounts."
}
},
"required": [
"index",
"reason"
]
}
},
"legs": {
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "The leg's zero-based position in the frozen plan."
},
"state": {
"type": "string",
"enum": [
"claimed",
"signed",
"uncertain",
"settled",
"refunded",
"not_executed"
],
"description": "The recorded execution or settlement state of this actual leg."
}
},
"required": [
"index",
"state"
]
},
"description": "The actual execution legs represented by this outcome; unattempted planned legs have no invented receipt."
},
"solana": {
"description": "Present only on a Solana operation's outcome: what it paid, received and signed on Solana. `legs` are its 1Click legs.",
"$ref": "#/components/schemas/SolanaOperationDetail"
}
},
"required": [
"status",
"legs"
]
}
]
},
{
"type": "null"
}
],
"description": "The recorded outcome behind `status`, as evidence; `null` until there is one. Read `status` to decide what to do."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When the swap was requested."
},
"startedAt": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "When the swap started; `null` before then."
},
"reportedAt": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "When its outcome was recorded; `null` before then."
},
"receipts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The provider swap's id."
},
"index": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Zero-based position in the swap's plan."
},
"state": {
"type": "string",
"enum": [
"claimed",
"signed",
"uncertain",
"settled",
"refunded",
"not_executed"
],
"description": "One leg's progress: `claimed` (its allowance is reserved, not yet signed), `signed` (signed, not yet submitted), `uncertain` (submitted; the provider's outcome is not yet confirmed), then terminal — `settled`, `refunded`, or `not_executed`."
},
"assetId": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "The asset it delivered: the bought asset, or the sold one when it was refunded."
},
"amountRaw": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
{
"type": "null"
}
],
"description": "The amount actually received (or refunded), in this asset's smallest unit; `null` until a receipt confirms it."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "The number of decimals of this asset's smallest unit."
},
"intentHashes": {
"maxItems": 16,
"type": "array",
"items": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash."
},
"description": "The NEAR Intents ids of the intents that carried out this step, as 1Click reported them when it settled. Quote one to support to trace the step. They are on the confidential NEAR Intents ledger, which no public explorer shows. Empty until the step settles, and for a step that was refunded or did not run."
},
"refundReason": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Z][A-Z0-9_]{0,63}$"
},
{
"type": "null"
}
],
"description": "When the step was refunded, 1Click's own code for why, such as `NO_LIQUIDITY` or `AMOUNT_LESS_THAN_MIN_AMOUNT_OUT`; `null` when it gave none, for any other step, and for a step refunded before Fin kept this. Show it, don't branch on it: 1Click may add codes."
},
"observedAt": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "When this swap's outcome was observed."
}
},
"required": [
"id",
"index",
"state",
"assetId",
"amountRaw",
"decimals",
"intentHashes",
"refundReason",
"observedAt"
]
},
"description": "The swap the provider made and what it delivered, as evidence."
},
"value": {
"anyOf": [
{
"$ref": "#/components/schemas/ValueAtTime"
},
{
"type": "null"
}
],
"description": "What the swap sold (`terms.amountRaw`) was worth when it ran, at the trusted price Fin checked its plan against. `null` before it has a plan, and when no price was recorded."
}
},
"required": [
"id",
"terms",
"status",
"failureReason",
"result",
"createdAt",
"startedAt",
"reportedAt",
"receipts",
"value"
],
"examples": [
{
"id": "0d7a9d4e-1f53-4f3b-9d25-1c4e5f8b7a61",
"terms": {
"sellAssetId": "asset_1111111111111111111111111111111111111111111111111111111111111111",
"amountRaw": "1000000",
"buyAssetId": "asset_3333333333333333333333333333333333333333333333333333333333333333",
"minimumReceivedRaw": "331250000000000000000000",
"maxValueLossBps": 250
},
"status": "pending",
"failureReason": null,
"result": null,
"createdAt": "2026-09-22T18:00:00.000Z",
"startedAt": null,
"reportedAt": null,
"receipts": [],
"value": null
}
],
"description": "A swap in the agent wallet: its terms, its `status`, and the evidence behind it."
},
"SwapTerms": {
"type": "object",
"properties": {
"sellAssetId": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "The asset to sell from the agent wallet: an `assetId` from Get balances."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact amount to sell, in the sold asset's smallest unit."
},
"buyAssetId": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "The asset to buy: an `id` from List supported assets. It stays in the agent wallet."
},
"maxValueLossBps": {
"type": "integer",
"minimum": 1,
"maximum": 300,
"description": "The most the swap may lose in total, fees and price movement included, in basis points (100 = 1%), from 1 to 300."
},
"minimumReceivedRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The least the agent wallet receives of the bought asset, in its smallest unit."
}
},
"required": [
"sellAssetId",
"amountRaw",
"buyAssetId",
"maxValueLossBps",
"minimumReceivedRaw"
],
"description": "The exact terms of a swap in the agent wallet: what it sells, what it buys, and the limits it must stay within."
},
"SolanaOperationDetail": {
"type": "object",
"properties": {
"side": {
"type": "string",
"enum": [
"buy",
"sell",
"fund",
"withdraw"
],
"description": "Which Solana operation this is: a buy, a sell, a fund or a withdrawal."
},
"token": {
"description": "The token bought or sold; absent for a fund or a withdrawal.",
"$ref": "#/components/schemas/SolanaToken"
},
"account": {
"type": "string",
"minLength": 32,
"maxLength": 44,
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
"description": "The agent's own Solana account the operation used."
},
"transactions": {
"maxItems": 6,
"type": "array",
"items": {
"type": "object",
"properties": {
"purpose": {
"type": "string",
"enum": [
"swap",
"sweep"
],
"description": "`swap` trades on Jupiter; `sweep` sends SOL back to the agent wallet through 1Click."
},
"signature": {
"type": "string",
"minLength": 64,
"maxLength": 88,
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
"description": "A Solana transaction signature, which is also its id: base58 text of 64 bytes."
},
"state": {
"type": "string",
"enum": [
"signed",
"dispatching",
"landed",
"failed",
"expired",
"uncertain"
],
"description": "`signed` and `dispatching` are not yet sent or not yet seen; `landed` succeeded on chain, `failed` landed with an error, `expired` provably never will; `uncertain` is not yet known: never sign it again."
},
"feeLamports": {
"description": "The network fee the transaction paid, in lamports, once it landed.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
}
},
"required": [
"purpose",
"signature",
"state"
],
"description": "One signed Solana transaction of this operation."
},
"description": "Every transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of `sales`."
},
"paid": {
"description": "What the operation spent, once known.",
"type": "object",
"properties": {
"asset": {
"type": "string",
"enum": [
"usdc",
"sol",
"token"
],
"description": "`usdc` is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, `sol` is SOL, `token` is the operation's own token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact amount, in the asset's smallest unit."
}
},
"required": [
"asset",
"amountRaw"
]
},
"received": {
"description": "What the operation received, once it landed or settled.",
"type": "object",
"properties": {
"asset": {
"type": "string",
"enum": [
"usdc",
"sol",
"token"
],
"description": "`usdc` is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, `sol` is SOL, `token` is the operation's own token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact amount, in the asset's smallest unit."
}
},
"required": [
"asset",
"amountRaw"
]
},
"solLeftLamports": {
"description": "SOL the operation left in the Solana account, in lamports: what a partial outcome left behind.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
"sales": {
"description": "Present only on a multi-coin sale's outcome: each sale in the order it ran. `received` is what the whole sale returned.",
"maxItems": 6,
"type": "array",
"items": {
"type": "object",
"properties": {
"token": {
"description": "The coin this sale sold, or was to sell.",
"$ref": "#/components/schemas/SolanaToken"
},
"state": {
"type": "string",
"enum": [
"sold",
"not_sold",
"uncertain"
],
"description": "`sold` once its swap landed; `not_sold` when it ended without selling anything (refused before any signature, every attempt failed or expired, or the sale stopped before it); `uncertain` while an attempt of it may still land: never sign it again."
},
"paid": {
"description": "What this sale sold, once its swap landed: the token's exact amount.",
"type": "object",
"properties": {
"asset": {
"type": "string",
"enum": [
"usdc",
"sol",
"token"
],
"description": "`usdc` is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, `sol` is SOL, `token` is the operation's own token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact amount, in the asset's smallest unit."
}
},
"required": [
"asset",
"amountRaw"
]
},
"solGainedLamports": {
"description": "The SOL this sale's landed swap added to the Solana account, in lamports, before the one transfer back.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
"transactions": {
"description": "This coin's swap attempts the sale signed, in the order it signed them; absent while none was signed.",
"maxItems": 3,
"type": "array",
"items": {
"type": "object",
"properties": {
"purpose": {
"type": "string",
"enum": [
"swap",
"sweep"
],
"description": "`swap` trades on Jupiter; `sweep` sends SOL back to the agent wallet through 1Click."
},
"signature": {
"type": "string",
"minLength": 64,
"maxLength": 88,
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
"description": "A Solana transaction signature, which is also its id: base58 text of 64 bytes."
},
"state": {
"type": "string",
"enum": [
"signed",
"dispatching",
"landed",
"failed",
"expired",
"uncertain"
],
"description": "`signed` and `dispatching` are not yet sent or not yet seen; `landed` succeeded on chain, `failed` landed with an error, `expired` provably never will; `uncertain` is not yet known: never sign it again."
},
"feeLamports": {
"description": "The network fee the transaction paid, in lamports, once it landed.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
}
},
"required": [
"purpose",
"signature",
"state"
],
"description": "One signed Solana transaction of this operation."
}
}
},
"required": [
"token",
"state"
],
"description": "One coin of a multi-coin sale, and what became of it."
}
}
},
"required": [
"side",
"account",
"transactions"
],
"description": "What one Solana operation did on chain."
},
"SolanaToken": {
"type": "object",
"properties": {
"mint": {
"type": "string",
"minLength": 32,
"maxLength": 44,
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
"description": "The token's mint address, exactly as solana_token_search or solana_token returned it. Never a ticker."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 18,
"description": "The mint's decimals, exactly as returned with the mint."
},
"tokenProgram": {
"type": "string",
"enum": [
"spl_token",
"token_2022"
],
"description": "The program that owns the mint, exactly as returned with the mint: `spl_token` or `token_2022`."
}
},
"required": [
"mint",
"decimals",
"tokenProgram"
],
"description": "One Solana token, pinned by its mint, its decimals and its token program."
},
"ValueAtTime": {
"type": "object",
"properties": {
"usd": {
"type": "string",
"pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$",
"description": "The value in US dollars as plain decimal text, rounded down to the cent: the amount times `priceUsd`."
},
"priceUsd": {
"type": "string",
"maxLength": 80,
"pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$",
"description": "The USD price of one whole token it was valued at, as plain decimal text."
},
"pricedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When that price was observed."
}
},
"required": [
"usd",
"priceUsd",
"pricedAt"
],
"description": "What an amount was worth in US dollars when it moved, and the price it was valued at. Display only: derived on read, never an input to a transfer or a limit."
},
"Withdrawal": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The withdrawal's id."
},
"terms": {
"anyOf": [
{
"$ref": "#/components/schemas/WithdrawalTerms"
},
{
"type": "null"
}
],
"description": "The signed terms; `null` only for withdrawals made before terms were recorded."
},
"debit": {
"type": "object",
"properties": {
"assetId": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "Opaque stable Fin asset identity returned by balances and the transfer catalog."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The amount taken from the agent wallet, in the asset's smallest unit."
}
},
"required": [
"assetId",
"amountRaw"
],
"description": "What leaves the agent wallet: the asset and the exact amount."
},
"status": {
"type": "string",
"enum": [
"pending",
"processing",
"completed",
"refunded",
"failed",
"denied",
"expired",
"uncertain"
],
"description": "`pending` until it starts, `processing` while it is sent, then `completed`, `refunded` (the funds came back to the agent wallet) or `failed` (nothing left the wallet; `failureReason` says why). `denied` and `expired` mean the request was refused or its signature ran out before it started. `uncertain` means the result could not be confirmed yet: never send a replacement, keep checking. `completed`, `refunded`, `failed`, `denied` and `expired` are final."
},
"failureReason": {
"anyOf": [
{
"type": "string",
"enum": [
"insufficient_funds",
"quote_rejected",
"quote_expired",
"unavailable",
"not_authorized",
"stopped",
"not_executed",
"signing_disabled"
]
},
{
"type": "null"
}
],
"description": "When `status` is `failed`, why; otherwise `null`. `insufficient_funds`: the wallet did not hold the amount when the withdrawal started. `quote_rejected`: the price at execution failed its checks or fell outside the signed limits. `quote_expired`: the quote ran out before the provider took the transfer. `unavailable`: a temporary problem stopped it before anything was sent. `not_authorized`: the signature no longer covered it when it started, or nothing could sign it then (the automation firing it ran for was not confirmed in time, or the owner's own wallet could not be resolved). `stopped`: an operator paused withdrawals or turned the wallet off. `not_executed`: the provider did not carry it out. `signing_disabled`: this deployment does not sign transfers. In every case nothing left the wallet; get a new quote to try again."
},
"result": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "in_progress"
},
"operationId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The persisted financial operation still owned by its durable executor."
}
},
"required": [
"status",
"operationId"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "no_trade",
"description": "The request resolved without attempting a financial action."
}
},
"required": [
"status"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "refused",
"description": "The financial command refused execution under its authority or safety checks."
},
"scope": {
"type": "string",
"enum": [
"authority",
"request",
"transient",
"insufficient_funds",
"request_frozen",
"verification",
"stale_evidence",
"account_busy",
"conflict",
"paused",
"held",
"withdrawn",
"spend_cap_reached",
"no_signing_authority",
"not_available_in_region",
"no_account",
"withdrawal_too_small",
"withdrawal_reserve_required",
"nothing_freed",
"order_invalid",
"route_unavailable",
"buy_too_small",
"reserve_required",
"loss_bound_exceeded",
"token_blocked"
],
"description": "The bounded category of the refusal; no provider text, account details or amounts are exposed here. `buy_too_small` (a Solana buy below its minimum), `reserve_required` (it would spend the SOL the Solana account keeps for fees) and `loss_bound_exceeded` (no route returned at least the approved minimum) can be corrected by asking the user for other terms; `token_blocked` means the token's own rules, or its missing price, keep it from trading through fin; `route_unavailable` means the requested financial route was not available; `nothing_freed` means a cash-out's withdrawal found nothing its exit freed to bring home."
}
},
"required": [
"status",
"scope"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"settled",
"pending",
"partial",
"refunded",
"not_executed"
],
"description": "The financial outcome: settled, unresolved, mixed or incomplete, refunded, or conclusively not executed. An outcome can still be waiting for receipts; the trade's or withdrawal's `status` says whether it is final."
},
"reason": {
"description": "Present when execution was restricted to a mode that cannot sign or move funds.",
"type": "string",
"const": "signing_disabled"
},
"stopped": {
"description": "Present only on a partial outcome whose run refused a later leg before it was claimed: the planned action the run stopped on and the bounded reason it never started.",
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "The leg's zero-based position in the frozen plan."
},
"reason": {
"type": "string",
"enum": [
"lineage_unavailable",
"consent_invalid",
"allowance_exhausted",
"spend_cap_reached",
"position_unknown",
"exit_not_reached",
"selection_mismatch",
"action_mismatch",
"request_frozen",
"insufficient_funds",
"evidence_unavailable",
"inventory_stale",
"plan_conflict",
"leg_order",
"quote_invalid",
"payload_invalid",
"account_busy",
"expired",
"credentials_unavailable",
"execution_paused",
"automation_held",
"authority_withdrawn",
"perps_disabled",
"prediction_disabled",
"not_available_in_region",
"no_account",
"withdrawal_too_small",
"withdrawal_reserve_required",
"nothing_freed",
"order_invalid",
"route_unsupported",
"route_changed",
"solana_disabled",
"token_unpriced",
"token_mismatch",
"token_freezable",
"token_transfer_hook",
"token_permanent_delegate",
"token_non_transferable",
"token_default_frozen",
"token_transfer_fee",
"token_pausable",
"token_unknown_extension",
"token_not_sellable",
"route_invalid",
"loss_bound_exceeded",
"reserve_required",
"buy_too_small",
"swap_already_landed",
"solana_unavailable"
],
"description": "The bounded category the stopped leg was refused with; no provider text, account details or amounts."
}
},
"required": [
"index",
"reason"
]
},
"blocked": {
"description": "Unclaimed actions blocked before dispatch, with unique indices disjoint from all actual legs.",
"minItems": 1,
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "The leg's zero-based position in the frozen plan."
},
"reason": {
"type": "string",
"enum": [
"lineage_unavailable",
"consent_invalid",
"allowance_exhausted",
"spend_cap_reached",
"position_unknown",
"exit_not_reached",
"selection_mismatch",
"action_mismatch",
"request_frozen",
"insufficient_funds",
"evidence_unavailable",
"inventory_stale",
"plan_conflict",
"leg_order",
"quote_invalid",
"payload_invalid",
"account_busy",
"expired",
"credentials_unavailable",
"execution_paused",
"automation_held",
"authority_withdrawn",
"perps_disabled",
"prediction_disabled",
"not_available_in_region",
"no_account",
"withdrawal_too_small",
"withdrawal_reserve_required",
"nothing_freed",
"order_invalid",
"route_unsupported",
"route_changed",
"solana_disabled",
"token_unpriced",
"token_mismatch",
"token_freezable",
"token_transfer_hook",
"token_permanent_delegate",
"token_non_transferable",
"token_default_frozen",
"token_transfer_fee",
"token_pausable",
"token_unknown_extension",
"token_not_sellable",
"route_invalid",
"loss_bound_exceeded",
"reserve_required",
"buy_too_small",
"swap_already_landed",
"solana_unavailable"
],
"description": "The bounded category the stopped leg was refused with; no provider text, account details or amounts."
}
},
"required": [
"index",
"reason"
]
}
},
"legs": {
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 15,
"description": "The leg's zero-based position in the frozen plan."
},
"state": {
"type": "string",
"enum": [
"claimed",
"signed",
"uncertain",
"settled",
"refunded",
"not_executed"
],
"description": "The recorded execution or settlement state of this actual leg."
}
},
"required": [
"index",
"state"
]
},
"description": "The actual execution legs represented by this outcome; unattempted planned legs have no invented receipt."
},
"solana": {
"description": "Present only on a Solana operation's outcome: what it paid, received and signed on Solana. `legs` are its 1Click legs.",
"$ref": "#/components/schemas/SolanaOperationDetail"
}
},
"required": [
"status",
"legs"
]
}
]
},
{
"type": "null"
}
],
"description": "The recorded outcome behind `status`, as evidence; `null` until there is one. Read `status` to decide what to do."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When the withdrawal was requested."
},
"startedAt": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "When the withdrawal started; `null` before then."
},
"reportedAt": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "When its outcome was recorded; `null` before then."
},
"receipts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The transfer's id."
},
"index": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Zero-based position in the withdrawal plan."
},
"state": {
"type": "string",
"enum": [
"claimed",
"signed",
"uncertain",
"settled",
"refunded",
"not_executed"
],
"description": "One leg's progress: `claimed` (its allowance is reserved, not yet signed), `signed` (signed, not yet submitted), `uncertain` (submitted; the provider's outcome is not yet confirmed), then terminal — `settled`, `refunded`, or `not_executed`."
},
"assetId": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "Opaque stable Fin asset identity returned by balances and the transfer catalog."
},
"amountRaw": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
{
"type": "null"
}
],
"description": "The amount actually received (or refunded), in this asset's smallest unit; `null` until a receipt confirms it."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "The number of decimals of this asset's smallest unit."
},
"transferPayout": {
"anyOf": [
{
"type": "object",
"properties": {
"rail": {
"type": "string",
"enum": [
"chain",
"intents"
],
"description": "A native blockchain transfer or a signed transfer within an Intents ledger."
},
"network": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,63}$",
"description": "Exact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain."
},
"address": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval."
},
"transactionHashes": {
"minItems": 1,
"maxItems": 16,
"type": "array",
"items": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash."
},
"description": "Destination chain transactions, or the funding intent identifiers binding the provider-confirmed ledger payout."
},
"quotedFeeRaw": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
{
"type": "null"
}
],
"description": "Withdrawal fee in destination-asset units from the bound signed quote, or null when not disclosed. Actual received amount is recorded separately."
}
},
"required": [
"rail",
"network",
"address",
"transactionHashes",
"quotedFeeRaw"
]
},
{
"type": "null"
}
],
"description": "Where the payout landed and its transaction ids; `null` before settlement or for older withdrawals."
},
"refundReason": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Z][A-Z0-9_]{0,63}$"
},
{
"type": "null"
}
],
"description": "When the step was refunded, 1Click's own code for why, such as `NO_LIQUIDITY` or `AMOUNT_LESS_THAN_MIN_AMOUNT_OUT`; `null` when it gave none, for any other step, and for a step refunded before Fin kept this. Show it, don't branch on it: 1Click may add codes."
},
"observedAt": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "When this transfer's outcome was observed."
}
},
"required": [
"id",
"index",
"state",
"assetId",
"amountRaw",
"decimals",
"transferPayout",
"refundReason",
"observedAt"
]
},
"description": "The transfer the withdrawal made and what it received, as evidence."
},
"value": {
"anyOf": [
{
"$ref": "#/components/schemas/ValueAtTime"
},
{
"type": "null"
}
],
"description": "What the debit (`debit.amountRaw`) was worth when the withdrawal ran, at the trusted price Fin checked its plan against. `null` before it has a plan, and when no price was recorded."
}
},
"required": [
"id",
"terms",
"debit",
"status",
"failureReason",
"result",
"createdAt",
"startedAt",
"reportedAt",
"receipts",
"value"
],
"examples": [
{
"id": "6e15459a-6fb6-4320-85d8-a320d9e65737",
"terms": {
"assetId": "asset_1111111111111111111111111111111111111111111111111111111111111111",
"amountRaw": "1000000",
"destination": {
"rail": "chain",
"network": "eth",
"assetId": "asset_2222222222222222222222222222222222222222222222222222222222222222",
"address": "0x2222222222222222222222222222222222222222"
},
"minimumReceivedRaw": "975000",
"maxFeeRaw": null,
"maxValueLossBps": 250
},
"debit": {
"assetId": "asset_1111111111111111111111111111111111111111111111111111111111111111",
"amountRaw": "1000000"
},
"status": "pending",
"failureReason": null,
"result": null,
"createdAt": "2026-09-22T18:00:00.000Z",
"startedAt": null,
"reportedAt": null,
"receipts": [],
"value": null
}
],
"description": "A withdrawal from the agent wallet: its terms, its `status`, and the evidence behind it."
},
"WithdrawalTerms": {
"type": "object",
"properties": {
"assetId": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "The asset to withdraw from the agent wallet: an `assetId` from Get balances."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The amount to withdraw, in the asset's smallest unit."
},
"destination": {
"type": "object",
"properties": {
"rail": {
"type": "string",
"enum": [
"chain",
"intents"
],
"description": "A native blockchain transfer or a signed transfer within an Intents ledger."
},
"network": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,63}$",
"description": "Exact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain."
},
"assetId": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "The asset the recipient receives: an `id` from List supported assets."
},
"address": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval."
}
},
"required": [
"rail",
"network",
"assetId",
"address"
],
"description": "Where the funds go: the network, the asset received and the recipient's address."
},
"minimumReceivedRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The least the recipient receives, in the received asset's smallest unit."
},
"maxFeeRaw": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
{
"type": "null"
}
],
"description": "The most the withdrawal fee can be, in the received asset's smallest unit. `null` when the provider does not state this fee separately, which does not mean zero; the minimum received and the loss limit still apply."
},
"maxValueLossBps": {
"type": "integer",
"minimum": 1,
"maximum": 300,
"description": "The most the transfer may lose in total, fees and price movement included, in basis points (100 = 1%), from 1 to 300."
}
},
"required": [
"assetId",
"amountRaw",
"destination",
"minimumReceivedRaw",
"maxFeeRaw",
"maxValueLossBps"
],
"description": "The exact terms of a withdrawal: what leaves the agent wallet, where it goes, and the limits it must stay within."
},
"DepositTerms": {
"type": "object",
"properties": {
"rail": {
"type": "string",
"enum": [
"chain",
"intents"
],
"description": "A native blockchain transfer or a signed transfer within an Intents ledger."
},
"network": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,63}$",
"description": "Exact network identifier from wallet capabilities; near-intents and near-intents-confidential are ledgers, not the NEAR blockchain."
},
"assetId": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "The asset to deposit: an `id` from List supported assets."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact amount the user sends, in the asset's smallest unit."
},
"refundAddress": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Where the funds go back to if the deposit cannot be credited: an address the user controls on the network they send from."
},
"minimumCreditRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The least the agent wallet must be credited, in the same asset's smallest unit."
},
"maxValueLossBps": {
"type": "integer",
"minimum": 1,
"maximum": 300,
"description": "The most the transfer may lose in total, fees and price movement included, in basis points (100 = 1%), from 1 to 300."
}
},
"required": [
"rail",
"network",
"assetId",
"amountRaw",
"refundAddress",
"minimumCreditRaw",
"maxValueLossBps"
],
"description": "The exact terms of a deposit: what the user sends, from which network, and the limits the credit must stay within."
},
"DepositAddress": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The deposit address's id."
},
"requestKey": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The `Idempotency-Key` it was created with."
},
"network": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,63}$",
"description": "The network the user sends on."
},
"assetId": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "The asset the user sends: an `id` from List supported assets."
},
"state": {
"type": "string",
"enum": [
"preparing",
"awaiting_deposit",
"incomplete",
"processing",
"credited",
"refunded",
"unknown",
"expired",
"failed"
],
"description": "Where the deposit is: `preparing` (getting the address), `awaiting_deposit` (waiting for the user's transfer), `processing`, then `credited` or `refunded`. `incomplete` means less than `minimumDepositRaw` arrived: it is refunded to the agent wallet, so tell the user not to top it up. `failed` means no address was issued. `expired` means the address stopped taking deposits with no transfer seen; a late transfer still moves it on. `unknown` means Fin saw something it could not confirm; it never proves that no money moved, so keep checking."
},
"instruction": {
"anyOf": [
{
"type": "object",
"properties": {
"asset": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^asset_[a-f0-9]{64}$",
"description": "Opaque stable Fin asset identity returned by balances and the transfer catalog."
},
"network": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,63}$",
"description": "The asset's native blockchain network."
},
"kind": {
"type": "string",
"enum": [
"native",
"token"
],
"description": "Native currency or a token contract according to the provider catalog."
},
"contractAddress": {
"anyOf": [
{
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Exact network address, preserving case and any routing metadata encoded in its native address format. Names must be resolved before approval."
},
{
"type": "null"
}
],
"description": "Native-chain token identifier; null for native currency."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "Atomic-unit precision."
},
"symbol": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Display label; the asset id determines identity."
}
},
"required": [
"id",
"network",
"kind",
"contractAddress",
"decimals",
"symbol"
],
"description": "The asset to send, on its network, and the precision its amounts are in."
},
"address": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "The one-time address to send to. It takes one transfer: never save or reuse it."
},
"memo": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[\\x20-\\x7e]+$"
},
{
"type": "null"
}
],
"description": "Required deposit memo or tag, exactly as returned; null means absent."
},
"minimumDepositRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The least one transfer must carry to be credited, in the asset's smallest unit. Less is refunded to the agent wallet."
},
"sendBefore": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "Send by this time; a transfer sent later may be refunded instead of credited."
},
"expiresAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When the address stops taking deposits. A transfer that arrives later is still watched, and refunded to the agent wallet."
},
"creditEstimateSeconds": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 86400
},
{
"type": "null"
}
],
"description": "About how long the credit takes once the network has confirmed the transfer, in seconds; null when no estimate was given."
}
},
"required": [
"asset",
"address",
"memo",
"minimumDepositRaw",
"sendBefore",
"expiresAt",
"creditEstimateSeconds"
]
},
{
"type": "null"
}
],
"description": "Where and what to send; `null` until the address is issued."
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {
"observedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When the outcome was observed."
},
"state": {
"type": "string",
"enum": [
"credited",
"refunded"
],
"description": "Whether the transfer was credited or refunded."
},
"depositedRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "What arrived at the address."
},
"creditedRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "What the agent wallet was credited; zero when all of it was refunded."
},
"refundedRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "What went back to the agent wallet uncredited, such as a transfer below the minimum."
},
"sourceTransactionHashes": {
"minItems": 1,
"maxItems": 32,
"type": "array",
"items": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash."
},
"description": "The transfers that paid the address, on the network they were sent on."
},
"refundTransactionHashes": {
"maxItems": 32,
"type": "array",
"items": {
"type": "string",
"pattern": "^[\\x21-\\x7e]{1,256}$",
"description": "Network transaction or ledger intent identifier; opaque and case-sensitive, not necessarily an EVM hash."
},
"description": "The refund's ledger identifiers, when they were reported."
}
},
"required": [
"observedAt",
"state",
"depositedRaw",
"creditedRaw",
"refundedRaw",
"sourceTransactionHashes",
"refundTransactionHashes"
]
},
{
"type": "null"
}
],
"description": "What arrived, what was credited and what was refunded; `null` until then."
},
"seenAt": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "When Fin first saw the user's transfer: the first check that found it on its way, or already credited or refunded. `null` until then, and for a transfer Fin saw before it kept this."
},
"arrivedRaw": {
"anyOf": [
{
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
{
"type": "null"
}
],
"description": "What 1Click reported arriving while it confirmed the transfer, in the asset's smallest unit; `null` until it reports a figure. For display while it confirms: `receipt` records what was finally credited."
},
"value": {
"anyOf": [
{
"$ref": "#/components/schemas/ValueAtTime"
},
{
"type": "null"
}
],
"description": "What was credited (`receipt.creditedRaw`) was worth when it was credited, at the price Fin recorded with the credit. `null` until it is credited, and when no fresh price was known then."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When the deposit address was created."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it last changed."
}
},
"required": [
"id",
"requestKey",
"network",
"assetId",
"state",
"instruction",
"receipt",
"seenAt",
"arrivedRaw",
"value",
"createdAt",
"updatedAt"
],
"description": "A one-time address that takes one transfer of any amount into the agent wallet, and how that transfer is going."
},
"SolanaBuyInput": {
"type": "object",
"properties": {
"token": {
"description": "The exact token to buy.",
"$ref": "#/components/schemas/SolanaToken"
},
"pay": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "usdc",
"description": "Pay from one USDC or USDT holding of the agent wallet (USDC on NEAR, Base, Arbitrum, Ethereum or Solana, or USDT on NEAR; any USDC that covers it before USDT), moved to Solana as SOL first."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Exact USDC or USDT to spend, in six-decimal atomic units: $50 is \"50000000\". At least 5 (\"5000000\"); a smaller buy is refused."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "Spend an exact amount of USDC or USDT from the agent wallet."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "sol",
"description": "Pay with SOL already in the agent's Solana account."
},
"lamports": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Exact SOL to spend, in lamports (nine decimals): 0.5 SOL is \"500000000\"."
}
},
"required": [
"kind",
"lamports"
],
"description": "Spend an exact amount of SOL the agent's Solana account already holds."
}
],
"description": "What the buy spends, as an exact input amount. Buying an exact number of tokens is not supported."
},
"maxValueLossBps": {
"type": "integer",
"minimum": 1,
"maximum": 1500,
"description": "Explicit all-in maximum value loss in basis points, from the value paid to the value received, fees and price impact included: at least 1, at most 1500. Required; no default."
},
"maxSolTopUpUsdcRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The most extra USDC or USDT the funding may add to keep SOL in the Solana account for network fees, in six-decimal atomic units: \"0\" for none, at most \"1000000\" (1 USDC). Must be \"0\" when paying with SOL."
},
"payWith": {
"description": "A buy paid in dollars and approved in chat as one call: the coin its funding pays with instead of a USDC or USDT holding, and the most of it it may spend, the SOL top-up included. Never SOL. A buy from a token's page refuses it.",
"$ref": "#/components/schemas/VenueFundingPayment"
}
},
"required": [
"token",
"pay",
"maxValueLossBps",
"maxSolTopUpUsdcRaw"
],
"description": "One exact-input buy of a Solana token through the agent's own Solana account."
},
"VenueFundingPayment": {
"type": "object",
"properties": {
"tokenId": {
"type": "string",
"maxLength": 256,
"pattern": "^(?:nep141|nep245|1cs_v1):[\\x21-\\x7e]+$",
"description": "The exact ledger asset identifier, including its token standard namespace."
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 38,
"description": "How many decimal places the token's smallest unit represents."
},
"maxInputRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The most of the coin this funding may spend, in its smallest unit: the approved dollars at the price read when the approval opened, plus 5%."
}
},
"required": [
"tokenId",
"decimals",
"maxInputRaw"
],
"description": "The coin this funding pays with and the most of it it may spend, as the owner approved them. Absent: the funding spends one USDC or USDT holding."
},
"SolanaSellInput": {
"type": "object",
"properties": {
"token": {
"description": "The exact token to sell.",
"$ref": "#/components/schemas/SolanaToken"
},
"amount": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact",
"description": "Sell an exact amount of the token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Exact amount of the token to sell, in its smallest unit (scaled by the token's decimals)."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "Sell an exact amount of the token."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction",
"description": "Sell a share of what the Solana account holds of the token."
},
"bps": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"description": "The share to sell, in basis points of the account's balance of the token: all of it is 10000, half is 5000."
}
},
"required": [
"kind",
"bps"
],
"description": "Sell a share of the account's balance of the token."
}
],
"description": "How much of the token to sell."
},
"receive": {
"type": "string",
"enum": [
"usdc",
"sol"
],
"description": "`usdc` returns the proceeds to the agent wallet as USDC on NEAR, which is what selling means; `sol` keeps them as SOL in the agent's Solana account."
},
"maxValueLossBps": {
"type": "integer",
"minimum": 1,
"maximum": 1500,
"description": "Explicit all-in maximum value loss in basis points, from the value paid to the value received, fees and price impact included: at least 1, at most 1500. Required; no default."
}
},
"required": [
"token",
"amount",
"receive",
"maxValueLossBps"
],
"description": "One sell of a Solana token held in the agent's own Solana account."
},
"SolanaFundInput": {
"type": "object",
"properties": {
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Exact USDC or USDT to move from the agent wallet into the agent's Solana account as SOL, in six-decimal atomic units: 5 USDC is \"5000000\". Spent from one USDC or USDT holding of the agent wallet (USDC on NEAR, Base, Arbitrum, Ethereum or Solana, or USDT on NEAR; any USDC that covers it before USDT) that alone covers it, never split across holdings, or, when it pays with a coin, that coin's value of it."
},
"maxValueLossBps": {
"type": "integer",
"minimum": 0,
"maximum": 300,
"description": "Explicit maximum value loss in basis points, including provider fees: at most 300. Required; no default."
},
"payWith": {
"description": "Approved in chat as one call: the coin this funding pays with instead of a USDC or USDT holding, and the most of it it may spend. Never SOL.",
"$ref": "#/components/schemas/VenueFundingPayment"
}
},
"required": [
"amountRaw",
"maxValueLossBps"
],
"description": "Move an exact amount of USDC or USDT, or that many dollars of a coin, from the agent wallet into its own Solana account as SOL."
},
"SolanaWithdrawInput": {
"type": "object",
"properties": {
"amount": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact",
"description": "Withdraw an exact amount of SOL."
},
"lamports": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Exact SOL to withdraw, in lamports (nine decimals): 0.5 SOL is \"500000000\"."
}
},
"required": [
"kind",
"lamports"
],
"description": "Withdraw an exact amount of SOL."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "all_spendable",
"description": "Withdraw all the SOL above the reserve the account keeps for rent and network fees."
}
},
"required": [
"kind"
],
"description": "Withdraw all the spendable SOL."
}
],
"description": "How much SOL to withdraw from the agent's Solana account."
},
"receive": {
"type": "string",
"enum": [
"usdc",
"sol"
],
"description": "`usdc` returns it to the agent wallet as USDC on NEAR; `sol` returns it to the agent wallet as SOL."
},
"maxValueLossBps": {
"type": "integer",
"minimum": 0,
"maximum": 300,
"description": "Explicit maximum value loss in basis points, including provider fees: at most 300. Required; no default."
}
},
"required": [
"amount",
"receive",
"maxValueLossBps"
],
"description": "Move SOL from the agent's own Solana account back to its agent wallet."
},
"SolanaSellManyInput": {
"type": "object",
"properties": {
"sells": {
"minItems": 2,
"maxItems": 6,
"type": "array",
"items": {
"$ref": "#/components/schemas/SolanaSale"
},
"description": "The coins to sell, in the order they are sold: 2 to 6, each a different mint, none of them SOL itself."
},
"receive": {
"type": "string",
"enum": [
"usdc",
"sol"
],
"description": "`usdc` returns the summed proceeds of every sale that went through to the agent wallet as USDC on NEAR, in one transfer once the last sale ran; `sol` keeps them as SOL in the agent's Solana account."
}
},
"required": [
"sells",
"receive"
],
"description": "Several sells of Solana tokens held in the agent's own Solana account, approved together and run as one: each sale on its own, one after another, then one transfer of what they returned."
},
"SolanaSale": {
"type": "object",
"properties": {
"token": {
"description": "The exact token to sell.",
"$ref": "#/components/schemas/SolanaToken"
},
"amount": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "exact",
"description": "Sell an exact amount of the token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "Exact amount of the token to sell, in its smallest unit (scaled by the token's decimals)."
}
},
"required": [
"kind",
"amountRaw"
],
"description": "Sell an exact amount of the token."
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "fraction",
"description": "Sell a share of what the Solana account holds of the token."
},
"bps": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"description": "The share to sell, in basis points of the account's balance of the token: all of it is 10000, half is 5000."
}
},
"required": [
"kind",
"bps"
],
"description": "Sell a share of the account's balance of the token."
}
],
"description": "How much of the token to sell."
},
"maxValueLossBps": {
"type": "integer",
"minimum": 1,
"maximum": 1500,
"description": "Explicit all-in maximum value loss in basis points, from the value paid to the value received, fees and price impact included: at least 1, at most 1500. Required; no default."
}
},
"required": [
"token",
"amount",
"maxValueLossBps"
],
"description": "One coin of a multi-coin sale, sold through the agent's own Solana account."
},
"SolanaTrade": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The trade's id, for Get a Solana trade."
},
"requestKey": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "The `Idempotency-Key` it was placed under."
},
"trade": {
"description": "The trade as the user signed it.",
"$ref": "#/components/schemas/SolanaTradeRequest"
},
"status": {
"type": "string",
"enum": [
"pending",
"processing",
"completed",
"partial",
"refunded",
"failed",
"denied",
"expired",
"uncertain"
],
"description": "`pending` until it starts, usually while it waits for the user's approval. `processing` while it runs, or while a Solana transaction it sent, or its transfer back to the agent wallet, has not finished. Then `completed` (the tokens bought, the proceeds of a sale or the SOL moved arrived), `partial` (part of it stands: a buy whose swap never happened after the account was funded, so the SOL is in the agent's Solana account, or a sale whose swap landed but whose transfer back did not finish, or that kept SOL, so the SOL is in the account or with 1Click until it refunds it; `solLeftLamports` says how much the account holds), `refunded` (1Click sent the funds back where they came from) or `failed` (nothing moved; `failureReason` says why). `denied` and `expired` mean the user denied it, or its approval ran out, before it started. `uncertain` means the result could not be confirmed yet: never ask the agent for a replacement, keep checking. `completed`, `partial`, `refunded`, `failed`, `denied` and `expired` are final."
},
"failureReason": {
"anyOf": [
{
"type": "string",
"enum": [
"insufficient_funds",
"quote_rejected",
"quote_expired",
"unavailable",
"not_authorized",
"stopped",
"not_executed",
"signing_disabled"
]
},
{
"type": "null"
}
],
"description": "When `status` is `failed`, why; otherwise `null`. `insufficient_funds`: the agent wallet or the Solana account did not hold enough, the account's reserve included. `quote_rejected`: the price or the route failed its checks, the loss limit would have been crossed, or a buy was under the minimum. `unavailable`: a temporary problem stopped it before anything was sent. `not_authorized`: the approval no longer covered it, or the token is one the agent does not trade. `stopped`: an operator paused trading or turned the wallet off. `not_executed`: nothing it sent landed before it expired. `signing_disabled`: this deployment does not sign trades. In every case nothing moved."
},
"stage": {
"description": "The step it is on, once it started: `funding` moves USDC from the agent wallet to the Solana account as SOL through 1Click, `swap` trades on Jupiter, `sweep` sends a sale's SOL back to the agent wallet. A higher `revision` is newer.",
"type": "object",
"properties": {
"revision": {
"type": "integer",
"minimum": 1,
"maximum": 1024,
"description": "Persisted lifecycle stage number. Ignore an older snapshot for the same operation."
},
"phase": {
"type": "string",
"enum": [
"funding",
"swap",
"sweep"
]
},
"state": {
"type": "string",
"enum": [
"preparing",
"prepared",
"submitting",
"pending",
"delivering",
"confirmed",
"uncertain",
"refunded",
"failed",
"not_executed"
]
},
"transactionIndex": {
"description": "The stored native transaction attempt, never a funding plan leg index.",
"type": "integer",
"minimum": 0,
"maximum": 5
}
},
"required": [
"revision",
"phase",
"state"
]
},
"paid": {
"description": "What the operation spent, once known.",
"type": "object",
"properties": {
"asset": {
"type": "string",
"enum": [
"usdc",
"sol",
"token"
],
"description": "`usdc` is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, `sol` is SOL, `token` is the operation's own token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact amount, in the asset's smallest unit."
}
},
"required": [
"asset",
"amountRaw"
]
},
"received": {
"description": "What the operation received, once it landed or settled.",
"type": "object",
"properties": {
"asset": {
"type": "string",
"enum": [
"usdc",
"sol",
"token"
],
"description": "`usdc` is the stablecoin a buy or fund paid (one USDC or USDT holding of the agent wallet, counted one raw unit for one) or the USDC on NEAR a sale or withdrawal returned, `sol` is SOL, `token` is the operation's own token."
},
"amountRaw": {
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$",
"description": "The exact amount, in the asset's smallest unit."
}
},
"required": [
"asset",
"amountRaw"
]
},
"solLeftLamports": {
"description": "SOL the operation left in the Solana account, in lamports: what a partial outcome left behind.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
},
"transactions": {
"maxItems": 6,
"type": "array",
"items": {
"type": "object",
"properties": {
"purpose": {
"type": "string",
"enum": [
"swap",
"sweep"
],
"description": "`swap` trades on Jupiter; `sweep` sends SOL back to the agent wallet through 1Click."
},
"signature": {
"type": "string",
"minLength": 64,
"maxLength": 88,
"pattern": "^[1-9A-HJ-NP-Za-km-z]+$",
"description": "A Solana transaction signature, which is also its id: base58 text of 64 bytes."
},
"state": {
"type": "string",
"enum": [
"signed",
"dispatching",
"landed",
"failed",
"expired",
"uncertain"
],
"description": "`signed` and `dispatching` are not yet sent or not yet seen; `landed` succeeded on chain, `failed` landed with an error, `expired` provably never will; `uncertain` is not yet known: never sign it again."
},
"feeLamports": {
"description": "The network fee the transaction paid, in lamports, once it landed.",
"type": "string",
"pattern": "^(0|[1-9]\\d{0,38})$"
}
},
"required": [
"purpose",
"signature",
"state"
],
"description": "One signed Solana transaction of this operation."
},
"description": "Every transaction the operation signed, in the order it signed them. A multi-coin sale lists here only its one transfer back: each coin's swaps are under its own entry of `sales`."
},
"completeBy": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "The latest it may still run, as the user signed it; its status is final by then."
},
"createdAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When it was placed."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "When its records last changed."
}
},
"required": [
"id",
"requestKey",
"trade",
"status",
"failureReason",
"transactions",
"completeBy",
"createdAt",
"updatedAt"
],
"description": "A Solana buy or sale the user placed themselves: its status, the step it is on, and what it paid and received."
},
"SolanaTradeRequest": {
"oneOf": [
{
"type": "object",
"properties": {
"side": {
"type": "string",
"const": "buy",
"description": "Buy the token."
},
"buy": {
"description": "The exact buy: the token, what it pays, its all-in loss bound and its SOL top-up cap.",
"$ref": "#/components/schemas/SolanaBuyInput"
}
},
"required": [
"side",
"buy"
]
},
{
"type": "object",
"properties": {
"side": {
"type": "string",
"const": "sell",
"description": "Sell the token."
},
"sell": {
"description": "The exact sale: the token, how much of it, where the proceeds go and its all-in loss bound.",
"$ref": "#/components/schemas/SolanaSellInput"
}
},
"required": [
"side",
"sell"
]
}
],
"description": "A buy or a sale of one Solana token through the agent's own Solana account."
},
"ProblemDetails": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The kind of problem as a URN, `urn:fin:error:<kind>`; stable, compare against it"
},
"title": {
"type": "string",
"description": "The kind's human title, for logs; never parse it"
},
"status": {
"type": "integer",
"minimum": 400,
"maximum": 599,
"description": "The HTTP status, repeated in the body"
},
"reason": {
"description": "The machine-readable why. One of:\n\n- `run_active` (409) — a run already holds this conversation\n- `budget_exhausted` (429) — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze it\n- `approval_not_pending` (409) — the approval was already decided or has expired, or its id does not exist or belongs to a different conversation\n- `execution_capacity` (429) — no capacity is free to run this right now; honour `Retry-After`\n- `execution_unavailable` (503) — the service that runs the agent could not take the work; `retryable` says whether to try again\n- `stop_pending` (409) — a stop is already in progress and its cleanup is not yet confirmed\n- `automation_changed` (409) — the automation changed while this request was handled; read it again and retry\n- `automation_held` (409) — an operator holds the automation; it fires again when released\n- `automation_invalid` (409) — the automation's definition cannot run as written\n- `automation_paused` (409) — the automation is paused; resume it first\n- `automation_has_no_webhook` (409) — the automation does not run on incoming events, so it has no webhook\n- `automation_limit` (409) — the user already has as many automations as the deployment allows\n- `profile_unknown_tool` (400) — `profile.tools` names a tool this deployment does not have\n- `deployment_paused` (503) — an operator paused this kind of work for the deployment; try again later\n- `run_not_active` (409) — the run named in the path is not the conversation's live run\n- `withdrawal_changed` (409) — the request key already binds different withdrawal terms, or the current balance cannot cover the requested amount\n- `swap_changed` (409) — the swap cannot be made as asked: an asset is no longer available or the current balance cannot cover the amount; get a new quote\n- `order_changed` (409) — the order can no longer be placed as prepared: the agent wallet no longer holds the amount, an asset is no longer offered, or its minimum no longer matches the assets' precision; prepare it again\n- `prediction_order_changed` (409) — the Polymarket order can no longer be placed as signed: the market closed or stopped taking orders, its price is off the market's tick or its size off Polymarket's minimum, its fee or cost would exceed the signed caps, the Polymarket account cannot cover it, or the signature lapsed before it was placed. Nothing was placed; prepare it again\n- `solana_trade_changed` (409) — the Solana trade can no longer run as signed: the token's decimals or program changed, the agent's Solana account or holdings no longer fit it, another Solana trade is running, or the signature lapsed before it started. Nothing moved; prepare it again\n- `trade_not_recoverable` (409) — the original trade or a recovery attempt remains active or uncertain, its unfinished actions lack conclusive recovery proof, or its remaining proposal can no longer be used\n- `order_not_cancelable` (409) — the limit order can no longer be cancelled: it filled or expired, or the swap provider never took it. Read the order for where it stands\n- `grid_not_active` (409) — the grid is not running, so it cannot be paused: it is already paused, stopping or ended. Read the grid for where it stands\n- `grid_not_paused` (409) — the grid is not paused, so there is nothing to resume. Read the grid for where it stands\n- `suggestion_changed` (409) — the suggestion no longer holds: the account or the market moved since fin made it, the user set it aside, or it cannot be made where the user is now. Say it changed, and read the page's suggestions again\n- `request_key_conflict` (409) — the request identity already binds different terms; retrieve the original resource or use a new identity for a new request\n- `question_not_pending` (409) — the questionnaire has already been answered, closed, or is not awaiting this submission\n- `flag_changed` (409) — the flag's targeting changed since you read it; read it again and retry\n- `group_changed` (409) — the group changed or was deleted since you read it; read it again and retry\n- `group_in_use` (409) — a flag's rules still name this group; take it out of those rules first\n- `group_name_taken` (409) — another group already has this name\n- `agent_wallet_required` (409) — create the agent wallet before opening a perps, prediction-market or Solana account\n- `wallet_account_unsupported` (409) — the user's wallet is an Agent API wallet, whose Intents account is a 0x address this route cannot name; read it with Get wallet account, Get wallet account balances and Open a wallet account session instead\n- `conversation_deleted` (410) — the conversation was deleted; its history stays readable\n- `automation_deleted` (410) — the automation was deleted\n- `grid_ended` (410) — the grid stopped, expired or failed; it stays readable but takes no command. A new grid needs the user's approval in chat\n- `credential_expired` (401) — the user token has expired; obtain a fresh one\n- `account_disabled` (403) — an operator disabled the account\n- `perps_disabled` (403) — perps is not enabled for this user\n- `prediction_disabled` (403) — prediction-market trading is not enabled for this user\n- `solana_disabled` (403) — Solana trading is not enabled for this user\n- `no_account` (404) — the user has not opened the account this call reads; open it first\n- `not_available_in_region` (403) — perps funding is unavailable in the user's region for this request; withdrawals remain available\n- `steering_disabled` (403) — steering a working run is not turned on for this user; send the message with Start a run once the run ends\n- `baskets_disabled` (403) — idea baskets are not turned on for this user; hide the Ideas pages and their baskets\n- `basket_buying` (409) — the basket is still buying, so it cannot be deleted yet; try again once its result is in\n- `basket_awaiting_approval` (409) — an approval to buy this basket is still open; decline it in the chat, then delete the basket\n- `basket_step_not_failed` (409) — the step bought, or the basket is not partly bought, so no order can be linked to it; read the basket again\n- `basket_step_linked` (409) — another order is already linked to this step; a link is permanent, so read the basket again\n- `basket_order_not_linkable` (400) — the order cannot stand in for this step: it is not one of the step's `failures[].linkable` orders, or another basket step already holds it\n- `voice_disabled` (403) — voice input is not turned on for this user; let them type instead\n- `voice_unavailable` (503) — this deployment has no speech model, so it cannot transcribe recordings; let the user type instead\n- `provider_unavailable` (503) — an external provider the call depends on did not answer\n- `quote_refused` (400) — 1Click would not quote this request, usually an amount below what it routes or a pair it does not offer; nothing was reserved. Change the amount or the assets and quote again; for a deposit address, no address was issued, so offer another network\n- `invalid_input` (400) — the body or query failed validation; `issues` names each field\n- `internal` (500) — a fault on our side; quote `requestId` when reporting it\n- `partner_key_required` (401) — no `X-Api-Key` header was sent\n- `partner_key_invalid` (401) — the `X-Api-Key` is unknown or revoked\n- `subject_mismatch` (403) — the `{userId}` in the path is not the token's user\n- `origin_rejected` (403) — a browser `Origin` other than the configured web origin\n- `permission_required` (403) — the verified credential is not permitted to make this call\n- `signature_required` (403) — creating the agent wallet needs the user's signature: send the user's signature of `creation.message` from Get the agent wallet as `authorization`\n- `asset_not_withdrawable` (403) — tokenized stocks cannot be withdrawn; sell them first\n- `asset_not_swappable` (403) — the swap names an asset this user cannot buy or trade with this request: a tokenized stock with no `context.country`, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user's `earn` flag is off\n- `asset_not_tradable` (403) — the order names an asset this user cannot buy or trade with this request: a tokenized stock with no `context.country`, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user's `earn` flag is off\n- `solana_token_not_tradable` (403) — Fin won't trade this token: its mint lets someone freeze, move or charge for holdings or pause transfers, it can't be sold back, Fin couldn't read its mint, it has no reliable price, or it is wrapped SOL. A sale is refused only for what would stop it landing\n- `limit_orders_disabled` (403) — limit orders are not enabled for this user\n- `grid_trading_disabled` (403) — grid trading is not enabled for this user, so a paused grid cannot be resumed; pausing and cancelling a grid are never gated\n- `deposit_limit_exceeded` (429) — the deposit would take the agent wallet past the user's deposit limit, or, for a deposit address, the wallet has no room left under it; nothing was recorded. Read `depositLimit.availableCents` from Get balances for how much fits now, and deposit no more than that\n- `policy_change_throttled` (429) — the user's Agent API wallet changed what it allows a few minutes ago, and the NEAR Intents Agent API lets it change again only after a cooldown; nothing was asked or signed, so call again once `Retry-After` has passed\n- `agent_slippage_exceeded` (403) — the user's wallet is an Agent API wallet whose agent signs only trades that lose at most the share of their value its owner allowed (`max_slippage_bps`): fees, price and slippage together, by 1Click's own USD values at the quote's minimum output. This trade's quote loses more, states no USD value, or, before there is a quote, its loss bound is already quoted with more slippage than that (half the bound, plus 1Click's fee at the most it has been seen to take, 20 basis points, before an approval). Very small trades lose more to fixed fees; nothing was signed, so ask again with a larger amount or a smaller loss bound\n- `agent_api_orders_unavailable` (403) — the user's Agent API wallet needs wallet setup to enable limit orders, or the order exceeds this wallet's 168-hour maximum; finish wallet setup or choose at most 168 hours before trying again; nothing was approved or signed\n- `destination_not_allowed` (403) — the user's wallet is an Agent API wallet, whose agent pays a deposit only to itself, to a NEAR Intents account its owner listed (on the confidential ledger) or to an address on a chain its owner listed; allow this one with Add a withdrawal destination (one owner signature), then ask again. A public NEAR Intents account, or an address with no valid spelling on its chain, cannot be paid at all; nothing was signed\n- `rate_limited` (429) — the per-key or per-user limit is spent; honour `Retry-After`\n- `partner_request_capacity` (429) — this partner's request quota across all keys and replicas is spent; honour Retry-After\n- `partner_run_capacity` (429) — this partner's active run quota is full; honour Retry-After and reuse the same request identity\n- `stream_capacity` (429) — the partner, user or replica has no free stream capacity; honour `Retry-After`\n- `invalid_cursor` (400) — the `cursor` is not one this list minted\n- `invalid_question_answer` (400) — the questionnaire answer does not match its questions or allowed choices\n- `question_closed` (410) — the questionnaire expired or was cancelled\n- `unknown_target` (400) — a rule names a partner, group or user that does not exist, or a user outside the partners the same rule names\n- `scope_invalid` (400) — a subject in the scope is not a subject id, or appears twice\n- `subject_unsupported` (404) — a subject in the scope is not one market briefs cover; list them with List market subjects\n- `brief_not_found` (404) — no market brief job with this id was created with your partner key\n- `briefs_busy` (429) — your market briefs are at their limit of briefs generating at once; retry after `Retry-After`\n- `market_briefs_disabled` (403) — market briefs are not turned on for your partner key\n- `story_not_found` (404) — no market story with this id is current: it never was one, or Fin no longer shows it because its sources were withdrawn or its figures can no longer be read",
"type": "string",
"enum": [
"run_active",
"budget_exhausted",
"approval_not_pending",
"execution_capacity",
"execution_unavailable",
"stop_pending",
"automation_changed",
"automation_held",
"automation_invalid",
"automation_paused",
"automation_has_no_webhook",
"automation_limit",
"profile_unknown_tool",
"deployment_paused",
"run_not_active",
"withdrawal_changed",
"swap_changed",
"order_changed",
"prediction_order_changed",
"solana_trade_changed",
"trade_not_recoverable",
"order_not_cancelable",
"grid_not_active",
"grid_not_paused",
"suggestion_changed",
"request_key_conflict",
"question_not_pending",
"flag_changed",
"group_changed",
"group_in_use",
"group_name_taken",
"agent_wallet_required",
"wallet_account_unsupported",
"conversation_deleted",
"automation_deleted",
"grid_ended",
"credential_expired",
"account_disabled",
"perps_disabled",
"prediction_disabled",
"solana_disabled",
"no_account",
"not_available_in_region",
"steering_disabled",
"baskets_disabled",
"basket_buying",
"basket_awaiting_approval",
"basket_step_not_failed",
"basket_step_linked",
"basket_order_not_linkable",
"voice_disabled",
"voice_unavailable",
"provider_unavailable",
"quote_refused",
"invalid_input",
"internal",
"partner_key_required",
"partner_key_invalid",
"subject_mismatch",
"origin_rejected",
"permission_required",
"signature_required",
"asset_not_withdrawable",
"asset_not_swappable",
"asset_not_tradable",
"solana_token_not_tradable",
"limit_orders_disabled",
"grid_trading_disabled",
"deposit_limit_exceeded",
"policy_change_throttled",
"agent_slippage_exceeded",
"agent_api_orders_unavailable",
"destination_not_allowed",
"rate_limited",
"partner_request_capacity",
"partner_run_capacity",
"stream_capacity",
"invalid_cursor",
"invalid_question_answer",
"question_closed",
"unknown_target",
"scope_invalid",
"subject_unsupported",
"brief_not_found",
"briefs_busy",
"market_briefs_disabled",
"story_not_found"
]
},
"requestId": {
"type": "string",
"description": "The id Fin used for this request; quote it when reporting a problem"
},
"retryable": {
"type": "boolean",
"description": "Whether repeating the same request later can succeed without changing it"
},
"detail": {
"description": "Only on `invalid_input`: which part of the request failed validation",
"type": "string"
},
"issues": {
"description": "Only on `invalid_input`: one entry per failing field",
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The JSON pointer of the failing field; empty for the root object"
},
"message": {
"type": "string",
"description": "Why the field failed"
}
},
"required": [
"path",
"message"
]
}
}
},
"required": [
"type",
"title",
"status",
"requestId",
"retryable"
],
"description": "RFC 9457 problem details: what every error response carries. Never a provider's message, a query or a stack."
}
},
"responses": {
"InvalidInput": {
"description": "The request could not be read as this operation expects.\n\n- `invalid_input` — the body or query failed validation; `issues` names each field\n- `invalid_cursor` — the `cursor` is not one this list minted",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
},
"Unauthorized": {
"description": "A credential is missing, invalid or expired.\n\n- `partner_key_required` — no `X-Api-Key` header was sent\n- `partner_key_invalid` — the `X-Api-Key` is unknown or revoked\n- `credential_expired` — the user token has expired; obtain a fresh one",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
},
"Forbidden": {
"description": "The credentials are valid but may not do this.\n\n- `subject_mismatch` — the `{userId}` in the path is not the token's user\n- `account_disabled` — an operator disabled the account\n- `origin_rejected` — a browser `Origin` other than the configured web origin\n- `permission_required` — the verified credential is not permitted to make this call",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
},
"NotFound": {
"description": "The resource is missing, belongs to someone else, or its id is malformed: all three answer alike.",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
},
"TooManyRequests": {
"description": "A limit refused the request; wait for `Retry-After` when it is sent.\n\n- `rate_limited` — the per-key or per-user limit is spent; honour `Retry-After`\n- `partner_request_capacity` — this partner's request quota across all keys and replicas is spent; honour Retry-After",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
},
"Internal": {
"description": "A fault on our side; quote `requestId` when reporting it.\n\n- `internal` — a fault on our side; quote `requestId` when reporting it",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
},
"Unavailable": {
"description": "The service cannot take this right now (draining, a dependency did not answer, or an operator paused the work); `retryable` says whether to try again.\n\n- `internal` — a fault on our side; quote `requestId` when reporting it",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
},
"securitySchemes": {
"apiKey": {
"type": "apiKey",
"in": "header",
"name": "X-Api-Key"
},
"userToken": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "fin_session_<opaque>",
"description": "A user's session token, from Create a session."
}
}
}
}