Get Intent request by ID
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 AccessGET
/
workspaces
/
{workspaceId}
/
intents
/
{intentId}
Get Intent request by ID
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>"
}Response
OK
Current status of the intent order. See details
Available options:
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 Example:
"auction-in-progress"
Was this page helpful?