API Documentation
Build powerful applications with our comprehensive API platform
Quick Links
Getting Started
Welcome to the Root Digit API. Our RESTful API provides programmatic access to our AI, blockchain, and robotics platforms.
Base URL
https://api.rootdigit.com/v1Authentication
All API requests require authentication using an API key. Include your API key in the Authorization header:
API Endpoints
/api/v1/blockchain/balanceGet wallet balance and transaction history
/api/v1/ai/predictRun AI predictions on your data
/api/v1/robotics/controlSend control commands to robotic systems
/api/v1/analytics/reportGenerate comprehensive analytics reports
Code Examples
JavaScript
const response = await fetch('https://api.rootdigit.com/v1/blockchain/balance', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);Python
import requests
response = requests.get(
'https://api.rootdigit.com/v1/blockchain/balance',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
)
data = response.json()
print(data)cURL
curl -X GET https://api.rootdigit.com/v1/blockchain/balance \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Rate Limits
Default Rate Limits
- • Free tier: 100 requests per hour
- • Starter: 1,000 requests per hour
- • Professional: 10,000 requests per hour
- • Enterprise: Custom limits
Error Handling
The API uses standard HTTP response codes to indicate success or failure:
200Success400Bad Request401Unauthorized429Rate Limit Exceeded500Internal Server Error