Digital Name Marketplace API Commands


List of Digital Name Marketplace API Commands

Developers can use the below list of commands in order to build an open p2p marketplace, where Digital Names can be bought and sold.

Note: "**" = placeholder for a value that must be provided by the developer.

Name Command Notes Return
Server Sync https://usa.tnsapi.cloud/call.cfm?apikey=**&command=serversync Will sync server and API key. IP address synced.
List All Digital Names For Sale https://usa.tnsapi.cloud/call.cfm?apikey=**&command=listforsale&display=JSON Optional "display=JSON or HTML". All Digital Names that have been placed for sale are listed.
List Digital Name Categories https://usa.tnsapi.cloud/call.cfm?apikey=**&command=sellcats Optional "display=JSON or HTML". Returns a list of all selling categories.
List All Digital Names For Sale From Category https://usa.tnsapi.cloud/call.cfm?apikey=**&command=listforsale&cat=**&display=JSON Optional "display=JSON or HTML". Returns a list of all Digital Names that are for sale in a given category.
Start Digital Name Transfer https://usa.tnsapi.cloud/call.cfm?apikey=**&command=transfer&action=start&digitalname=**&transferdigitalname=** Note that digitalname and transferdigitalname are required. 0 (fail) or 1 (success) is returned.
Cancel Digital Name Transfer https://usa.tnsapi.cloud/call.cfm?apikey=**&command=transfer&action=cancel&digitalname=**&transferdigitalname=** Note that digitalname and transferdigitalname are required. 0 (fail) or 1 (success) is returned.
Accept Digital Name Transfer https://usa.tnsapi.cloud/call.cfm?apikey=**&command=transfer&action=accept&digitalname=**&transferdigitalname=** Note that digitalname and transferdigitalname are required. 0 (fail) or 1 (success) is returned.
Deny Digital Name Transfer https://usa.tnsapi.cloud/call.cfm?apikey=**&command=transfer&action=deny&digitalname=**&transferdigitalname=** Note that digitalname and transferdigitalname are required. 0 (fail) or 1 (success) is returned.
Digital Name Transfer History https://usa.tnsapi.cloud/call.cfm?apikey=**&command=transfer&action=history&digitalname=**&rows=10 Note that rows are optional. Also return=JSON or HTML. A history of the Digital Name's transfers are displayed.