Proposals
Approve proposal
Draft: specification in progress. Endpoints and fields may change.
Approves the proposal and releases the unsigned transactions to the custodian.
Approval does not move funds. Idempotency-Key is required. Scope: admin.
POST
/
propostas
/
{id}
/
aprovar
Approve proposal
curl --request POST \
--url https://api.t3sa.com/v1/propostas/{id}/aprovar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"comentario": "Aprovado pela tesouraria"
}
'import requests
url = "https://api.t3sa.com/v1/propostas/{id}/aprovar"
payload = { "comentario": "Aprovado pela tesouraria" }
headers = {
"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: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({comentario: 'Aprovado pela tesouraria'})
};
fetch('https://api.t3sa.com/v1/propostas/{id}/aprovar', 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.t3sa.com/v1/propostas/{id}/aprovar",
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([
'comentario' => 'Aprovado pela tesouraria'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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.t3sa.com/v1/propostas/{id}/aprovar"
payload := strings.NewReader("{\n \"comentario\": \"Aprovado pela tesouraria\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.t3sa.com/v1/propostas/{id}/aprovar")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"comentario\": \"Aprovado pela tesouraria\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.t3sa.com/v1/propostas/{id}/aprovar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"comentario\": \"Aprovado pela tesouraria\"\n}"
response = http.request(request)
puts response.read_body{
"id": "prop_8f2a1c",
"tipo": "rebalanceamento",
"status": "aprovada",
"origem": "tesa",
"motivo": "Spread de taxa entre BUIDL e USDY acima do limite da política",
"movimentos": [
{
"de": "USDY",
"para": "BUIDL",
"valor": "42105.50"
}
],
"alocacao_resultante": [
{
"ativo": "USDY",
"valor": "463160.50",
"percentual": 55
},
{
"ativo": "BUIDL",
"valor": "378949.50",
"percentual": 45
}
],
"transacoes": [
{
"id": "tx_01",
"rede": "ethereum",
"carteira_id": "cart_3k9d",
"status": "aguardando_assinatura",
"payload_nao_assinado": "0x02f8...",
"tx_hash": null
}
],
"criada_em": "2026-09-01T09:30:00Z",
"decidida_em": "2026-09-01T12:00:00Z",
"executada_em": null
}{
"erro": {
"codigo": "saldo_insuficiente",
"mensagem": "<string>",
"campo": "<string>",
"requisicao_id": "req_9d8c7b"
}
}{
"erro": {
"codigo": "saldo_insuficiente",
"mensagem": "<string>",
"campo": "<string>",
"requisicao_id": "req_9d8c7b"
}
}{
"erro": {
"codigo": "saldo_insuficiente",
"mensagem": "<string>",
"campo": "<string>",
"requisicao_id": "req_9d8c7b"
}
}{
"erro": {
"codigo": "saldo_insuficiente",
"mensagem": "<string>",
"campo": "<string>",
"requisicao_id": "req_9d8c7b"
}
}Draft: specification in progress. Endpoints and fields may change.
Authorizations
bearerAuthbearerAuth & tesaTimestamp & tesaSignature
The organization's API key (tesa_live_... in production, tesa_test_... in the sandbox).
Headers
Required for this operation. A network failure must not create two operations.
Path Parameters
Proposal identifier, prefixed with prop_.
Example:
"prop_8f2a1c"
Body
application/json
Example:
"Aprovado pela tesouraria"
Response
Proposal approved, with transactions awaiting signature.
Example:
"prop_8f2a1c"
Available options:
alocacao, rebalanceamento Available options:
pendente, aprovada, rejeitada, executada Available options:
tesa, cliente Show child attributes
Show child attributes
Show child attributes
Show child attributes
Available from the aprovada status onward.
Show child attributes
Show child attributes
⌘I
Approve proposal
curl --request POST \
--url https://api.t3sa.com/v1/propostas/{id}/aprovar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"comentario": "Aprovado pela tesouraria"
}
'import requests
url = "https://api.t3sa.com/v1/propostas/{id}/aprovar"
payload = { "comentario": "Aprovado pela tesouraria" }
headers = {
"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: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({comentario: 'Aprovado pela tesouraria'})
};
fetch('https://api.t3sa.com/v1/propostas/{id}/aprovar', 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.t3sa.com/v1/propostas/{id}/aprovar",
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([
'comentario' => 'Aprovado pela tesouraria'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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.t3sa.com/v1/propostas/{id}/aprovar"
payload := strings.NewReader("{\n \"comentario\": \"Aprovado pela tesouraria\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.t3sa.com/v1/propostas/{id}/aprovar")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"comentario\": \"Aprovado pela tesouraria\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.t3sa.com/v1/propostas/{id}/aprovar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"comentario\": \"Aprovado pela tesouraria\"\n}"
response = http.request(request)
puts response.read_body{
"id": "prop_8f2a1c",
"tipo": "rebalanceamento",
"status": "aprovada",
"origem": "tesa",
"motivo": "Spread de taxa entre BUIDL e USDY acima do limite da política",
"movimentos": [
{
"de": "USDY",
"para": "BUIDL",
"valor": "42105.50"
}
],
"alocacao_resultante": [
{
"ativo": "USDY",
"valor": "463160.50",
"percentual": 55
},
{
"ativo": "BUIDL",
"valor": "378949.50",
"percentual": 45
}
],
"transacoes": [
{
"id": "tx_01",
"rede": "ethereum",
"carteira_id": "cart_3k9d",
"status": "aguardando_assinatura",
"payload_nao_assinado": "0x02f8...",
"tx_hash": null
}
],
"criada_em": "2026-09-01T09:30:00Z",
"decidida_em": "2026-09-01T12:00:00Z",
"executada_em": null
}{
"erro": {
"codigo": "saldo_insuficiente",
"mensagem": "<string>",
"campo": "<string>",
"requisicao_id": "req_9d8c7b"
}
}{
"erro": {
"codigo": "saldo_insuficiente",
"mensagem": "<string>",
"campo": "<string>",
"requisicao_id": "req_9d8c7b"
}
}{
"erro": {
"codigo": "saldo_insuficiente",
"mensagem": "<string>",
"campo": "<string>",
"requisicao_id": "req_9d8c7b"
}
}{
"erro": {
"codigo": "saldo_insuficiente",
"mensagem": "<string>",
"campo": "<string>",
"requisicao_id": "req_9d8c7b"
}
}