GET Token Templates
curl --request GET \
--url https://api.bitski.com/v1/apps/{appId}/token-templatesimport requests
url = "https://api.bitski.com/v1/apps/{appId}/token-templates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bitski.com/v1/apps/{appId}/token-templates', 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.bitski.com/v1/apps/{appId}/token-templates",
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.bitski.com/v1/apps/{appId}/token-templates"
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.bitski.com/v1/apps/{appId}/token-templates")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bitski.com/v1/apps/{appId}/token-templates")
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{
"tokenTemplates": [
{
"animationUrl": null,
"contractId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"defaultMetadata": {},
"delayMinting": true,
"description": "A great token",
"gatedContent": [],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"isDropLink": true,
"liveAt": "2023-04-26T19:50:00.499Z",
"maxTokens": 100,
"name": "Bird NFT",
"namingTemplate": "DEFAULT",
"payouts": {},
"previewAt": "2023-04-26T19:50:00.499Z",
"prices": [
{
"currency": "USD",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"price": "200.00"
}
],
"published": true,
"salesEndAt": "2023-04-26T19:50:00.499Z",
"totalTokens": 57
}
]
}
Minting APIs
GET Token Templates
List token templates
GET
/
v1
/
apps
/
{appId}
/
token-templates
GET Token Templates
curl --request GET \
--url https://api.bitski.com/v1/apps/{appId}/token-templatesimport requests
url = "https://api.bitski.com/v1/apps/{appId}/token-templates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bitski.com/v1/apps/{appId}/token-templates', 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.bitski.com/v1/apps/{appId}/token-templates",
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.bitski.com/v1/apps/{appId}/token-templates"
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.bitski.com/v1/apps/{appId}/token-templates")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bitski.com/v1/apps/{appId}/token-templates")
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{
"tokenTemplates": [
{
"animationUrl": null,
"contractId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"defaultMetadata": {},
"delayMinting": true,
"description": "A great token",
"gatedContent": [],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"isDropLink": true,
"liveAt": "2023-04-26T19:50:00.499Z",
"maxTokens": 100,
"name": "Bird NFT",
"namingTemplate": "DEFAULT",
"payouts": {},
"previewAt": "2023-04-26T19:50:00.499Z",
"prices": [
{
"currency": "USD",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"price": "200.00"
}
],
"published": true,
"salesEndAt": "2023-04-26T19:50:00.499Z",
"totalTokens": 57
}
]
}
This API requires the
apps scopePath
string
required
Your Bitski Application ID
Parameters
number
The total number of results to include per page.
number
The total number of previous results to offset for this page.
boolean
Optionally filter out templates for drop links.
Response
Token Template object
required
{
"tokenTemplates": [
{
"animationUrl": null,
"contractId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"defaultMetadata": {},
"delayMinting": true,
"description": "A great token",
"gatedContent": [],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"isDropLink": true,
"liveAt": "2023-04-26T19:50:00.499Z",
"maxTokens": 100,
"name": "Bird NFT",
"namingTemplate": "DEFAULT",
"payouts": {},
"previewAt": "2023-04-26T19:50:00.499Z",
"prices": [
{
"currency": "USD",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"price": "200.00"
}
],
"published": true,
"salesEndAt": "2023-04-26T19:50:00.499Z",
"totalTokens": 57
}
]
}
⌘I