List bridges
curl --request GET \
--url https://api.daya.co/v1/bridgesimport requests
url = "https://api.daya.co/v1/bridges"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.daya.co/v1/bridges', 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.daya.co/v1/bridges",
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.daya.co/v1/bridges"
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.daya.co/v1/bridges")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/v1/bridges")
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_bodyBridges
List bridges
List the authenticated merchant’s bridge requests with filters and pagination
GET
/
v1
/
bridges
List bridges
curl --request GET \
--url https://api.daya.co/v1/bridgesimport requests
url = "https://api.daya.co/v1/bridges"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.daya.co/v1/bridges', 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.daya.co/v1/bridges",
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.daya.co/v1/bridges"
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.daya.co/v1/bridges")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/v1/bridges")
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_bodyUse an active merchant API key with
Send one value per parameter and omit unused filters. Empty, repeated, or invalid filter values return
Authentication and access errors use
read scope. Returns your successfully created bridge requests, newest first.
Query parameters
| Parameter | Values and behavior |
|---|---|
page | Positive integer. Default 1. A page above the last nonempty page returns 400. |
limit | Positive integer. Default 50. Values above 200 are reduced to 200. |
asset | Asset code, currently USDT. Omit to return all bridge requests. |
status | ACTIVE before expires_at and EXPIRED from that deadline, including funded requests. |
deposit_chain | POLYGON, BSC, SOLANA, or APTOS. |
destination_chain | POLYGON, BSC, SOLANA, or APTOS. |
from | RFC3339 creation time, inclusive. |
to | RFC3339 creation time, exclusive. |
400.
curl --url 'https://api.daya.co/v1/bridges?asset=USDT&status=ACTIVE&page=1&limit=50' \
--header 'X-Api-Key: YOUR_API_KEY'
Response
Returns200 with data, page, limit, total, and total_pages. Each data item is a full bridge resource. Counts reflect the selected filters.
Empty result
{
"data": [],
"page": 1,
"limit": 50,
"total": 0,
"total_pages": 0
}
401 and 403. Internal failures use 500. To track payouts or refunds, list a request’s deposits; request status alone does not describe them.