Skip to main content
GET
/
v1
/
apps
/
{appId}
/
gates
/
{gateId}
GET Token Gate
curl --request GET \
  --url https://api.bitski.com/v1/apps/{appId}/gates/{gateId}
import requests

url = "https://api.bitski.com/v1/apps/{appId}/gates/{gateId}"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.bitski.com/v1/apps/{appId}/gates/{gateId}', 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}/gates/{gateId}",
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}/gates/{gateId}"

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}/gates/{gateId}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.bitski.com/v1/apps/{appId}/gates/{gateId}")

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
{
  "gate": {
    "createdAt": "2023-04-21T00:52:48.459Z",
    "description": "In order to continue you must have a bird NFT in your wallet.",
    "filters": [
      {
        "attributes": [
          {
            "key": "Level",
            "value": "3"
          }
        ],
        "contractId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "createdAt": "2023-04-21T00:52:48.459Z",
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "Bird contract",
        "tokenIds": [
          "0x1"
        ]
      }
    ],
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
    "isActive": true,
    "isPublished": true,
    "name": "Must hold a bird NFT to continue."
  }
}
Access to this API is available upon request to sales@bitski.com.

Path

appId
string
required
Your Bitski Application ID
gateId
string
required
The id of the token gate

Examples

Token Gating

Response

gate
Gate object
required
{
  "gate": {
    "createdAt": "2023-04-21T00:52:48.459Z",
    "description": "In order to continue you must have a bird NFT in your wallet.",
    "filters": [
      {
        "attributes": [
          {
            "key": "Level",
            "value": "3"
          }
        ],
        "contractId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "createdAt": "2023-04-21T00:52:48.459Z",
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "Bird contract",
        "tokenIds": [
          "0x1"
        ]
      }
    ],
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "image": "https://cdn.bitskistatic.com/tokens-raw/54676382-bab5-408d-afe2-fc6f160da4a8/06fd0294-a425-44c7-96e8-9d24757163b4.png",
    "isActive": true,
    "isPublished": true,
    "name": "Must hold a bird NFT to continue."
  }
}