I’m planning on registering a webhook to receive “invitee.created” events in real-time for my organization. I’m also planning to code a backup job, which can use the Calendly API to fetch invitee.created events. That way, if for whatever reason, the webhook callbacks are lost or quit being received, the backup job can fetch the invitee information until the webhook subscription issues are resolved.
How would you recommend getting the invitee created data using the API? It appears the `activity_log_entries` endpoint does not return events, unless the event is triggered by a user, who belongs to the organization. In my case, the people, who book a meeting/event, are not members of the organization.
So, it looks like the only way to get the invitee created data is to fetch all active scheduled events using `scheduled_events` endpoint with status = active. Then, make an individual call for each scheduled event to fetch invitees data. If we have 100 active scheduled events, we’d need to make 100 calls to fetch invitees.
Is there a better way to fetch the invitee.created events?
Hey
This allows for defining a few useful parameters:
count:
group:
invitee_email:
max_start_time:
min_start_time:
organization:
page_token:
sort:
status:
user:
Specifically you could define the min start time (start of timeframe) with the max start time (end of timeframe) in additional to defining the organization, or scoped to a specific user. I’d say this could be a good fallback for reporting events created in a given timeframe!
Hi Austin, thanks very much for the reply. Your answer confirms what I was thinking.
It would be a 2 step process
Step 1 call `https://api.calendly.com/scheduled_events` with organization query parameter and start/end time.
Step 2: For each scheduled event returned, call `https://api.calendly.com/scheduled_events/{eventUUID}/invitees`. This gives back the similar data that we get from the webhook callbacks.
Since Step 1 would include the start/end time parameters, hopefully that will reduce the number of calls we need to make in Step 2.
Thanks again!
Sign up
Already have an account? Login
Not a Calendly user yet? Head on over to Calendly.com to get started before logging into the community.
Employee Login Customer LoginLogin to the community
Not a Calendly user yet? Head on over to Calendly.com to get started before logging into the community.
Employee Login Customer LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.