How to check if a calendar event is completed in Intervals.icu?

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 .fit file.
  • In the request body, I set the paired_event_id to the id of the event that was previously created in the calendar.
  • Unfortunately, I can’t use external_id because 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:

  1. Is just setting paired_event_id enough to mark an event as completed and move it from the Events section to Activities?
  2. 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?
  3. Are there any alternative ways to reliably link a workout result to a calendar event, especially when external_id is not available?

Any help or best practices would be greatly appreciated!