/api/user/urls/:id/password

Check if a password is correct for a password-protected short URL.

Path Parameters

NameTypeDescription
idstringThe URL's unique ID, code, or vanity string.

POST
Request

Verify the password for a specific short URL by its ID, code, or vanity.

Body

Content-Type: application/json

PropertyTypeDescription
passwordstringRequired. The password to check.

Response

Status: 200 OK

Content-Type: application/json

PropertyTypeDescription
successbooleanWill be true if the password was correct.

Error Responses

  • 403 Forbidden

    The password is incorrect.

  • 404 Not Found

    The URL doesn't exist or is not password protected.



Last updated: 6/1/2025
Edit this page on GitHub