GET /api/v1/events/{id}/next-cycle
Get the next cycle event for a loop event. Loop events (e.g. recurring crypto price prediction events) automatically create successor events. This endpoint returns the ID of the next cycle, or null if no next cycle exists yet.
Authentication​
None -- Public endpoint.
Request​
| Parameter | Type | In | Description |
|---|---|---|---|
id | int64 | path | Event ID (int64) |
Example​
curl https://api.intotes.com/api/v1/events/1/next-cycle
Response​
200 OK​
When a next cycle exists:
{
"next_event_id": 5
}
When no next cycle exists yet:
{
"next_event_id": null
}
404 Not Found​
{
"error": "event not found"
}