Public
Documentation Settings

Qaf API Documentation v2.2.0

Make your in game assets NFT with Qaf.

Please contact us to get your API credentials.

Contact Email: info@barakatech.com

Getting Started

Base URL

Staging: https://sandbox-api.qafnft.com
Prod: TBA

Base Response

KeyTypeDescription
dataObjectRepresents the result of your process. It can be string, object or null.
messageStringRepresents the error description. Returns null if your request is processed successfully.
errorBooleanRepresents if an error occurred while processing your request. It can be true or false.
codeNumberRepresents the internal error code. Returns 0 if your request is processed successfully.

P.S. : It is not HTTP Status code.

Authentication

Qaf API calls require valid Authorization header for authentication and authorization. Qaf uses OAuth2 for getting an access_token

POSTClient Auth

https://sandbox-api.qafnft.com/oauth/token

Retrieves the access token that identifies a client. (game-studio) Access token is valid for a limited time.

API-KEY: Your API-KEY (provided by Qaf)

API-SECRET: Your API-SECRET (provided by Qaf)

AUTHORIZATIONBasic Auth
Username

<username>

Password

<password>

HEADERS
Content-Type

application/json

Bodyurlencoded
grant_type

client_credentials

Example Request
curl
curl --location 'https://sandbox-api.qafnft.com/oauth/token' \
--header 'Content-Type: application/json' \
--data-urlencode 'grant_type=client_credentials'
200 OK
Example Response
json
{
  "access_token": "8a4511b6-9593-4508-bdfc-c9a3fd2be85c",
  "token_type": "bearer",
  "expires_in": 10799,
  "scope": "api",
  "authorities": [
    {
      "authority": "USER"
    }
  ]
}
Access-Control-Allow-Origin

*

Access-Control-Allow-Methods

POST, GET, OPTIONS, DELETE, PUT

Access-Control-Max-Age

3600

Access-Control-Allow-Headers

Access-Control-Allow-Origin, x-requested-with, authorization, Content-Type, Authorization, credential, X-XSRF-TOKEN, GAME-ID

Cache-Control

no-store

Pragma

no-cache

X-Content-Type-Options

nosniff

X-XSS-Protection

1; mode=block

X-Frame-Options

DENY

Content-Type

application/json

Transfer-Encoding

chunked

Date

Tue, 12 Apr 2022 08:52:02 GMT

Keep-Alive

timeout=60

Connection

keep-alive

Network

The Network represents supported blockchains on the QafNft platform. (Binance Smart Chain, Ethereum, Polygon etc.) You will need Network's identifier parameter for some contract related operations.