Get Prediction Info
Fetches a list of predictions made by the user, filterable by time ranges (today, this week, all time, etc.).
Endpoint
Section titled “Endpoint”POST
/prediction/v1/getRequest Body
Section titled “Request Body”curl -X POST https://api.juspredict.com/prediction/v1/get \-H 'Authorization: Bearer YOUR_TOKEN' \-H 'Content-Type: application/json' \-d '{"time_in_force": 1,"page_request": {"page_number": 1,"page_size": 20}}'{"time_in_force": 1,"page_request": {"page_number": 1,"page_size": 20}}Constraints
Section titled “Constraints”| Field | Requirement |
|---|---|
time_in_force | 1: LIVE, 2: COMPLETED TODAY, 6: ALL TIME, 8: UPCOMING. |
Response Body
Section titled “Response Body”{"status": { "type": "SUCCESS" },"prediction_count": 1,"predictions": [{ "prediction_id": "pred-uuid", "event_name": "Team A vs Team B", "question": "Who will win?", "predicted_outcome": "Team A", "investment_amt": "50.00", "prediction_status": "MATCHED"}]}{"status": {"type": "ERROR","details": [ { "code": "401", "message": "Unauthorized access token." }]}}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
status | Status | Operation status. |
predictions | PredictionInfo[] | List of predictions. |