RIM PRO Developer Hub
Integrate the RIM roulette analytics engine directly into your application. Real-time spin processing, combination tracking, and balance management — all via a simple REST API.
Overview
The RIM PRO Partner API is a RESTful HTTP API that exposes the core roulette analytics engine to authenticated partner applications.
/partner/api
application/json
Bearer API Key
Authentication
All endpoints (except /partner/api/token) require a Bearer API key in the HTTP header.
Authorization: Bearer rim_your_api_key_here
Quick Start
Get up and running in under 5 minutes with cURL or any HTTP client.
-
1 Purchase a Partner plan from the Pricing page
-
2 Get your API key from Account → API Access
-
3 Make your first API call:cURL
curl -H "Authorization: Bearer rim_YOUR_KEY" \ https://yourdomain.com/partner/api/state
/partner/api/token
Public
Exchange your email and password for an API key. This is the only endpoint that does not require a Bearer header.
Request Body
{
"email": "you@example.com",
"password": "your_password"
}
Response 200
{
"api_key": "rim_a3f2b9c8d6e1...",
"api_key_created_at": "2026-03-01T10:00:00+00:00",
"subscription_active": true,
"role": "ROLE_PARTNER"
}
/partner/api/state
Auth Required
Retrieve the current spin state for your account — spin count, last numbers drawn, active combinations, and current balance.
Response 200
{
"spin": 42,
"list": [14, 7, 22, 0],
"first": 22,
"second": 23,
"third": 24,
"combinations": [...],
"win": 150.0,
"set_balance": 150.0,
"bets": [1, 2, 3],
"prediction": ""
}
| Field | Type | Description |
|---|---|---|
| spin | integer | Number of spins recorded in the current set |
| list | array | Ordered list of roulette numbers (most recent last) |
| first/second/third | integer|null | Predicted group of 3 numbers to watch |
| combinations | array | Active prediction combinations |
| win | float | Overall account balance |
| set_balance | float | Balance for the current session set only |
| prediction | string | New combination prediction description, if any |
/partner/api/spin
Auth Required
Submit a roulette spin result (0–36). The engine evaluates combinations, updates balances, and returns the new state.
Request Body
{
"number": 14
}
cURL Example
curl -X POST \
-H "Authorization: Bearer rim_KEY" \
-H "Content-Type: application/json" \
-d '{"number":14}' \
.../partner/api/spin
number must be an integer from 0 to 36.The response structure is identical to
GET /state.
/partner/api/restart
Auth Required
Start a fresh session set. All active combinations are deactivated and a new set is created. No request body needed.
Response 200
{
"id": 42,
"spin": 0,
"win": 0.0,
"set_balance": 0.0,
"list": [],
"combinations": [],
"first": null, "second": null, "third": null
}
/partner/api/account
Auth Required
Returns your profile, subscription status, and masked API key metadata.
{
"id": 5,
"email": "dev@example.com",
"first_name": "Jane",
"last_name": "Doe",
"roles": ["ROLE_PARTNER", "ROLE_USER"],
"subscription_active": true,
"subscribed_until": "2027-01-01T00:00:00+00:00",
"balance": 150.0,
"api_key_prefix": "rim_a3f2b9c8••••",
"api_key_created_at": "2026-03-01T10:00:00+00:00"
}
/partner/api/key/regenerate
Auth Required
Generate a new API key. Your old key is immediately invalidated. No request body required.
{
"api_key": "rim_new_key_here...",
"api_key_created_at": "2026-03-03T14:00:00+00:00",
"message": "API key regenerated. Your old key is now invalid."
}
Error Codes
| Status | Code | Meaning |
|---|---|---|
| 200 | OK | Request succeeded |
| 400 | Bad Request | Missing or invalid field (e.g. number out of 0–36 range) |
| 401 | Unauthorized | Missing or invalid API key |
| 402 | Payment Required | Account subscription is expired or inactive |
| 403 | Forbidden | Account does not have ROLE_PARTNER |
| 500 | Server Error | Unexpected server error — contact support |
{
"error": "Unauthorized",
"message": "Invalid API key."
}
Partner Onboarding Flow
-
1
Register
Create a free account at /register.
-
2
Purchase Partner Plan
Select a plan that includes API access on the Pricing page and complete payment.
-
3
Get Your API Key
Visit Account → API Access after your subscription activates. Click "Generate API Key".
-
4
Integrate
Add the Authorization: Bearer header to your server-side HTTP requests.
-
5
Go Live
Start processing spins in real-time from your own application.
Ready to integrate?
View Partner Plans →