curl --request POST \
--url https://api.tuyo.com/public/pod_manager_proposals \
--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",
"signAddress": "<string>",
"name": "<string>",
"permissionExpiresAt": "2023-11-07T05:31:56Z",
"ttlSeconds": 43230
}
'import requests
url = "https://api.tuyo.com/public/pod_manager_proposals"
payload = {
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signAddress": "<string>",
"name": "<string>",
"permissionExpiresAt": "2023-11-07T05:31:56Z",
"ttlSeconds": 43230
}
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',
signAddress: '<string>',
name: '<string>',
permissionExpiresAt: '2023-11-07T05:31:56Z',
ttlSeconds: 43230
})
};
fetch('https://api.tuyo.com/public/pod_manager_proposals', 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/pod_manager_proposals",
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',
'signAddress' => '<string>',
'name' => '<string>',
'permissionExpiresAt' => '2023-11-07T05:31:56Z',
'ttlSeconds' => 43230
]),
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/pod_manager_proposals"
payload := strings.NewReader("{\n \"podId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"signAddress\": \"<string>\",\n \"name\": \"<string>\",\n \"permissionExpiresAt\": \"2023-11-07T05:31:56Z\",\n \"ttlSeconds\": 43230\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/pod_manager_proposals")
.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 \"signAddress\": \"<string>\",\n \"name\": \"<string>\",\n \"permissionExpiresAt\": \"2023-11-07T05:31:56Z\",\n \"ttlSeconds\": 43230\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tuyo.com/public/pod_manager_proposals")
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 \"signAddress\": \"<string>\",\n \"name\": \"<string>\",\n \"permissionExpiresAt\": \"2023-11-07T05:31:56Z\",\n \"ttlSeconds\": 43230\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent": {
"name": "<string>",
"signAddress": "<string>"
},
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"permissionExpiresAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent": {
"name": "<string>",
"signAddress": "<string>"
},
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"permissionExpiresAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z"
}{
"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>"
}
}Request owner approval for an agent to manage a pod
Creates a pending manager request; it grants no execution access. signAddress is the EVM address derived from the agent public key. The private key stays with the agent. permissionExpiresAt is the requested access expiry; ttlSeconds is the separate time allowed for owner approval (60–86400 seconds, default 900). Retry with the same UUID Idempotency-Key and unchanged input. Only the originating authorization may read status. Owner signing happens in the Tuyo app.
curl --request POST \
--url https://api.tuyo.com/public/pod_manager_proposals \
--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",
"signAddress": "<string>",
"name": "<string>",
"permissionExpiresAt": "2023-11-07T05:31:56Z",
"ttlSeconds": 43230
}
'import requests
url = "https://api.tuyo.com/public/pod_manager_proposals"
payload = {
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signAddress": "<string>",
"name": "<string>",
"permissionExpiresAt": "2023-11-07T05:31:56Z",
"ttlSeconds": 43230
}
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',
signAddress: '<string>',
name: '<string>',
permissionExpiresAt: '2023-11-07T05:31:56Z',
ttlSeconds: 43230
})
};
fetch('https://api.tuyo.com/public/pod_manager_proposals', 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/pod_manager_proposals",
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',
'signAddress' => '<string>',
'name' => '<string>',
'permissionExpiresAt' => '2023-11-07T05:31:56Z',
'ttlSeconds' => 43230
]),
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/pod_manager_proposals"
payload := strings.NewReader("{\n \"podId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"signAddress\": \"<string>\",\n \"name\": \"<string>\",\n \"permissionExpiresAt\": \"2023-11-07T05:31:56Z\",\n \"ttlSeconds\": 43230\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/pod_manager_proposals")
.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 \"signAddress\": \"<string>\",\n \"name\": \"<string>\",\n \"permissionExpiresAt\": \"2023-11-07T05:31:56Z\",\n \"ttlSeconds\": 43230\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tuyo.com/public/pod_manager_proposals")
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 \"signAddress\": \"<string>\",\n \"name\": \"<string>\",\n \"permissionExpiresAt\": \"2023-11-07T05:31:56Z\",\n \"ttlSeconds\": 43230\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent": {
"name": "<string>",
"signAddress": "<string>"
},
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"permissionExpiresAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"podId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent": {
"name": "<string>",
"signAddress": "<string>"
},
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"permissionExpiresAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z"
}{
"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
^(?:(?:\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))$Response
Existing idempotent request.
^(?:(?:\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))$^(?:(?:\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))$