TBM API v2

03/30/2022 16:16 lordsill#1
TBM API v2

With the help of the new API you now have the possibility to create more comprehensive applications for our Black Market than ever before.
A list of all current endpoints can be found below. Please note that for some endpoints there will be a request fee, which will be automatically deducted from your elite*gold balance.
Are you missing any features that you would like to have and that would fit well to the Black Market? Then please post your suggestions here: [Only registered and activated users can see links. Click Here To Register...]

All endpoints set the following parameters for authentication in addition to the mentioned endpoint-specific parameters:
Parameter: u (unsigned int) - This is your UserID that you have here on the forum.
Parameter: secretword (string) A secretword you set yourself - This is not your forum password! Your secretword can be set here: [Only registered and activated users can see links. Click Here To Register...]

All endpoints are also accessible via GET and POST and via a JSON payload (POST only, be sure to set Content-Type to application/json). Response will always be JSON.

elite*gold
URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Shows you all transactions involving your account
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
typestringNoallShows you only transaction of a certain type. Accepted: all,sent,received
pageunsigned intNo1Shows you page X of the transactions.
hide-reversedbooleanNofalseHides transactions that have been reversed.
Response:



URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Send elite*gold to another user
Fee: 1 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
tounsigned intYes Userid of the recipient
amountunsigned intYes Amount of elite*gold you want to send to the user
notestringNo Custom note for the transaction
Response:


Treasures
URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Get treasures created or bought by your account
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
pageunsigned intNo1Shows a specific page of the results
typestringNoallShows only a specific type of treasures. Accepts: unsold,sold,bought,all
Response:



URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Get information about a specific treasure
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
idunsigned intYes Id of the treasure
Response:



URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Create a new treasure
Fee: 1 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
titlestringYes Public visible title of the treasure (should be some informations about the content, so other users knows what they are buying)
contentstringYes Content of the treasure that the buyer will be able to see after he bought the treasure
costunsigned intYes How much should it cost to buy this treasure?
Response:



URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Buy a treasure that is still for sale
Fee: 1 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
idunsigned intYes Id of the treasure you want to buy
Response:


Trades
URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Shows you all trades involving your account
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
typestringNoallShow only a specific type of trade. Accepts: all,requested,received
statusstringNoallShow only trades with in a specific state. Accepts: pending,accepted,waiting_for_approval,aborted,all
pageunsigned intNo1Shows a specific page of the results
Response:



URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Get trade details for a specific trade
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
idunsigned intYes Id of the trade
Response:



URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Generate the trade request URL
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
tunsigned intYes Id of the trading thread
Response:



URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Create a trade request
Fee: 1 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
tunsigned intYes Id of the trading thread
middlemanunsigned intNo UserId of the middleman you want to use for this trade
notestringNo Visible note for the trade (your trading partner can see this before accepting the trade!)
privatestringNo Private note that is visible for your trading partner after accepting the trade (or after middleman approved the trade)
Response:



URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Accept, Reject or approve a trade
Fee: 1 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
tradeunsigned intYes Id of the trade you want to update
statusstringYes The operation you want to do. Accepts: accept,approve,reject
notestringNo Visible note for this trade
privatestringNo Private note for this trade (only visible to your trading partner (after accepting/approve the trade) and middleman)
Response:


Other
URL: [Only registered and activated users can see links. Click Here To Register...]
Description:
Get some information about an account
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
quintNo0UserID of the user you want to get informations about (eg 3493587)
Response:
The ranks field only contains certain ranks (not all ranks we have), so far those are:
  • administrator
  • global_moderator
  • community_manager
  • moderator
  • level_3
  • level_2
  • subscription_elite
  • subscription_premium
  • elite*gold_trader
  • id_verified
  • sponsor
  • 2_factor_authenticated (for this the user needs to enable 2 Factor Authentication and needs to enable the badge also)
08/01/2023 09:04 lordsill#2
New Update:
* get-user-info now allows you to get information also for other users (use the optional qu parameter for this)
* the bought field for elite*gold is always null for other users
* get-user-info got some new fields:
  • statistics
  • ranks
10/20/2025 12:10 lordsill#3
New Update:
Using get-user-info, you can now obtain additional ranks if a user has them:
  • developer
  • designer
  • founder
  • support
  • bot
  • editor
  • event_planner
  • guardian
  • legend
  • former_staff
  • former_volunteer
  • og_member