NFT Garden Docs
HomepageGitHubLanguageSign up for free
  • Welcome to NFT Garden Docs
  • Getting started
  • Web release note
  • API release note
    • Ver 1.2
    • Ver 1.1
    • Ver 1.0
  • Supported Blockchains
  • Pricing
  • EUs consumption
  • Web platform
    • Dashboard
    • Contract
      • Contract list screen
      • Create contract screen
    • NFT
      • NFT list screen
      • NFT minting screen
      • NFT transfer screen
    • API key
      • API keys
      • Generate API key
    • Webhook
      • Webhook settings
    • Account
      • Account
  • API Minting
    • NFT API
      • Ver 1.2.2
        • Auth
        • Resources
        • NFT minting
        • NFT transfer
        • NFT granted(mint + transfer)
        • Get the NFT list
        • Get NFT details
        • NFT Garden NFT determination
        • Create contract
        • Get Contract details
        • Wallet Address Generation
        • API rate limit
  • Tutorial
    • Connect wallet
    • Create contract
    • Mint NFT
    • Check NFT
    • Transfer NFT
  • Links
    • NFT Garden
    • GitHub
    • Blog
    • Contact
Powered by GitBook
On this page
  • Create API key
  • Authentication with API key
  • Request example
  1. API Minting
  2. NFT API
  3. Ver 1.2.2

Auth

PreviousVer 1.2.2NextResources

Last updated 1 year ago

Create API key

API keys can be issued by logging into the NFT Garden and going to the menu.

Authentication with API key

You can authenticate by assigning an API key to x-api-key in the header when making an API request.

If no API key is specified, the request will automatically fail. Also, requests for functions that are not authorized when the API key is issued will also fail.

Request example

curl -X POST -H "Content-Type: application/json" -H "x-api-key: <your-api-key>" -d '{"name": "NFT Garden", "description": "NFT Garden provides NFT backend"}'  https://api.nftgarden.app/api/v1/nft/

The above command is an example of specifying an API key, so it will not work properly as is.

API key