π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:
/apiRequired Parameters
All requests to
/publicapimust 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:
π 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_addressmust be alphanumeric
botmust be integer between 0-32
walletsarray 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:
walletsmust be a non-empty arrayEach wallet address must be valid Solana, EVM, or TRON address
botmust 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:
pagemust be an integer (default: 1, min: 1)
limit(page size) must be an integer (default: 50, min: 1, max: 200)
botmust 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:
botmust be integer between 0-32
wallet_addressmust be a valid Solana / EVM / Tron address
settingsmust be an object
Supported settings Keys
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

