Here is what I am attempting to do. Can Nylas help with this?
I’m building a multi-tenant platform where each tenant has an admin who manages their own community.
I’d like that admin to be able to create an event from within my platform, using their own calendar, and send it as a proper calendar invitation to all the members of their community.
I’d also like the platform to automatically create the conferencing link based on whichever provider the admin has connected. For example, if they’ve connected their Zoom account, the event should include a Zoom meeting. If they’ve connected Google, it should create a Google Meet link, and similarly for other supported conferencing providers.
Is this something Nylas is designed to support? If so, are there any recommended APIs or implementation patterns I should be looking at?
Hi @unserrer - Nick here from the product team. What you’re describing is definitely something that Nylas can support!
With a user’s Grant (i.e. the account that’s connected & is creating the event), you can create an event for them with the Events API. Specifically POST /v3/grants/:grant_id/events endpoint Create an event - Events - API Reference | Docs. When you POST the event, you can use the conferencing object to create a meeting URL on the event. If you leave it as autocreate, the conferencing URL will be whatever is native to that provider.
If you had a Google grant creating an event with a Google Meets URL, you’d do this:
"conferencing": {
"provider": "Google Meet",
"autocreate": {}
}
Or a Meets URL for a Microsoft account:
"conferencing": {
"provider": "Microsoft Teams",
"autocreate": {}
}
Zoom is a little different, because you need to connect a Zoom grant too. If you wanted to create a Zoom URL you’d need to:
- Create a Zoom app
- Auth a user’s Zoom account, which will give you a
grant_id for that Zoom account
- Use that Zoom
grant_id in the POST /event payload.
That might look like this:
"conferencing": {
"provider": "Zoom Meeting",
"autocreate": {
"conf_grant_id": "abc_123",
}
}
and then we’d create + insert the Zoom link generated from that conf_grant_id for the grant that’s having the event created.
Create an event - Events - API Reference | Docs is the reference for that conferencing object, and we have a guide for it on Adding conferencing to events | Docs too, which you can directly hand to your coding agent if you’re using one.