Use dynamic segments for calendar api