proton URL

protonURL

Secure and confidential sharing

🎄 Holiday special

Organise your Secret Santa.
Nobody can peek.

Enter the names, we draw them and create one protonURL link per participant. Each person opens theirs once, discovers who they are buying a gift for… and the message self-destructs.

Free name draw, no sign-up

One name per line, 3 to 30 people.
One pair per line, separated by a comma. Example: Alice, Bob
Budget, date, place… It will be added to every link.

🔒 The draw and the encryption happen in your browser: we never receive the names or the pairs, only encrypted messages we cannot read.

How it works

  1. 1

    Enter the names

    Add the participants and, if needed, people who must not draw each other (couples, for example).

  2. 2

    We draw the names

    Everyone is placed in a random gift circle, then one encrypted protonURL link is created for each participant.

  3. 3

    Send the links

    Everyone gets their link by text, WhatsApp or email. Once it is read, the message is destroyed.

🕵️ What if someone tries to peek?

A protonURL link opens only once. If the organiser (or anyone else) opens someone else's link, its real owner will find a link that was already opened: cheating shows up straight away. Just run a fresh draw.

The trouble with a classic Secret Santa

📝

Paper slips

Everyone has to be in the same room, and someone always ends up drawing their own name.

🙈

The organiser knows everything

Whoever runs the draw sees every pair. No surprise left for them.

📧

Dedicated apps

Accounts to create, emails collected, ads… just to draw a few names.

🔒 Truly secret, even from the organiser

  • 🙅 No "reveal all" button

    The pairs are never shown to anyone. The organiser only sees links, not the names drawn.

  • 🤖 No AI

    Your name lists are never sent to an artificial intelligence service.

  • 🚫 No account

    No sign-up, no email required, no ads. Unopened links are deleted after one month.

“I just used it to organise a Secret Santa! It was useful for what I wanted and worked well. It's a secret even from me, which is nicer.”
— Mat, one of our first API users

🔍 For the sceptics

Rather not trust us with the draw?

Run it on your own computer. The script is short and readable: the draw happens on your machine, not on our servers. protonURL then only stores each encrypted message, as with any other link.

  1. Get your free API key (20 calls a month, no credit card).
  2. Download the script and fill in your key, the participants and the message.
  3. Run python3 secret-santa.py: you get one link per participant.
#!/usr/bin/env python3
"""
Secret Santa with protonURL — https://protonurl.com/secret-santa.html

Draws names and creates one self-destructing link per participant.
Nobody, not even the organiser, knows who got whom: each person opens
their own link once, and the message is destroyed right after.

Requirements: Python 3.8+, no extra package.
Usage: edit the settings below, then run `python3 secret-santa.py`
"""

import json
import random
import sys
import urllib.error
import urllib.request

# ── Settings ────────────────────────────────────────────────────────────────

API_KEY = "YOUR_API_KEY"  # Free key (20 calls/month): https://protonurl.com/free-trial.html

PARTICIPANTS = ["Alice", "Bob", "Charlie", "Diana", "Eve"]

# Optional: people who must not draw each other (couples, roommates…)
EXCLUSIONS = [
    ("Alice", "Bob"),
]

MESSAGE = (
    "🎅 Hi {giver}!\n\n"
    "You are {receiver}'s Secret Santa! 🎁\n"
    "You're the one buying them a gift.\n\n"
    "Keep it secret 🤫 This message has now self-destructed: "
    "write the name down or take a screenshot, you won't be able to read it again.\n\n"
    "🎄 Run your own Secret Santa: https://protonurl.com/secret-santa.html"
)

DURATION_HOURS = 744  # Unopened links expire after 1 month. Allowed: 1, 72, 168, 744, 4464, 8760

# ── Script ──────────────────────────────────────────────────────────────────

API_URL = "https://api.protonurl.com"
ALLOWED_DURATIONS = (1, 72, 168, 744, 4464, 8760)


def api_call(method, path, payload=None):
    request = urllib.request.Request(
        API_URL + path,
        data=json.dumps(payload).encode() if payload is not None else None,
        method=method,
        headers={
            "Authorization": "Bearer " + API_KEY,
            "Content-Type": "application/json",
        },
    )
    try:
        with urllib.request.urlopen(request, timeout=30) as response:
            return json.load(response)
    except urllib.error.HTTPError as error:
        sys.exit(f"API error {error.code}: {error.read().decode(errors='replace')}")


def draw(people, exclusions, attempts=10_000):
    """Shuffle everyone into a single gift circle, so nobody draws themselves."""
    rng = random.SystemRandom()
    forbidden = {frozenset(pair) for pair in exclusions}
    for _ in range(attempts):
        circle = people[:]
        rng.shuffle(circle)
        pairs = [(circle[i], circle[(i + 1) % len(circle)]) for i in range(len(circle))]
        if not any(frozenset(pair) in forbidden for pair in pairs):
            return pairs
    sys.exit("No valid draw found: there are too many exclusions.")


def main():
    if API_KEY == "YOUR_API_KEY":
        sys.exit("Set your API key first: https://protonurl.com/free-trial.html")
    if len(PARTICIPANTS) < 3:
        sys.exit("You need at least 3 participants.")
    if len(set(PARTICIPANTS)) != len(PARTICIPANTS):
        sys.exit("Each participant name must be unique.")
    if type(DURATION_HOURS) is not int or DURATION_HOURS not in ALLOWED_DURATIONS:
        sys.exit(f"DURATION_HOURS must be one of {ALLOWED_DURATIONS}.")

    # Check the quota first, so the draw never stops halfway (this check uses 1 call)
    remaining = api_call("GET", "/quota").get("remaining")
    if remaining is not None and remaining < len(PARTICIPANTS):
        sys.exit(f"Only {remaining} API calls left this month, "
                 f"{len(PARTICIPANTS)} needed: https://protonurl.com/pricing.html")

    pairs = draw(PARTICIPANTS, EXCLUSIONS)

    print("Send each person their own link (and only theirs!):\n")
    for giver, receiver in sorted(pairs):
        link = api_call("POST", "/create", {
            "text": MESSAGE.format(giver=giver, receiver=receiver),
            "duration": DURATION_HOURS,
        })["url"]
        print(f"  {giver:<20} {link}")

    print("\nEach link works only once. If someone says theirs was already opened,")
    print("somebody peeked: just run the script again for a fresh draw.")


if __name__ == "__main__":
    main()

With the free key, you can run a draw for up to 19 participants (the script uses one call to check your quota before it starts). For a bigger group, the API Pro plan includes 1,000 calls a month.