GET Token
curl --request GET \
--url https://api.bitski.com/v1/apps/{appId}/tokens/{tokenId}import requests
url = "https://api.bitski.com/v1/apps/{appId}/tokens/{tokenId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bitski.com/v1/apps/{appId}/tokens/{tokenId}', 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}/tokens/{tokenId}",
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}/tokens/{tokenId}"
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}/tokens/{tokenId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bitski.com/v1/apps/{appId}/tokens/{tokenId}")
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{
"token": {
"animationUrl": null,
"backgroundColor": "#ff1122",
"createdAt": "2023-04-26T20:42:11.878Z",
"description": "Interesting bird NFT",
"externalUrl": "https://www.bitski.com/@Stapleverse",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"index": "0x3",
"metadata": {
"animation_url": null,
"background_color": null,
"description": "A very special NFT",
"external_url": "https://www.bitski.com/@Stapleverse",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"name": "NFT Token #1",
"properties": {},
"youtube_url": null
},
"name": "Bird #1",
"privateMetadata": {},
"state": "MINTED",
"tokenTemplateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"youtubeUrl": null
}
}
Minting APIs
GET Token
Get token details
GET
/
v1
/
apps
/
{appId}
/
tokens
/
{tokenId}
GET Token
curl --request GET \
--url https://api.bitski.com/v1/apps/{appId}/tokens/{tokenId}import requests
url = "https://api.bitski.com/v1/apps/{appId}/tokens/{tokenId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bitski.com/v1/apps/{appId}/tokens/{tokenId}', 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}/tokens/{tokenId}",
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}/tokens/{tokenId}"
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}/tokens/{tokenId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bitski.com/v1/apps/{appId}/tokens/{tokenId}")
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{
"token": {
"animationUrl": null,
"backgroundColor": "#ff1122",
"createdAt": "2023-04-26T20:42:11.878Z",
"description": "Interesting bird NFT",
"externalUrl": "https://www.bitski.com/@Stapleverse",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"index": "0x3",
"metadata": {
"animation_url": null,
"background_color": null,
"description": "A very special NFT",
"external_url": "https://www.bitski.com/@Stapleverse",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"name": "NFT Token #1",
"properties": {},
"youtube_url": null
},
"name": "Bird #1",
"privateMetadata": {},
"state": "MINTED",
"tokenTemplateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"youtubeUrl": null
}
}
This API requires the
apps scopePath
string
required
Your Bitski Application ID
string
required
The token id
Response
object
required
{
"token": {
"animationUrl": null,
"backgroundColor": "#ff1122",
"createdAt": "2023-04-26T20:42:11.878Z",
"description": "Interesting bird NFT",
"externalUrl": "https://www.bitski.com/@Stapleverse",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"index": "0x3",
"metadata": {
"animation_url": null,
"background_color": null,
"description": "A very special NFT",
"external_url": "https://www.bitski.com/@Stapleverse",
"image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
"name": "NFT Token #1",
"properties": {},
"youtube_url": null
},
"name": "Bird #1",
"privateMetadata": {},
"state": "MINTED",
"tokenTemplateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"youtubeUrl": null
}
}
⌘I