API Documentation
Complete guide to integrating the Ruley API into your application.
Quick Start
Get started with the Ruley API in minutes
1. Get your API key
Sign up and create an API key from your dashboard.
2. Make your first request
curl -X POST https://api.ruley.ai/chat/pickleball \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "What is the kitchen rule in pickleball?",
"previousMessages": []
}'Try It Out
Test the API directly from your browser
Pick the sport your question is about. Try It uses the portal proxy; FlingGolf is sent to /chat/golf with ruleset: FlingGolf.
API Endpoints
POST
/chat/{sport}Get rule interpretations for specific scenarios. The sport is specified in the URL path.
URL Parameters:
sport(string, required):pickleball,padel,tennis,intennse,soccer,golf,flinggolf,kickball. For FlingGolf, call/chat/golfwithrulesetin the body (see below).
Headers:
X-API-KEY(string, required): Your API keyContent-Type(string, required): application/json
Request Body:
message(string, required): The rules questionpreviousMessages(array, optional): Previous conversation messages for contextruleset(string, optional): For/chat/golf, sendFlingGolffor FlingGolf or omit forUSGAregulation golf.
Supported Sports
Pickleball
Official rulebook coverage
Padel
Official rulebook coverage
Tennis
Official rulebook coverage
Intennse
Official rulebook coverage
Soccer
Official rulebook coverage
Golf
Official rulebook coverage
FlingGolf
Official rulebook coverage
Kickball
Official rulebook coverage
Rate Limits
Rate limits and overage charges vary by plan. See the pricing page for current tiers and limits.
