How do I create an unlisted link or preview link?

Hey. I’m building out a feature where a user owns an event and the event has a landing page. The event has a status of draft or published. The event has a visibility of public or unlisted.

When an event’s status is draft, no one should see anything except the owner user.

When an event’s status is published and public then anyone can see anything

When an event’s status is published and unlisted then only people with a certain link should be able to see it.

Because I can’t set privacy rules for a url parameter, I can’t think of how to use a token in the URL for example to make this work.

Anyone have tips?

If I interpret you correctly, the thing is by definition public even if unlisted. So anything you do then is obfuscation (hiding the link), and not security (stop data from loading).

Are you usually loading them with as a page thing, and you’re considering adding an extra token to unlisted events to obfuscate? I may be missing something, but if you describe the scenario in a bit more detail, it’ll be easier to suggest something.