How can i attach param to the url of portal page

I created a portal page in www folder (not webform).
I will create a code like UUID and save it in a doctype named debit.
Then I will send a link to the user’s email in the form:
When clicked, it will lead to my portal page, from there the get_context function will receive
param id = 23107e5b-d4d6-4f39-9818-677a7ccc08f4.
From there query into the DB with doctype = debit and id = 23107e5b-d4d6-4f39-9818-677a7ccc08f4.
How can I do that?