Page cover

πŸ”‘API

The RayBot API provides programmatic access to wallet management . This documentation covers all public-facing endpoints, authentication, rate limits, and usage examples.

🌐 Base URL

All requests are made to:

https://webapi.raybot.app

πŸ” Authentication

Getting an API Key

You can obtain an API key directly in the RayBot Telegram Bot by sending the command:

/api
πŸ“Example

Required Parameters

All requests to /publicapi must include two parameters:

  • api_user: β€” Your API user id

  • token: β€” Your API key


Data Format

Parameters can be passed in the query string.


Rate Limits

Public API endpoints (/publicapi): β€” 5 requests per 10 seconds


Bot numbers

With each request, you need to specify a Telegram bot number. Use the table below to find the correct bot:

Ray Bots:

πŸ“‹ Endpoints

Add Wallets

Endpoint: POST /publicapi/wallets/add

Add multiple wallets to a user's bot configuration.

Parameters:

Query Parameters:

  • api_user (string, required): Your API user ID

  • token (string, required): API authentication token

Request Body:

Validation Rules:

  • Maximum 10 wallets per request

  • wallet_address must be alphanumeric

  • bot must be integer between 0-32

  • wallets array must contain 1-10 items

Response:

Status Codes

  • 201: Wallets added successfully

  • 400: Invalid request data

  • 401: Invalid authentication

  • 403: User not authorized

  • 429: Rate limit exceeded


Delete Wallets

Endpoint: POST /publicapi/wallets/delete

Parameters:

Query Parameters:

  • api_user (string, required): Your API user ID

  • token (string, required): API authentication token

Request Body:

Validation Rules:

  • wallets must be a non-empty array

  • Each wallet address must be valid Solana, EVM, or TRON address

  • bot must be integer between 0-32

Response:

Status Codes:

  • 200: Wallets deleted successfully

  • 400: Invalid wallet addresses

  • 401: Invalid authentication

  • 404: No wallets found

  • 429: Rate limit exceeded


Get Wallets (paginated)

Endpoint: POST /publicapi/wallets/show

Retrieve all wallets for the authenticated user, with optional filtering and pagination.

Parameters:

Query Parameters:

  • api_user (string, required): Your API user ID

  • token (string, required): API authentication token

Request Body:

Validation Rules:

  • page must be an integer (default: 1, min: 1)

  • limit (page size) must be an integer (default: 50, min: 1, max: 200)

  • bot must be integer between 0-32

Response:

Status Codes:

  • 200: Success

  • 401: Invalid authentication

  • 429: Rate limit exceeded

  • 400: Validation error (missing/invalid params)


Update Wallet Settings

Endpoint: POST /publicapi/wallets/settings

Update tx filter settings for a specific wallet that belongs to the authenticated admin (API user).

Parameters:

Query Parameters:

  • api_user (string, required): Your API user ID

  • token (string, required): API authentication token

Request Body:

Validation Rules:

  • bot must be integer between 0-32

  • wallet_address must be a valid Solana / EVM / Tron address

  • settings must be an object

Supported settings Keys

Boolean Settings

Solana:

  • nfts, swaps, buys, sells, first_buy_only, first_sell_only, new_transfers_only, transfers, in_txs, out_txs, other, token_transfers, in_low_lq_transfers, likely_scam_transfers, multi_transfers, multi_transfers_ex, burn, drip, cnfts, jup_dca, jup_limit, jupiter, jupiter_perps, meteora, jito_tip, pumpfun, pumpswap, raydium, unknown, approvals, associated_token, close_token_account, add_liquidity, remove_liquidity, claim_fees, spam, token_mint, migrate, streamflow

EVM:

  • evm_swaps, evm_buys, evm_sells, evm_transfers, evm_other, evm_tip

TRON:

  • tron_swaps, tron_buys, tron_sells, tron_transfers, tron_other, tron_tip

Numeric Settings

Solana:

  • min_sol, max_sol, min_usd, max_usd, min_trade_sol, max_trade_sol, min_trade_usd_mc, max_trade_usd_mc, min_token_age, max_token_age

EVM:

  • evm_trade_min, evm_trade_max, evm_mc_trade_min, evm_mc_trade_max, evm_usd_min, evm_usd_max

TRON:

  • tron_trade_min, tron_trade_max, tron_mc_trade_min, tron_mc_trade_max, tron_usd_min, tron_usd_max

Response:

Status Codes:

  • 200: Success

  • 400: Validation error (missing/invalid params)

  • 401: Invalid authentication

  • 429: Rate limit exceeded


πŸ”§ SDKs and Examples

JavaScript/Node.js Example

Python Example

Last updated