Get platform status, supported protocols, and capabilities
curl --request GET \
--url https://mag3nt.com/api/statusimport requests
url = "https://mag3nt.com/api/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mag3nt.com/api/status', 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://mag3nt.com/api/status",
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://mag3nt.com/api/status"
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://mag3nt.com/api/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/status")
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{
"platform": "mag3nt",
"version": "0.5.0",
"model": "bidirectional",
"protocols": {
"x402": {
"status": "<string>",
"direction": "<string>",
"spend": "/api/pay",
"receive": "<string>",
"discovery": "<string>",
"networks": [
"<string>"
],
"schemes": [
"<string>"
]
},
"ap2": {
"status": "<string>",
"direction": "<string>",
"spend": "<string>",
"receive": "<string>"
},
"mpp": {
"status": "<string>",
"direction": "<string>",
"spend": "/api/pay",
"receive": "<string>",
"capabilities": [
"<string>"
]
},
"settlement": {
"status": "<string>",
"fee_model": "<string>",
"engine": "<string>",
"supported_networks": [
"<string>"
]
}
},
"card_controls": {
"mcc_locks": true,
"single_use": true,
"freeze_unfreeze": true,
"spending_limits": true
}
}Status
Get platform status, supported protocols, and capabilities
GET
/
api
/
status
Get platform status, supported protocols, and capabilities
curl --request GET \
--url https://mag3nt.com/api/statusimport requests
url = "https://mag3nt.com/api/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mag3nt.com/api/status', 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://mag3nt.com/api/status",
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://mag3nt.com/api/status"
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://mag3nt.com/api/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/status")
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{
"platform": "mag3nt",
"version": "0.5.0",
"model": "bidirectional",
"protocols": {
"x402": {
"status": "<string>",
"direction": "<string>",
"spend": "/api/pay",
"receive": "<string>",
"discovery": "<string>",
"networks": [
"<string>"
],
"schemes": [
"<string>"
]
},
"ap2": {
"status": "<string>",
"direction": "<string>",
"spend": "<string>",
"receive": "<string>"
},
"mpp": {
"status": "<string>",
"direction": "<string>",
"spend": "/api/pay",
"receive": "<string>",
"capabilities": [
"<string>"
]
},
"settlement": {
"status": "<string>",
"fee_model": "<string>",
"engine": "<string>",
"supported_networks": [
"<string>"
]
}
},
"card_controls": {
"mcc_locks": true,
"single_use": true,
"freeze_unfreeze": true,
"spending_limits": true
}
}⌘I