Robot Project

API Documentation

🔐 Authentication

This API uses Basic Authentication for securing endpoints. All requests to protected endpoints must include an Authorization header with valid credentials.

How to authenticate:

URL API: https://api.robotproject.com.br

**example: ** https://api.robotproject.com.br/games

  1. Combine your username and password in the format username:password
  2. Encode this string using Base64 encoding

Example in JavaScript/TypeScript:

const username = 'your_username';
const password = 'your_password';
const token = Buffer.from(`${username}:${password}`).toString('base64');
// Result: 'eW91cl91c2VybmFtZTp5b3VyX3Bhc3N3b3Jk'

Example Authorization Header:

Authorization: Basic eW91cl91c2VybmFtZTp5b3VyX3Bhc3N3b3Jk

Note: Replace the example credentials with your actual username and password.

Purchase Game with Balance

POST/buy/:gameIdAuth required

Purchase a game using your account balance. When using this endpoint, you'll pay the standard user price but will receive cashback according to your reseller agreement on robotproject.

Free Games

If the game is marked as free (is_free: true in /games endpoint), no payment is required:

  • The API will automatically activate the key at no cost
  • The key will start with prefix APIF (Free)
  • Response will include amountSpent: 0, originalAmount: 0, and finalAmount: 0
  • Balance remains unchanged (balance = previousBalance)
  • Game info includes free: true in the game object

Request Details

Request Body

Specify the duration of the game access in days

Request body
{
  "duration": 30  // Duration in days
}

Responses

200 SuccessGame purchased successfully using balance
Response
{
  "success": true,
  "data": {
    "key": "APIA7B83053D00A4",
    "balance": 4063.32,
    "amountSpent": 22.75,
    "gameName": "Game Name",
    "gameId": 6,
    "purchaseDate": "2025-06-27T02:39:35.519Z",
    "originalAmount": 22.75,
    "finalAmount": 22.75
  }
}
200 SuccessFree game activated successfully (no payment required)
Response
{
  "success": true,
  "data": {
    "key": "APIF7B83053D00A4",
    "balance": 4063.32,
    "previousBalance": 4063.32,
    "amountSpent": 0,
    "gameName": "Free Game Name",
    "gameId": 150,
    "purchaseDate": "2025-10-10T12:00:00.000Z",
    "originalAmount": 0,
    "finalAmount": 0,
    "game": {
      "id": 150,
      "name": "Free Game Name",
      "downloadUrl": "https://drive.google.com/file/d/example/view",
      "fileName": "free-game.zip",
      "free": true,
      "markdown": "# Free Game\nEnjoy this free game!"
    }
  }
}
400 ErrorInvalid request parameters
Response
{
  "success": false,
  "message": "Invalid duration or insufficient balance"
}
401 ErrorUnauthorized - Invalid or missing authentication
Response
{
  "success": false,
  "message": "Authentication required"
}
404 ErrorGame not found
Response
{
  "success": false,
  "message": "Game not found"
}

Need help? Contact our support