curl --request GET \
--url https://api.bron.org/workspaces/{workspaceId}/intents/{intentId}import requests
url = "https://api.bron.org/workspaces/{workspaceId}/intents/{intentId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bron.org/workspaces/{workspaceId}/intents/{intentId}', 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.bron.org/workspaces/{workspaceId}/intents/{intentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.bron.org/workspaces/{workspaceId}/intents/{intentId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bron.org/workspaces/{workspaceId}/intents/{intentId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/workspaces/{workspaceId}/intents/{intentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"createdAt": "1794678400000",
"fromAssetId": "2",
"intentId": "rzsdziq1iknnzszmmtqz",
"status": "auction-in-progress",
"toAssetId": "5002",
"updatedAt": "1794764800000",
"expiresAt": "1758188560749",
"fromAmount": "100.50",
"fromTokenId": "<string>",
"price": "101.2312",
"toAmount": "0.0025",
"toTokenId": "<string>",
"userSettlementDeadline": "1759188567456"
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}Get Intent request by ID
Returns the details of a single intents with price and status.
API Key permissions: View only, Transaction Operator, Full Accesscurl --request GET \
--url https://api.bron.org/workspaces/{workspaceId}/intents/{intentId}import requests
url = "https://api.bron.org/workspaces/{workspaceId}/intents/{intentId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bron.org/workspaces/{workspaceId}/intents/{intentId}', 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.bron.org/workspaces/{workspaceId}/intents/{intentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.bron.org/workspaces/{workspaceId}/intents/{intentId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bron.org/workspaces/{workspaceId}/intents/{intentId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/workspaces/{workspaceId}/intents/{intentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"createdAt": "1794678400000",
"fromAssetId": "2",
"intentId": "rzsdziq1iknnzszmmtqz",
"status": "auction-in-progress",
"toAssetId": "5002",
"updatedAt": "1794764800000",
"expiresAt": "1758188560749",
"fromAmount": "100.50",
"fromTokenId": "<string>",
"price": "101.2312",
"toAmount": "0.0025",
"toTokenId": "<string>",
"userSettlementDeadline": "1759188567456"
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}Response
OK
Creation timestamp of the intent (epoch millis)
"1794678400000"
ID of the asset being sent
"2"
Unique user-generated ID of the intent
"rzsdziq1iknnzszmmtqz"
Current status of the intent order. See details
not-exist, user-initiated, auction-in-progress, wait-for-user-tx, wait-for-oracle-confirm-user-tx, wait-for-solver-tx, wait-for-oracle-confirm-solver-tx, completed, liquidated, cancelled "auction-in-progress"
ID of the asset to receive
"5002"
Last update timestamp of the intent (epoch millis)
"1794764800000"
Expiration timestamp of the intent (epoch millis)
"1758188560749"
Amount of the from-asset specified by the user
"100.50"
Token ID of the from-asset for a tokenized asset (NFT or Bron Lock)
Execution price of the swap (quote/base)
"101.2312"
Amount of the to-asset requested or estimated
"0.0025"
Token ID of the to-asset for a tokenized asset (NFT or Bron Lock)
Deadline timestamp for user settlement (epoch millis)
"1759188567456"
Was this page helpful?
