Get the Credential Token (CT) for a credential, if launched
curl --request GET \
--url https://mag3nt.com/api/cards/{id}/crt \
--header 'Authorization: <api-key>'import requests
url = "https://mag3nt.com/api/cards/{id}/crt"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://mag3nt.com/api/cards/{id}/crt', 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/cards/{id}/crt",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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"
"net/http"
"io"
)
func main() {
url := "https://mag3nt.com/api/cards/{id}/crt"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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/cards/{id}/crt")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/cards/{id}/crt")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"crt": {
"id": "crt_mag3nt_abc123",
"cardId": "<string>",
"creator": "<string>",
"tokenAddress": "<string>",
"name": "<string>",
"symbol": "<string>",
"supply": 123,
"decimals": 123,
"revenueShareBps": 123,
"allocations": [
{
"to": "<string>",
"amount": 123
}
],
"minter": "<string>",
"status": "PENDING_DEPLOY",
"deployTx": "<string>"
},
"deployPhase": "live",
"crtAvailable": true,
"explorerBase": "<string>",
"explorerUrl": "<string>",
"explorerTx": "<string>",
"credentialExplorerUrl": "<string>",
"launchFee": {
"asset": "<string>",
"token": "<string>",
"network": "<string>",
"amount": 123,
"account": "<string>",
"balance": 123,
"sufficient": true,
"treasury": "<string>",
"spender": "<string>"
},
"holder": "<string>",
"holderBalance": 123,
"decimals": 123,
"network": "<string>",
"cdpNetwork": "<string>",
"lockPending": true,
"sendable": true,
"vestingStreamUrl": "<string>"
}Credential Tokens
Get the Credential Token (CT) for a credential, if launched
Also returns deploy progress, the owner’s own MAG3NT launch-fee balance/allowance context, on-chain holder balance of the CRT, and whether tokenizing is currently available on this network.
GET
/
api
/
cards
/
{id}
/
crt
Get the Credential Token (CT) for a credential, if launched
curl --request GET \
--url https://mag3nt.com/api/cards/{id}/crt \
--header 'Authorization: <api-key>'import requests
url = "https://mag3nt.com/api/cards/{id}/crt"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://mag3nt.com/api/cards/{id}/crt', 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/cards/{id}/crt",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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"
"net/http"
"io"
)
func main() {
url := "https://mag3nt.com/api/cards/{id}/crt"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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/cards/{id}/crt")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/cards/{id}/crt")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"crt": {
"id": "crt_mag3nt_abc123",
"cardId": "<string>",
"creator": "<string>",
"tokenAddress": "<string>",
"name": "<string>",
"symbol": "<string>",
"supply": 123,
"decimals": 123,
"revenueShareBps": 123,
"allocations": [
{
"to": "<string>",
"amount": 123
}
],
"minter": "<string>",
"status": "PENDING_DEPLOY",
"deployTx": "<string>"
},
"deployPhase": "live",
"crtAvailable": true,
"explorerBase": "<string>",
"explorerUrl": "<string>",
"explorerTx": "<string>",
"credentialExplorerUrl": "<string>",
"launchFee": {
"asset": "<string>",
"token": "<string>",
"network": "<string>",
"amount": 123,
"account": "<string>",
"balance": 123,
"sufficient": true,
"treasury": "<string>",
"spender": "<string>"
},
"holder": "<string>",
"holderBalance": 123,
"decimals": 123,
"network": "<string>",
"cdpNetwork": "<string>",
"lockPending": true,
"sendable": true,
"vestingStreamUrl": "<string>"
}Authorizations
API key prefixed with 'Bearer sx_live_...'
Path Parameters
Response
200 - application/json
CRT detail (crt is null if none has been launched yet)
A Credential Token (CT) - a fixed-supply B20 Asset claim on a credential's future revenue.
Show child attributes
Show child attributes
Available options:
live, deploying, retrying Show child attributes
Show child attributes