AI-powered REST API template matching and payload generation
X-API-Key: your-api-key-here
POST /api/predict
API_KEY_PREDICT
X-API-Key: your_predict_key_here
Description: Get API template matched to your URL with filled payload
Request Headers:
X-API-Key: your_predict_api_key_here
Content-Type: application/json
Request Body:
{
"url": "https://your-domain.com/path/to/endpoint",
"method": "GET",
"data": {
"Company": "ABC",
"Account": "1000"
}
}
Response:
{
"success": true,
"filled_url": "https://your-domain.com/...",
"filled_payload": {...},
"method": "POST",
"confidence": 0.95
}
Note: Response URL uses YOUR domain, not the training template's domain.
GET /api/prediction-history
API_KEY_PREDICT
X-API-Key: your_predict_key_here
Description: Retrieve history of all predictions made
POST /api/train
API_KEY_TRAIN
X-API-Key: your_train_key_here
Description: Add a new training example to the model
Request Headers:
X-API-Key: your_train_api_key_here
Content-Type: application/json
Request Body:
{
"service_location": "https://cloud.platnedcloud.com/...",
"method": "POST",
"endpoint_url": "https://cloud.platnedcloud.com/.../AccountSet",
"payload_template": {...},
"description": "Optional description"
}
GET /api/training-data
API_KEY_TRAIN
X-API-Key: your_train_key_here
Description: Retrieve all training examples
POST /api/bulk-train
API_KEY_TRAIN
X-API-Key: your_train_key_here
Description: Add multiple training examples at once
GET /api/stats
API_KEY_STAT
X-API-Key: your_stat_key_here
Description: Get model statistics and performance metrics
Request Headers:
X-API-Key: your_stat_api_key_here
Response:
{
"success": true,
"stats": {
"total_training_examples": 10,
"total_predictions": 50,
"average_confidence": 0.85
}
}
GET /api/model-accuracy
API_KEY_STAT
X-API-Key: your_stat_key_here
Description: Get detailed model accuracy metrics
GET /api/health
Description: Check if the API is healthy and running