Skip to main content
A password-protected link shows a prompt before redirecting. Useful for a document shared with one client, or an announcement going out before it is public.
Both fields are needed: password_protected=true turns the feature on, password sets the value.

Adding or changing one later

Removing it:

Passwords are never returned

Reading a link back tells you whether it is protected, never what the password is:
Passwords are stored hashed. If you need to be able to tell someone the password later, keep your own record when you set it — the API cannot give it back.

Monitoring attempts

get_shortlink_password_attempts reports attempts against a link, which is how you notice a link being guessed at:

What this is and is not

A password gates the redirect, not the destination. Anyone who learns the destination URL reaches it directly without the prompt, and anyone who knows the password can pass it on.It is a speed bump against casual access. For anything genuinely confidential, protect the destination itself.
Sensible use:
  • A different password per recipient, so you can tell who shared it
  • Combined with expiration, so access ends on a date
  • Rotated when someone leaves the group it was shared with