Get a list of events calendar error 404 Not Found

Hello, help me fix error with api
this Api doesnt work


this Api works

why I get error when I run this API https://api.us.nylas.com/v3/grants/${accessToken}/events?calendar_id=${params.calendar_id}&start=${params.starts_after}&end=${params.ends_before}

Hi @Kateryna You cannot use the access token as a grant id…

Let’s say you add a grant to hello@gmail.com then you would need to use that to read the calendar events…

https://api.us.nylas.com/v3/grants/hello@gmail.com/events

You’re second example works because your using a grant, but the first one fails because you’re not using a grant.