Skip to content

Get By ID

Fetches full details for a specific prediction using its unique UUID.

POST/prediction/v1/getbyid
Terminal window
curl -X POST https://api.juspredict.com/prediction/v1/getbyid \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"prediction_id": "pred-uuid"
}'
{
"status": { "type": "SUCCESS" },
"prediction": {
"prediction_id": "pred-uuid",
"event_name": "Team A vs Team B",
"question": "Who will win?",
"investment_amt": "50.00"
}
}
FieldTypeDescription
statusStatusOperation status.