cURL
curl --request GET \
--url https://chat.aomi.dev/v1/agent/chat/{sessionId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://chat.aomi.dev/v1/agent/chat/{sessionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://chat.aomi.dev/v1/agent/chat/{sessionId}', 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://chat.aomi.dev/v1/agent/chat/{sessionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://chat.aomi.dev/v1/agent/chat/{sessionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chat.aomi.dev/v1/agent/chat/{sessionId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://chat.aomi.dev/v1/agent/chat/{sessionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"session_id": "<string>",
"cursor": "<string>",
"events": [
{
"event_id": "<string>",
"sequence": 2,
"turn_id": "<string>",
"occurred_at": 123,
"type": "message",
"sender": "user",
"content": "<string>",
"runtime_sequence": 1,
"message_key": "<string>",
"tool_call_id": "<string>",
"tool_result": "<array>",
"tool_name": "<string>",
"tool_arguments": "<unknown>",
"is_streaming": true
}
],
"has_more": true,
"commits": [
{
"version": 2,
"commit_id": "<string>",
"thread_id": "<string>",
"stage_id": "<string>",
"chain_family": "evm",
"chain_ref": "<string>",
"signer": "<string>",
"broadcaster": "wallet",
"state": "needs_signature",
"transaction_id": "<string>",
"failure_code": "<string>",
"batch": {
"batch_id": "<string>",
"index": 1,
"ordered_stage_ids": [
"<string>"
],
"ordered_commit_ids": [
"<string>"
],
"sources": [
{
"thread_id": "<string>",
"chain_family": "evm",
"chain_ref": "<string>",
"stage_id": "<string>",
"source_id": 1
}
],
"predecessor_commit_id": "<string>",
"review_digest": "<string>"
},
"review": {
"version": 2,
"revision": 2,
"digest": "<string>",
"request": {
"type": "execute_evm",
"transactions": [
{
"chain_id": 2,
"from": "<string>",
"to": "<string>",
"data": "<string>",
"label": "<string>",
"kind": "<string>",
"value": "<string>",
"gas": "<string>",
"protocol": "<string>",
"expires_at": 123,
"last_batch_status": "<string>",
"pending_tx_id": 123,
"current_lifecycle": "<string>",
"broadcaster": "wallet",
"fee_outcome": {
"kind": "flat"
}
}
],
"simulation": {
"status": "passed",
"balanceChanges": [
{
"asset": "<string>",
"amount": "<string>",
"account": "<string>",
"direction": "in",
"symbol": "<string>",
"decimals": 123,
"chainId": 123,
"cluster": "<string>",
"standard": "native",
"name": "<string>",
"tokenId": "<string>",
"counterparty": "<string>",
"step": 2
}
],
"approvals": [
{
"account": "<string>",
"spender": "<string>",
"asset": "<string>",
"kind": "allowance",
"standard": "native",
"amount": "<string>",
"approved": true,
"unlimited": true,
"tokenId": "<string>",
"symbol": "<string>",
"name": "<string>",
"decimals": 123,
"chainId": 123,
"step": 2
}
],
"fees": [
{
"asset": "<string>",
"amount": "<string>",
"account": "<string>",
"symbol": "<string>",
"decimals": 123,
"chainId": 123,
"cluster": "<string>",
"kind": "<string>"
}
],
"warnings": [
"<string>"
],
"guards": [
{
"name": "<string>",
"status": "passed",
"message": "<string>"
}
],
"gas": {
"units": "<string>",
"priceWei": "<string>",
"nativeCost": "<string>"
},
"logs": [
{
"address": "<string>",
"topics": [
"<string>"
],
"data": "<string>",
"chainId": 123,
"cluster": "<string>",
"step": 2
}
]
}
},
"legs": [
{
"type": "execute_evm",
"transactions": [
{
"chain_id": 2,
"from": "<string>",
"to": "<string>",
"data": "<string>",
"label": "<string>",
"kind": "<string>",
"value": "<string>",
"gas": "<string>",
"protocol": "<string>",
"expires_at": 123,
"last_batch_status": "<string>",
"pending_tx_id": 123,
"current_lifecycle": "<string>",
"broadcaster": "wallet",
"fee_outcome": {
"kind": "flat"
}
}
],
"simulation": {
"status": "passed",
"balanceChanges": [
{
"asset": "<string>",
"amount": "<string>",
"account": "<string>",
"direction": "in",
"symbol": "<string>",
"decimals": 123,
"chainId": 123,
"cluster": "<string>",
"standard": "native",
"name": "<string>",
"tokenId": "<string>",
"counterparty": "<string>",
"step": 2
}
],
"approvals": [
{
"account": "<string>",
"spender": "<string>",
"asset": "<string>",
"kind": "allowance",
"standard": "native",
"amount": "<string>",
"approved": true,
"unlimited": true,
"tokenId": "<string>",
"symbol": "<string>",
"name": "<string>",
"decimals": 123,
"chainId": 123,
"step": 2
}
],
"fees": [
{
"asset": "<string>",
"amount": "<string>",
"account": "<string>",
"symbol": "<string>",
"decimals": 123,
"chainId": 123,
"cluster": "<string>",
"kind": "<string>"
}
],
"warnings": [
"<string>"
],
"guards": [
{
"name": "<string>",
"status": "passed",
"message": "<string>"
}
],
"gas": {
"units": "<string>",
"priceWei": "<string>",
"nativeCost": "<string>"
},
"logs": [
{
"address": "<string>",
"topics": [
"<string>"
],
"data": "<string>",
"chainId": 123,
"cluster": "<string>",
"step": 2
}
]
}
}
]
},
"wallet_attempt": {
"attempt_id": "<string>",
"transport": "sign_and_broadcast",
"state": "awaiting_wallet",
"transaction_id": "<string>",
"failure_code": "<string>"
},
"action": {
"kind": "sign",
"payload": {
"kind": "evm_transaction",
"chain_id": 123,
"signer": "<string>",
"nonce": 123,
"transaction": {
"to": "<string>",
"value": "<string>",
"data": "<string>",
"gas_limit": 123,
"max_fee_per_gas": "<string>",
"max_priority_fee_per_gas": "<string>"
}
}
},
"supported_transports": [
"sign_and_broadcast"
]
}
]
}{
"error": "<unknown>"
}{
"error": "<unknown>"
}{
"error": "<unknown>"
}Agent
Get v1agentchat
GET
/
v1
/
agent
/
chat
/
{sessionId}
cURL
curl --request GET \
--url https://chat.aomi.dev/v1/agent/chat/{sessionId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://chat.aomi.dev/v1/agent/chat/{sessionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://chat.aomi.dev/v1/agent/chat/{sessionId}', 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://chat.aomi.dev/v1/agent/chat/{sessionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://chat.aomi.dev/v1/agent/chat/{sessionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chat.aomi.dev/v1/agent/chat/{sessionId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://chat.aomi.dev/v1/agent/chat/{sessionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"session_id": "<string>",
"cursor": "<string>",
"events": [
{
"event_id": "<string>",
"sequence": 2,
"turn_id": "<string>",
"occurred_at": 123,
"type": "message",
"sender": "user",
"content": "<string>",
"runtime_sequence": 1,
"message_key": "<string>",
"tool_call_id": "<string>",
"tool_result": "<array>",
"tool_name": "<string>",
"tool_arguments": "<unknown>",
"is_streaming": true
}
],
"has_more": true,
"commits": [
{
"version": 2,
"commit_id": "<string>",
"thread_id": "<string>",
"stage_id": "<string>",
"chain_family": "evm",
"chain_ref": "<string>",
"signer": "<string>",
"broadcaster": "wallet",
"state": "needs_signature",
"transaction_id": "<string>",
"failure_code": "<string>",
"batch": {
"batch_id": "<string>",
"index": 1,
"ordered_stage_ids": [
"<string>"
],
"ordered_commit_ids": [
"<string>"
],
"sources": [
{
"thread_id": "<string>",
"chain_family": "evm",
"chain_ref": "<string>",
"stage_id": "<string>",
"source_id": 1
}
],
"predecessor_commit_id": "<string>",
"review_digest": "<string>"
},
"review": {
"version": 2,
"revision": 2,
"digest": "<string>",
"request": {
"type": "execute_evm",
"transactions": [
{
"chain_id": 2,
"from": "<string>",
"to": "<string>",
"data": "<string>",
"label": "<string>",
"kind": "<string>",
"value": "<string>",
"gas": "<string>",
"protocol": "<string>",
"expires_at": 123,
"last_batch_status": "<string>",
"pending_tx_id": 123,
"current_lifecycle": "<string>",
"broadcaster": "wallet",
"fee_outcome": {
"kind": "flat"
}
}
],
"simulation": {
"status": "passed",
"balanceChanges": [
{
"asset": "<string>",
"amount": "<string>",
"account": "<string>",
"direction": "in",
"symbol": "<string>",
"decimals": 123,
"chainId": 123,
"cluster": "<string>",
"standard": "native",
"name": "<string>",
"tokenId": "<string>",
"counterparty": "<string>",
"step": 2
}
],
"approvals": [
{
"account": "<string>",
"spender": "<string>",
"asset": "<string>",
"kind": "allowance",
"standard": "native",
"amount": "<string>",
"approved": true,
"unlimited": true,
"tokenId": "<string>",
"symbol": "<string>",
"name": "<string>",
"decimals": 123,
"chainId": 123,
"step": 2
}
],
"fees": [
{
"asset": "<string>",
"amount": "<string>",
"account": "<string>",
"symbol": "<string>",
"decimals": 123,
"chainId": 123,
"cluster": "<string>",
"kind": "<string>"
}
],
"warnings": [
"<string>"
],
"guards": [
{
"name": "<string>",
"status": "passed",
"message": "<string>"
}
],
"gas": {
"units": "<string>",
"priceWei": "<string>",
"nativeCost": "<string>"
},
"logs": [
{
"address": "<string>",
"topics": [
"<string>"
],
"data": "<string>",
"chainId": 123,
"cluster": "<string>",
"step": 2
}
]
}
},
"legs": [
{
"type": "execute_evm",
"transactions": [
{
"chain_id": 2,
"from": "<string>",
"to": "<string>",
"data": "<string>",
"label": "<string>",
"kind": "<string>",
"value": "<string>",
"gas": "<string>",
"protocol": "<string>",
"expires_at": 123,
"last_batch_status": "<string>",
"pending_tx_id": 123,
"current_lifecycle": "<string>",
"broadcaster": "wallet",
"fee_outcome": {
"kind": "flat"
}
}
],
"simulation": {
"status": "passed",
"balanceChanges": [
{
"asset": "<string>",
"amount": "<string>",
"account": "<string>",
"direction": "in",
"symbol": "<string>",
"decimals": 123,
"chainId": 123,
"cluster": "<string>",
"standard": "native",
"name": "<string>",
"tokenId": "<string>",
"counterparty": "<string>",
"step": 2
}
],
"approvals": [
{
"account": "<string>",
"spender": "<string>",
"asset": "<string>",
"kind": "allowance",
"standard": "native",
"amount": "<string>",
"approved": true,
"unlimited": true,
"tokenId": "<string>",
"symbol": "<string>",
"name": "<string>",
"decimals": 123,
"chainId": 123,
"step": 2
}
],
"fees": [
{
"asset": "<string>",
"amount": "<string>",
"account": "<string>",
"symbol": "<string>",
"decimals": 123,
"chainId": 123,
"cluster": "<string>",
"kind": "<string>"
}
],
"warnings": [
"<string>"
],
"guards": [
{
"name": "<string>",
"status": "passed",
"message": "<string>"
}
],
"gas": {
"units": "<string>",
"priceWei": "<string>",
"nativeCost": "<string>"
},
"logs": [
{
"address": "<string>",
"topics": [
"<string>"
],
"data": "<string>",
"chainId": 123,
"cluster": "<string>",
"step": 2
}
]
}
}
]
},
"wallet_attempt": {
"attempt_id": "<string>",
"transport": "sign_and_broadcast",
"state": "awaiting_wallet",
"transaction_id": "<string>",
"failure_code": "<string>"
},
"action": {
"kind": "sign",
"payload": {
"kind": "evm_transaction",
"chain_id": 123,
"signer": "<string>",
"nonce": 123,
"transaction": {
"to": "<string>",
"value": "<string>",
"data": "<string>",
"gas_limit": 123,
"max_fee_per_gas": "<string>",
"max_priority_fee_per_gas": "<string>"
}
}
},
"supported_transports": [
"sign_and_broadcast"
]
}
]
}{
"error": "<unknown>"
}{
"error": "<unknown>"
}{
"error": "<unknown>"
}Authorizations
Better Auth OAuth 2.1 authorization-code/device grants. Access tokens are exact-resource bound; the Portal BFF verifies them and delegates a downscoped internal bearer.
Path Parameters
Maximum string length:
160Last modified on September 24, 2026
Was this page helpful?