{"components":{"securitySchemes":{"bearerAuth":{"description":"mojojojo API key (mj_live_...)","scheme":"bearer","type":"http"}}},"info":{"description":"Train a tree ensemble on your rows, then score at up to 570x scikit-learn's single-row speed on Mojo kernels","title":"Tabular Score API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/v1/models":{"get":{"operationId":"list_models","responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}],"summary":"List your trained models."},"post":{"operationId":"train_model","requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"type":"string"},"rows":{"items":{"type":"object"},"type":"array"},"target":{"type":"string"}},"required":["name","target","rows"],"type":"object"}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}],"summary":"Train a binary classifier on rows (list of objects) and the target column name; returns holdout AUC. Models are private to your account."}},"/v1/models/{name}":{"delete":{"operationId":"delete_model","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}],"summary":"Delete a trained model."}},"/v1/models/{name}/predict":{"post":{"operationId":"predict","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"type":"string"},"rows":{"items":{"type":"object"},"type":"array"}},"required":["name","rows"],"type":"object"}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}],"summary":"Score rows with a trained model; returns probability of the positive class and a label per row."}}},"servers":[{"url":"https://score.mojojojo.cc"}]}
