API Documentation

Overview

This API allows you to update bot data, including selling, buying, and sets for different games. Use the API to modify bot information by sending a POST request to the specified endpoint. API keys can be redeemed in personal area after login with your account.

API Endpoint

The base URL for this API is: /api/{apikey}/updateBot

Replace {apikey} with your unique API key.

HTTP Method

POST - Send a POST request to update the bot's data.

Request Body

The request body must be a JSON object with the following fields:


{
  "selling": {
    "tf2": 13,
    "csgo": 20,
    "hydra": 15,
    "tod": 10,
    "gem": 400
  },
  "buying": {
    "tf2": 15,
    "csgo": 25,
    "hydra": 20,
    "tod": 15,
    "gem": 200
  },
  "sets": {
    "440": 69,
    "570": 420,
    "730": 1337
  }
  "foil_sets": {
    "440": 69,
    "570": 420,
    "730": 1337
  }
}
            

- The selling field contains the bot's selling values for different games.

- The buying field contains the bot's buying values for different games.

- The sets field contains the set values for different games.

Example Request

POST /api/qwepoqwjkhrslmnlvkjsdhsdkljfh/updateBot
{
  "selling": {
    "tf2": 13,
    "csgo": 20,
    "hydra": 15,
    "tod": 10,
    "gem": 400
  },
  "buying": {
    "tf2": 15,
    "csgo": 25,
    "hydra": 20,
    "tod": 15,
    "gem": 200
  },
  "sets": {
    "440": 69,
    "570": 420,
    "730": 1337
  }
}

Response

On success, the API will return a 200 status code with the following message:

{
  "message": "Bot updated successfully."
}

If the API key is invalid or if there is a problem with the request, you will receive an error response:

{
  "error": "Invalid API key."
}

Error Codes

  • 400 Bad Request - Missing or invalid data in the request body.
  • 401 Unauthorized - Invalid or missing API key.

Rate Limiting

Be mindful of rate limiting to avoid overloading the API. If necessary, implement retries with exponential backoff.

API Endpoint *Deprecated, but still usable*

The base URL for this API is: /api/{apikey}/update

Replace {apikey} with your unique API key.

API Endpoint *Deprecated, but still usable*

The base URL for this API is: /api/{apikey}/updateinventory

Replace {apikey} with your unique API key.