Hi! I’m integrating with the Intervals.icu API and have a few questions about completing events and linking them to workout results.
Here’s my current flow:
- I’m using the POST /api/v1/athlete/{id}/activities endpoint to upload a
.fitfile. - In the request body, I set the
paired_event_idto theidof the event that was previously created in the calendar. - Unfortunately, I can’t use
external_idbecause the event is created by another user/system, and I don’t control that part — it doesn’t include any external ID.
What I’m trying to understand:
- Is just setting
paired_event_idenough to mark an event as completed and move it from the Events section to Activities? - How can I programmatically check if an event is already completed or still pending? Is there a field or flag in the API that helps distinguish that?
- Are there any alternative ways to reliably link a workout result to a calendar event, especially when
external_idis not available?
Any help or best practices would be greatly appreciated!