curl --request POST \
--url https://api.tuyo.com/public/agent_executions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'Tuyo-API-Version: <tuyo-api-version>' \
--header 'Tuyo-Agent-Identity: <tuyo-agent-identity>' \
--data '
{
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"intent": {
"kind": "send",
"recipient": {
"kind": "tuyo_username",
"username": "<string>"
},
"recipientGets": "<unknown>",
"fundingSource": "<unknown>",
"memo": "<unknown>"
}
}
'import requests
url = "https://api.tuyo.com/public/agent_executions"
payload = {
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"intent": {
"kind": "send",
"recipient": {
"kind": "tuyo_username",
"username": "<string>"
},
"recipientGets": "<unknown>",
"fundingSource": "<unknown>",
"memo": "<unknown>"
}
}
headers = {
"Tuyo-API-Version": "<tuyo-api-version>",
"Tuyo-Agent-Identity": "<tuyo-agent-identity>",
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Tuyo-API-Version': '<tuyo-api-version>',
'Tuyo-Agent-Identity': '<tuyo-agent-identity>',
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
podId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
intent: {
kind: 'send',
recipient: {kind: 'tuyo_username', username: '<string>'},
recipientGets: '<unknown>',
fundingSource: '<unknown>',
memo: '<unknown>'
}
})
};
fetch('https://api.tuyo.com/public/agent_executions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tuyo.com/public/agent_executions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'podId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'intent' => [
'kind' => 'send',
'recipient' => [
'kind' => 'tuyo_username',
'username' => '<string>'
],
'recipientGets' => '<unknown>',
'fundingSource' => '<unknown>',
'memo' => '<unknown>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"Tuyo-API-Version: <tuyo-api-version>",
"Tuyo-Agent-Identity: <tuyo-agent-identity>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tuyo.com/public/agent_executions"
payload := strings.NewReader("{\n \"podId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"intent\": {\n \"kind\": \"send\",\n \"recipient\": {\n \"kind\": \"tuyo_username\",\n \"username\": \"<string>\"\n },\n \"recipientGets\": \"<unknown>\",\n \"fundingSource\": \"<unknown>\",\n \"memo\": \"<unknown>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Tuyo-API-Version", "<tuyo-api-version>")
req.Header.Add("Tuyo-Agent-Identity", "<tuyo-agent-identity>")
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tuyo.com/public/agent_executions")
.header("Tuyo-API-Version", "<tuyo-api-version>")
.header("Tuyo-Agent-Identity", "<tuyo-agent-identity>")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"podId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"intent\": {\n \"kind\": \"send\",\n \"recipient\": {\n \"kind\": \"tuyo_username\",\n \"username\": \"<string>\"\n },\n \"recipientGets\": \"<unknown>\",\n \"fundingSource\": \"<unknown>\",\n \"memo\": \"<unknown>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tuyo.com/public/agent_executions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Tuyo-API-Version"] = '<tuyo-api-version>'
request["Tuyo-Agent-Identity"] = '<tuyo-agent-identity>'
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"podId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"intent\": {\n \"kind\": \"send\",\n \"recipient\": {\n \"kind\": \"tuyo_username\",\n \"username\": \"<string>\"\n },\n \"recipientGets\": \"<unknown>\",\n \"fundingSource\": \"<unknown>\",\n \"memo\": \"<unknown>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionId": "<string>",
"status": "awaiting_signature",
"expiresAt": "2023-11-07T05:31:56Z",
"transactionHash": "<unknown>",
"summary": {
"kind": "send",
"recipient": "<string>",
"from": "<unknown>",
"to": "<unknown>",
"fees": [
"<unknown>"
]
},
"signing": {
"version": 1,
"method": "personal_sign",
"encoding": "hex",
"data": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"submission": {
"method": "POST",
"path": "<string>",
"headers": {},
"body": {
"signature": null
}
}
},
"userOperation": {
"sender": "<unknown>",
"nonce": "<unknown>",
"factory": "<unknown>",
"factoryData": "<unknown>",
"callData": "<unknown>",
"callGasLimit": "<unknown>",
"verificationGasLimit": "<unknown>",
"preVerificationGas": "<unknown>",
"maxFeePerGas": "<unknown>",
"maxPriorityFeePerGas": "<unknown>",
"paymaster": "<unknown>",
"paymasterData": "<unknown>",
"paymasterVerificationGasLimit": "<unknown>",
"paymasterPostOpGasLimit": "<unknown>"
},
"chainId": 0
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionId": "<string>",
"status": "awaiting_signature",
"expiresAt": "2023-11-07T05:31:56Z",
"transactionHash": "<unknown>",
"summary": {
"kind": "send",
"recipient": "<string>",
"from": "<unknown>",
"to": "<unknown>",
"fees": [
"<unknown>"
]
},
"signing": {
"version": 1,
"method": "personal_sign",
"encoding": "hex",
"data": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"submission": {
"method": "POST",
"path": "<string>",
"headers": {},
"body": {
"signature": null
}
}
},
"userOperation": {
"sender": "<unknown>",
"nonce": "<unknown>",
"factory": "<unknown>",
"factoryData": "<unknown>",
"callData": "<unknown>",
"callGasLimit": "<unknown>",
"verificationGasLimit": "<unknown>",
"preVerificationGas": "<unknown>",
"maxFeePerGas": "<unknown>",
"maxPriorityFeePerGas": "<unknown>",
"paymaster": "<unknown>",
"paymasterData": "<unknown>",
"paymasterVerificationGasLimit": "<unknown>",
"paymasterPostOpGasLimit": "<unknown>"
},
"chainId": 0
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}Prepare a pod send or convert for agent signing
Requires account:read on the originating OAuth authorization. The verified agent identity and podId select an approved manager, including before first installation. OAuth alone cannot prepare or execute an operation. Pass the complete signing object to offline sign_execution(). It signs backend-prepared hex bytes with personal_sign and fills the backend-provided submission template. The versioned envelope is generic; the CLI does not interpret payload meaning. Submit the operation signature before expiresAt. Every execution route requires Tuyo-Agent-Identity from the original manager key. Reuse the UUID Idempotency-Key after an ambiguous response; changed input returns 409. Same-chain and supported cross-chain routes share the owner financial planners. Bank sends and arbitrary calldata are not accepted.
curl --request POST \
--url https://api.tuyo.com/public/agent_executions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'Tuyo-API-Version: <tuyo-api-version>' \
--header 'Tuyo-Agent-Identity: <tuyo-agent-identity>' \
--data '
{
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"intent": {
"kind": "send",
"recipient": {
"kind": "tuyo_username",
"username": "<string>"
},
"recipientGets": "<unknown>",
"fundingSource": "<unknown>",
"memo": "<unknown>"
}
}
'import requests
url = "https://api.tuyo.com/public/agent_executions"
payload = {
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"intent": {
"kind": "send",
"recipient": {
"kind": "tuyo_username",
"username": "<string>"
},
"recipientGets": "<unknown>",
"fundingSource": "<unknown>",
"memo": "<unknown>"
}
}
headers = {
"Tuyo-API-Version": "<tuyo-api-version>",
"Tuyo-Agent-Identity": "<tuyo-agent-identity>",
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Tuyo-API-Version': '<tuyo-api-version>',
'Tuyo-Agent-Identity': '<tuyo-agent-identity>',
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
podId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
intent: {
kind: 'send',
recipient: {kind: 'tuyo_username', username: '<string>'},
recipientGets: '<unknown>',
fundingSource: '<unknown>',
memo: '<unknown>'
}
})
};
fetch('https://api.tuyo.com/public/agent_executions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tuyo.com/public/agent_executions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'podId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'intent' => [
'kind' => 'send',
'recipient' => [
'kind' => 'tuyo_username',
'username' => '<string>'
],
'recipientGets' => '<unknown>',
'fundingSource' => '<unknown>',
'memo' => '<unknown>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"Tuyo-API-Version: <tuyo-api-version>",
"Tuyo-Agent-Identity: <tuyo-agent-identity>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tuyo.com/public/agent_executions"
payload := strings.NewReader("{\n \"podId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"intent\": {\n \"kind\": \"send\",\n \"recipient\": {\n \"kind\": \"tuyo_username\",\n \"username\": \"<string>\"\n },\n \"recipientGets\": \"<unknown>\",\n \"fundingSource\": \"<unknown>\",\n \"memo\": \"<unknown>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Tuyo-API-Version", "<tuyo-api-version>")
req.Header.Add("Tuyo-Agent-Identity", "<tuyo-agent-identity>")
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tuyo.com/public/agent_executions")
.header("Tuyo-API-Version", "<tuyo-api-version>")
.header("Tuyo-Agent-Identity", "<tuyo-agent-identity>")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"podId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"intent\": {\n \"kind\": \"send\",\n \"recipient\": {\n \"kind\": \"tuyo_username\",\n \"username\": \"<string>\"\n },\n \"recipientGets\": \"<unknown>\",\n \"fundingSource\": \"<unknown>\",\n \"memo\": \"<unknown>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tuyo.com/public/agent_executions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Tuyo-API-Version"] = '<tuyo-api-version>'
request["Tuyo-Agent-Identity"] = '<tuyo-agent-identity>'
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"podId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"intent\": {\n \"kind\": \"send\",\n \"recipient\": {\n \"kind\": \"tuyo_username\",\n \"username\": \"<string>\"\n },\n \"recipientGets\": \"<unknown>\",\n \"fundingSource\": \"<unknown>\",\n \"memo\": \"<unknown>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionId": "<string>",
"status": "awaiting_signature",
"expiresAt": "2023-11-07T05:31:56Z",
"transactionHash": "<unknown>",
"summary": {
"kind": "send",
"recipient": "<string>",
"from": "<unknown>",
"to": "<unknown>",
"fees": [
"<unknown>"
]
},
"signing": {
"version": 1,
"method": "personal_sign",
"encoding": "hex",
"data": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"submission": {
"method": "POST",
"path": "<string>",
"headers": {},
"body": {
"signature": null
}
}
},
"userOperation": {
"sender": "<unknown>",
"nonce": "<unknown>",
"factory": "<unknown>",
"factoryData": "<unknown>",
"callData": "<unknown>",
"callGasLimit": "<unknown>",
"verificationGasLimit": "<unknown>",
"preVerificationGas": "<unknown>",
"maxFeePerGas": "<unknown>",
"maxPriorityFeePerGas": "<unknown>",
"paymaster": "<unknown>",
"paymasterData": "<unknown>",
"paymasterVerificationGasLimit": "<unknown>",
"paymasterPostOpGasLimit": "<unknown>"
},
"chainId": 0
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionId": "<string>",
"status": "awaiting_signature",
"expiresAt": "2023-11-07T05:31:56Z",
"transactionHash": "<unknown>",
"summary": {
"kind": "send",
"recipient": "<string>",
"from": "<unknown>",
"to": "<unknown>",
"fees": [
"<unknown>"
]
},
"signing": {
"version": 1,
"method": "personal_sign",
"encoding": "hex",
"data": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"submission": {
"method": "POST",
"path": "<string>",
"headers": {},
"body": {
"signature": null
}
}
},
"userOperation": {
"sender": "<unknown>",
"nonce": "<unknown>",
"factory": "<unknown>",
"factoryData": "<unknown>",
"callData": "<unknown>",
"callGasLimit": "<unknown>",
"verificationGasLimit": "<unknown>",
"preVerificationGas": "<unknown>",
"maxFeePerGas": "<unknown>",
"maxPriorityFeePerGas": "<unknown>",
"paymaster": "<unknown>",
"paymasterData": "<unknown>",
"paymasterVerificationGasLimit": "<unknown>",
"paymasterPostOpGasLimit": "<unknown>"
},
"chainId": 0
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"requestId": "<string>"
}
}Headers
Opaque five-minute proof from the original agent key. Run tuyo-signer identity --signer agent offline and use its token as this header; --json or MCP returns headers.Tuyo-Agent-Identity. Scope defaults to all, adding no restriction to existing permissions; other scopes are currently rejected. OAuth and operation signatures remain separate requirements.
Body
Response
Existing execution.