{"openapi":"3.1.0","info":{"title":"NFT Status","description":"Check if an NFT has been used in Stake.","version":"1.0.0"},"servers":[{"url":"https:\/\/stake.amplifyworld.ai"}],"paths":{"\/api\/nfts\/status\/{tokenAddress}\/{identifier}":{"get":{"operationId":"getNftStatus","summary":"Check NFT usage status","description":"Pass in the NFT's contract address and token ID to find out if it's been used.","parameters":[{"name":"tokenAddress","in":"path","required":true,"description":"The NFT's contract address.","schema":{"type":"string","example":"0xabc123..."}},{"name":"identifier","in":"path","required":true,"description":"The token ID.","schema":{"type":"string","example":"42"}}],"responses":{"200":{"description":"Status returned successfully.","content":{"application\/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["used","unused"],"description":"Whether the NFT has been used."},"used_at":{"type":"string","format":"date-time","description":"When it was used. Only present when status is \"used\"."}}},"examples":{"unused":{"summary":"NFT hasn't been used","value":{"status":"unused"}},"used":{"summary":"NFT has been used","value":{"status":"used","used_at":"2024-11-01T14:32:00.000000Z"}}}}}},"404":{"description":"Contract address not recognised.","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"nft.unknown_contract_address"},"message":{"type":"string","example":"Unknown contract address"}}}}}},"429":{"description":"Rate limit exceeded. Maximum 120 requests per minute per IP address."}}}}}}