Launch a Credential Token for an owned credential
curl --request POST \
--url https://mag3nt.com/api/cards/{id}/launch-crt \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"symbol": "<string>",
"supply": 123,
"revenue_share_bps": 123,
"allocations": [
{
"to": "<string>",
"amount": 123
}
],
"decimals": 18,
"fee_approve_tx": "<string>"
}
'import requests
url = "https://mag3nt.com/api/cards/{id}/launch-crt"
payload = {
"name": "<string>",
"symbol": "<string>",
"supply": 123,
"revenue_share_bps": 123,
"allocations": [
{
"to": "<string>",
"amount": 123
}
],
"decimals": 18,
"fee_approve_tx": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
symbol: '<string>',
supply: 123,
revenue_share_bps: 123,
allocations: [{to: '<string>', amount: 123}],
decimals: 18,
fee_approve_tx: '<string>'
})
};
fetch('https://mag3nt.com/api/cards/{id}/launch-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}/launch-crt",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'symbol' => '<string>',
'supply' => 123,
'revenue_share_bps' => 123,
'allocations' => [
[
'to' => '<string>',
'amount' => 123
]
],
'decimals' => 18,
'fee_approve_tx' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mag3nt.com/api/cards/{id}/launch-crt"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"supply\": 123,\n \"revenue_share_bps\": 123,\n \"allocations\": [\n {\n \"to\": \"<string>\",\n \"amount\": 123\n }\n ],\n \"decimals\": 18,\n \"fee_approve_tx\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mag3nt.com/api/cards/{id}/launch-crt")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"supply\": 123,\n \"revenue_share_bps\": 123,\n \"allocations\": [\n {\n \"to\": \"<string>\",\n \"amount\": 123\n }\n ],\n \"decimals\": 18,\n \"fee_approve_tx\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/cards/{id}/launch-crt")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"supply\": 123,\n \"revenue_share_bps\": 123,\n \"allocations\": [\n {\n \"to\": \"<string>\",\n \"amount\": 123\n }\n ],\n \"decimals\": 18,\n \"fee_approve_tx\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"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>",
"deployTx": "<string>"
}
}{
"error": "Card not found"
}{
"error": "<string>",
"code": "INSUFFICIENT_MAG3NT"
}{
"error": "Card not found"
}{
"error": "Card not found"
}{
"error": "<string>",
"code": "<string>"
}Credential Tokens
Launch a Credential Token for an owned credential
Mints a fixed-supply B20 Asset representing a claim on the credential’s future revenue. Charges the MAG3NT launch fee from the owner’s own wallet (never the credential’s holder). One CRT per credential; a second launch returns the existing one. Deploys on-chain synchronously when possible, else leaves it PENDING_DEPLOY for the deploy cron to retry.
POST
/
api
/
cards
/
{id}
/
launch-crt
Launch a Credential Token for an owned credential
curl --request POST \
--url https://mag3nt.com/api/cards/{id}/launch-crt \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"symbol": "<string>",
"supply": 123,
"revenue_share_bps": 123,
"allocations": [
{
"to": "<string>",
"amount": 123
}
],
"decimals": 18,
"fee_approve_tx": "<string>"
}
'import requests
url = "https://mag3nt.com/api/cards/{id}/launch-crt"
payload = {
"name": "<string>",
"symbol": "<string>",
"supply": 123,
"revenue_share_bps": 123,
"allocations": [
{
"to": "<string>",
"amount": 123
}
],
"decimals": 18,
"fee_approve_tx": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
symbol: '<string>',
supply: 123,
revenue_share_bps: 123,
allocations: [{to: '<string>', amount: 123}],
decimals: 18,
fee_approve_tx: '<string>'
})
};
fetch('https://mag3nt.com/api/cards/{id}/launch-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}/launch-crt",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'symbol' => '<string>',
'supply' => 123,
'revenue_share_bps' => 123,
'allocations' => [
[
'to' => '<string>',
'amount' => 123
]
],
'decimals' => 18,
'fee_approve_tx' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mag3nt.com/api/cards/{id}/launch-crt"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"supply\": 123,\n \"revenue_share_bps\": 123,\n \"allocations\": [\n {\n \"to\": \"<string>\",\n \"amount\": 123\n }\n ],\n \"decimals\": 18,\n \"fee_approve_tx\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mag3nt.com/api/cards/{id}/launch-crt")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"supply\": 123,\n \"revenue_share_bps\": 123,\n \"allocations\": [\n {\n \"to\": \"<string>\",\n \"amount\": 123\n }\n ],\n \"decimals\": 18,\n \"fee_approve_tx\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/cards/{id}/launch-crt")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"symbol\": \"<string>\",\n \"supply\": 123,\n \"revenue_share_bps\": 123,\n \"allocations\": [\n {\n \"to\": \"<string>\",\n \"amount\": 123\n }\n ],\n \"decimals\": 18,\n \"fee_approve_tx\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"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>",
"deployTx": "<string>"
}
}{
"error": "Card not found"
}{
"error": "<string>",
"code": "INSUFFICIENT_MAG3NT"
}{
"error": "Card not found"
}{
"error": "Card not found"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
API key prefixed with 'Bearer sx_live_...'
Path Parameters
Body
application/json
Basis points of future revenue routed to CRT holders, capped by an operator-tunable maximum.
Must sum exactly to supply. Defaults to a single allocation of the full supply to "creator".
Show child attributes
Show child attributes
On-chain approve tx hash authorizing the treasury to pull the MAG3NT launch fee, for external (non-managed) wallets.
Get the Credential Token (CT) for a credential, if launchedPrepare an unsigned Uniswap V4 fair-launch listing for a CRT
⌘I