Get Event
Fetches full metadata for a sport event, including its category, status, venues, and optional child events or questions.
Endpoint
Section titled “Endpoint”POST
/event/v1/geteventRequest Body
Section titled “Request Body”curl -X POST https://api.juspredict.com/event/v1/getevent \-H 'Authorization: Bearer YOUR_TOKEN' \-H 'Content-Type: application/json' \-d '{"event_id": "event-uuid","get_parent_event": true,"get_child_events": true,"get_event_questions": true}'{"event_id": "event-uuid","get_parent_event": true,"get_child_events": true,"get_event_questions": true}Constraints
Section titled “Constraints”| Field | Requirement |
|---|---|
event_id | Must be a valid UUID. |
Response Body
Section titled “Response Body”{"status": { "type": "SUCCESS" },"event": {"id": "event-uuid","name": "World Cup 2025","category": 1,"status": 2,"start_date": 1713441600,"end_date": 1713528000},"questions_count": 5,"questions": [{ "question_id": "q-uuid", "name": "Who will win the toss?", "status": 1}]}{"status": {"type": "ERROR","details": [ { "code": "401", "message": "Unauthorized access token." }]}}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
status | Status | Operation status. |