Owner Intents
Generate an owner intent for signing
Builds the exact payload the owner’s wallet must sign for one owner action and returns it as intent: {standard, payload}. Sign intent.payload unchanged with the wallet named by standard, then call submit-intent with the wallet’s output. agent_create creates a pending agent and returns its id.
POST
/
v1
/
generate-intent
Generate an owner intent for signing
curl --request POST \
--url https://api.agentsonintents.com/v1/generate-intent \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"type": "agent_create",
"name": "<string>",
"owner": {
"type": "near",
"account_id": "<string>",
"public_key": "<string>"
},
"policy": {
"frozen": true,
"actions": [],
"confidential": true,
"owner_approval": true,
"assets": "any",
"limits": {
"per_transaction": {},
"hourly": {},
"daily": {},
"monthly": {}
},
"max_actions_per_hour": 500000,
"destinations": {
"list": [
{
"action": "withdraw",
"chain": "<string>",
"address": "<string>",
"memo": "<string>"
}
]
},
"budget": {
"daily_usd": "<string>",
"weekly_usd": "<string>",
"monthly_usd": "<string>"
},
"timelock_ms": 1296000000
},
"external_user_id": "<string>"
}
'import requests
url = "https://api.agentsonintents.com/v1/generate-intent"
payload = {
"type": "agent_create",
"name": "<string>",
"owner": {
"type": "near",
"account_id": "<string>",
"public_key": "<string>"
},
"policy": {
"frozen": True,
"actions": [],
"confidential": True,
"owner_approval": True,
"assets": "any",
"limits": {
"per_transaction": {},
"hourly": {},
"daily": {},
"monthly": {}
},
"max_actions_per_hour": 500000,
"destinations": { "list": [
{
"action": "withdraw",
"chain": "<string>",
"address": "<string>",
"memo": "<string>"
}
] },
"budget": {
"daily_usd": "<string>",
"weekly_usd": "<string>",
"monthly_usd": "<string>"
},
"timelock_ms": 1296000000
},
"external_user_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'agent_create',
name: '<string>',
owner: {type: 'near', account_id: '<string>', public_key: '<string>'},
policy: {
frozen: true,
actions: [],
confidential: true,
owner_approval: true,
assets: 'any',
limits: {per_transaction: {}, hourly: {}, daily: {}, monthly: {}},
max_actions_per_hour: 500000,
destinations: {
list: [{action: 'withdraw', chain: '<string>', address: '<string>', memo: '<string>'}]
},
budget: {daily_usd: '<string>', weekly_usd: '<string>', monthly_usd: '<string>'},
timelock_ms: 1296000000
},
external_user_id: '<string>'
})
};
fetch('https://api.agentsonintents.com/v1/generate-intent', 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.agentsonintents.com/v1/generate-intent",
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([
'type' => 'agent_create',
'name' => '<string>',
'owner' => [
'type' => 'near',
'account_id' => '<string>',
'public_key' => '<string>'
],
'policy' => [
'frozen' => true,
'actions' => [
],
'confidential' => true,
'owner_approval' => true,
'assets' => 'any',
'limits' => [
'per_transaction' => [
],
'hourly' => [
],
'daily' => [
],
'monthly' => [
]
],
'max_actions_per_hour' => 500000,
'destinations' => [
'list' => [
[
'action' => 'withdraw',
'chain' => '<string>',
'address' => '<string>',
'memo' => '<string>'
]
]
],
'budget' => [
'daily_usd' => '<string>',
'weekly_usd' => '<string>',
'monthly_usd' => '<string>'
],
'timelock_ms' => 1296000000
],
'external_user_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-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.agentsonintents.com/v1/generate-intent"
payload := strings.NewReader("{\n \"type\": \"agent_create\",\n \"name\": \"<string>\",\n \"owner\": {\n \"type\": \"near\",\n \"account_id\": \"<string>\",\n \"public_key\": \"<string>\"\n },\n \"policy\": {\n \"frozen\": true,\n \"actions\": [],\n \"confidential\": true,\n \"owner_approval\": true,\n \"assets\": \"any\",\n \"limits\": {\n \"per_transaction\": {},\n \"hourly\": {},\n \"daily\": {},\n \"monthly\": {}\n },\n \"max_actions_per_hour\": 500000,\n \"destinations\": {\n \"list\": [\n {\n \"action\": \"withdraw\",\n \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"memo\": \"<string>\"\n }\n ]\n },\n \"budget\": {\n \"daily_usd\": \"<string>\",\n \"weekly_usd\": \"<string>\",\n \"monthly_usd\": \"<string>\"\n },\n \"timelock_ms\": 1296000000\n },\n \"external_user_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.agentsonintents.com/v1/generate-intent")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"agent_create\",\n \"name\": \"<string>\",\n \"owner\": {\n \"type\": \"near\",\n \"account_id\": \"<string>\",\n \"public_key\": \"<string>\"\n },\n \"policy\": {\n \"frozen\": true,\n \"actions\": [],\n \"confidential\": true,\n \"owner_approval\": true,\n \"assets\": \"any\",\n \"limits\": {\n \"per_transaction\": {},\n \"hourly\": {},\n \"daily\": {},\n \"monthly\": {}\n },\n \"max_actions_per_hour\": 500000,\n \"destinations\": {\n \"list\": [\n {\n \"action\": \"withdraw\",\n \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"memo\": \"<string>\"\n }\n ]\n },\n \"budget\": {\n \"daily_usd\": \"<string>\",\n \"weekly_usd\": \"<string>\",\n \"monthly_usd\": \"<string>\"\n },\n \"timelock_ms\": 1296000000\n },\n \"external_user_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentsonintents.com/v1/generate-intent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"agent_create\",\n \"name\": \"<string>\",\n \"owner\": {\n \"type\": \"near\",\n \"account_id\": \"<string>\",\n \"public_key\": \"<string>\"\n },\n \"policy\": {\n \"frozen\": true,\n \"actions\": [],\n \"confidential\": true,\n \"owner_approval\": true,\n \"assets\": \"any\",\n \"limits\": {\n \"per_transaction\": {},\n \"hourly\": {},\n \"daily\": {},\n \"monthly\": {}\n },\n \"max_actions_per_hour\": 500000,\n \"destinations\": {\n \"list\": [\n {\n \"action\": \"withdraw\",\n \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"memo\": \"<string>\"\n }\n ]\n },\n \"budget\": {\n \"daily_usd\": \"<string>\",\n \"weekly_usd\": \"<string>\",\n \"monthly_usd\": \"<string>\"\n },\n \"timelock_ms\": 1296000000\n },\n \"external_user_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"correlation_id": "<string>",
"type": "agent_create",
"agent_id": "<string>",
"status": "PENDING_SIGNATURE",
"expires_at": "2023-11-07T05:31:56Z",
"signer": {
"type": "near",
"account_id": "<string>",
"public_key": "<string>"
},
"intent": {
"standard": "nep413",
"payload": {
"message": "<string>",
"recipient": "<string>",
"nonce": "<string>"
}
},
"preview": {
"summary": "<string>",
"revision": 4503599627370495,
"previous_revision": 4503599627370495,
"policy_hash": "<string>",
"policy": {
"frozen": true,
"actions": [
"swap"
],
"confidential": true,
"owner_approval": true,
"assets": "any",
"limits": {
"per_transaction": {},
"hourly": {},
"daily": {},
"monthly": {}
},
"max_actions_per_hour": 500000,
"destinations": {
"mode": "any",
"list": [
{
"action": "withdraw",
"chain": "<string>",
"address": "<string>",
"memo": "<string>"
}
]
},
"budget": {
"daily_usd": "<string>",
"weekly_usd": "<string>",
"monthly_usd": "<string>"
},
"timelock_ms": 1296000000,
"schedule": {
"mode": "only",
"time_zone": "<string>",
"windows": [
{
"days": [
"mon"
],
"start": "<string>",
"end": "<string>"
}
]
},
"native": {
"near": {
"sign_message": [
"<string>"
],
"transfer": true,
"call": [
"<string>"
]
},
"evm": {
"sign_typed_data": [
{
"name": "<string>",
"version": "<string>",
"chain_id": 4503599627370495,
"verifying_contract": "<string>",
"salt": "<string>",
"primary_types": [
"<string>"
]
}
],
"sign_message": true,
"sign_transaction": true
},
"solana": {
"sign_message": true,
"sign_transaction": true
}
}
},
"deletion": {
"near_account_id": "<string>",
"beneficiary": "<string>",
"native_balance": "<string>",
"public": [
{
"asset_id": "<string>",
"symbol": "<string>",
"decimals": 18,
"blockchain": "<string>",
"price": 1,
"price_updated_at": "<string>",
"price_expires_at": "<string>",
"balance_raw": "<string>",
"balance": "<string>"
}
],
"confidential": [
{
"asset_id": "<string>",
"symbol": "<string>",
"decimals": 18,
"blockchain": "<string>",
"price": 1,
"price_updated_at": "<string>",
"price_expires_at": "<string>",
"balance_raw": "<string>",
"balance": "<string>"
}
],
"assets_lost": true,
"retirement": "provider_delete"
},
"approval": {
"approval_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"request_type": "<string>",
"request_hash": "<string>",
"verdict": "approve"
}
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}Authorizations
Headers
Stable key for one logical request. Replays with the same key and body return the original result; a different body is refused with idempotency_conflict.
Required string length:
8 - 128Pattern:
^[A-Za-z0-9._:-]+$Body
application/json
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
Response
Success
Pattern:
^intent_[A-Za-z0-9_-]{43}$Available options:
agent_create, policy_update, agent_freeze, agent_unfreeze, grant_issue, grant_revoke, execution_cancel, agent_archive, agent_restore, agent_delete, approval_vote Pattern:
^[0-9a-f]{64}$Allowed value:
"PENDING_SIGNATURE"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))$- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Generate an owner intent for signing
curl --request POST \
--url https://api.agentsonintents.com/v1/generate-intent \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"type": "agent_create",
"name": "<string>",
"owner": {
"type": "near",
"account_id": "<string>",
"public_key": "<string>"
},
"policy": {
"frozen": true,
"actions": [],
"confidential": true,
"owner_approval": true,
"assets": "any",
"limits": {
"per_transaction": {},
"hourly": {},
"daily": {},
"monthly": {}
},
"max_actions_per_hour": 500000,
"destinations": {
"list": [
{
"action": "withdraw",
"chain": "<string>",
"address": "<string>",
"memo": "<string>"
}
]
},
"budget": {
"daily_usd": "<string>",
"weekly_usd": "<string>",
"monthly_usd": "<string>"
},
"timelock_ms": 1296000000
},
"external_user_id": "<string>"
}
'import requests
url = "https://api.agentsonintents.com/v1/generate-intent"
payload = {
"type": "agent_create",
"name": "<string>",
"owner": {
"type": "near",
"account_id": "<string>",
"public_key": "<string>"
},
"policy": {
"frozen": True,
"actions": [],
"confidential": True,
"owner_approval": True,
"assets": "any",
"limits": {
"per_transaction": {},
"hourly": {},
"daily": {},
"monthly": {}
},
"max_actions_per_hour": 500000,
"destinations": { "list": [
{
"action": "withdraw",
"chain": "<string>",
"address": "<string>",
"memo": "<string>"
}
] },
"budget": {
"daily_usd": "<string>",
"weekly_usd": "<string>",
"monthly_usd": "<string>"
},
"timelock_ms": 1296000000
},
"external_user_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'agent_create',
name: '<string>',
owner: {type: 'near', account_id: '<string>', public_key: '<string>'},
policy: {
frozen: true,
actions: [],
confidential: true,
owner_approval: true,
assets: 'any',
limits: {per_transaction: {}, hourly: {}, daily: {}, monthly: {}},
max_actions_per_hour: 500000,
destinations: {
list: [{action: 'withdraw', chain: '<string>', address: '<string>', memo: '<string>'}]
},
budget: {daily_usd: '<string>', weekly_usd: '<string>', monthly_usd: '<string>'},
timelock_ms: 1296000000
},
external_user_id: '<string>'
})
};
fetch('https://api.agentsonintents.com/v1/generate-intent', 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.agentsonintents.com/v1/generate-intent",
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([
'type' => 'agent_create',
'name' => '<string>',
'owner' => [
'type' => 'near',
'account_id' => '<string>',
'public_key' => '<string>'
],
'policy' => [
'frozen' => true,
'actions' => [
],
'confidential' => true,
'owner_approval' => true,
'assets' => 'any',
'limits' => [
'per_transaction' => [
],
'hourly' => [
],
'daily' => [
],
'monthly' => [
]
],
'max_actions_per_hour' => 500000,
'destinations' => [
'list' => [
[
'action' => 'withdraw',
'chain' => '<string>',
'address' => '<string>',
'memo' => '<string>'
]
]
],
'budget' => [
'daily_usd' => '<string>',
'weekly_usd' => '<string>',
'monthly_usd' => '<string>'
],
'timelock_ms' => 1296000000
],
'external_user_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-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.agentsonintents.com/v1/generate-intent"
payload := strings.NewReader("{\n \"type\": \"agent_create\",\n \"name\": \"<string>\",\n \"owner\": {\n \"type\": \"near\",\n \"account_id\": \"<string>\",\n \"public_key\": \"<string>\"\n },\n \"policy\": {\n \"frozen\": true,\n \"actions\": [],\n \"confidential\": true,\n \"owner_approval\": true,\n \"assets\": \"any\",\n \"limits\": {\n \"per_transaction\": {},\n \"hourly\": {},\n \"daily\": {},\n \"monthly\": {}\n },\n \"max_actions_per_hour\": 500000,\n \"destinations\": {\n \"list\": [\n {\n \"action\": \"withdraw\",\n \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"memo\": \"<string>\"\n }\n ]\n },\n \"budget\": {\n \"daily_usd\": \"<string>\",\n \"weekly_usd\": \"<string>\",\n \"monthly_usd\": \"<string>\"\n },\n \"timelock_ms\": 1296000000\n },\n \"external_user_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.agentsonintents.com/v1/generate-intent")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"agent_create\",\n \"name\": \"<string>\",\n \"owner\": {\n \"type\": \"near\",\n \"account_id\": \"<string>\",\n \"public_key\": \"<string>\"\n },\n \"policy\": {\n \"frozen\": true,\n \"actions\": [],\n \"confidential\": true,\n \"owner_approval\": true,\n \"assets\": \"any\",\n \"limits\": {\n \"per_transaction\": {},\n \"hourly\": {},\n \"daily\": {},\n \"monthly\": {}\n },\n \"max_actions_per_hour\": 500000,\n \"destinations\": {\n \"list\": [\n {\n \"action\": \"withdraw\",\n \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"memo\": \"<string>\"\n }\n ]\n },\n \"budget\": {\n \"daily_usd\": \"<string>\",\n \"weekly_usd\": \"<string>\",\n \"monthly_usd\": \"<string>\"\n },\n \"timelock_ms\": 1296000000\n },\n \"external_user_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentsonintents.com/v1/generate-intent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"agent_create\",\n \"name\": \"<string>\",\n \"owner\": {\n \"type\": \"near\",\n \"account_id\": \"<string>\",\n \"public_key\": \"<string>\"\n },\n \"policy\": {\n \"frozen\": true,\n \"actions\": [],\n \"confidential\": true,\n \"owner_approval\": true,\n \"assets\": \"any\",\n \"limits\": {\n \"per_transaction\": {},\n \"hourly\": {},\n \"daily\": {},\n \"monthly\": {}\n },\n \"max_actions_per_hour\": 500000,\n \"destinations\": {\n \"list\": [\n {\n \"action\": \"withdraw\",\n \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"memo\": \"<string>\"\n }\n ]\n },\n \"budget\": {\n \"daily_usd\": \"<string>\",\n \"weekly_usd\": \"<string>\",\n \"monthly_usd\": \"<string>\"\n },\n \"timelock_ms\": 1296000000\n },\n \"external_user_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"correlation_id": "<string>",
"type": "agent_create",
"agent_id": "<string>",
"status": "PENDING_SIGNATURE",
"expires_at": "2023-11-07T05:31:56Z",
"signer": {
"type": "near",
"account_id": "<string>",
"public_key": "<string>"
},
"intent": {
"standard": "nep413",
"payload": {
"message": "<string>",
"recipient": "<string>",
"nonce": "<string>"
}
},
"preview": {
"summary": "<string>",
"revision": 4503599627370495,
"previous_revision": 4503599627370495,
"policy_hash": "<string>",
"policy": {
"frozen": true,
"actions": [
"swap"
],
"confidential": true,
"owner_approval": true,
"assets": "any",
"limits": {
"per_transaction": {},
"hourly": {},
"daily": {},
"monthly": {}
},
"max_actions_per_hour": 500000,
"destinations": {
"mode": "any",
"list": [
{
"action": "withdraw",
"chain": "<string>",
"address": "<string>",
"memo": "<string>"
}
]
},
"budget": {
"daily_usd": "<string>",
"weekly_usd": "<string>",
"monthly_usd": "<string>"
},
"timelock_ms": 1296000000,
"schedule": {
"mode": "only",
"time_zone": "<string>",
"windows": [
{
"days": [
"mon"
],
"start": "<string>",
"end": "<string>"
}
]
},
"native": {
"near": {
"sign_message": [
"<string>"
],
"transfer": true,
"call": [
"<string>"
]
},
"evm": {
"sign_typed_data": [
{
"name": "<string>",
"version": "<string>",
"chain_id": 4503599627370495,
"verifying_contract": "<string>",
"salt": "<string>",
"primary_types": [
"<string>"
]
}
],
"sign_message": true,
"sign_transaction": true
},
"solana": {
"sign_message": true,
"sign_transaction": true
}
}
},
"deletion": {
"near_account_id": "<string>",
"beneficiary": "<string>",
"native_balance": "<string>",
"public": [
{
"asset_id": "<string>",
"symbol": "<string>",
"decimals": 18,
"blockchain": "<string>",
"price": 1,
"price_updated_at": "<string>",
"price_expires_at": "<string>",
"balance_raw": "<string>",
"balance": "<string>"
}
],
"confidential": [
{
"asset_id": "<string>",
"symbol": "<string>",
"decimals": 18,
"blockchain": "<string>",
"price": 1,
"price_updated_at": "<string>",
"price_expires_at": "<string>",
"balance_raw": "<string>",
"balance": "<string>"
}
],
"assets_lost": true,
"retirement": "provider_delete"
},
"approval": {
"approval_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"request_type": "<string>",
"request_hash": "<string>",
"verdict": "approve"
}
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"layer": "request",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
},
"meta": {
"retryable": true,
"available_at": "2023-11-07T05:31:56Z",
"min_amount": "<string>",
"available_amount": "<string>"
}
}
],
"meta": {
"request_id": "<string>"
}
}