/api/user/files/:id/password

Verify the password for a password-protected file.

Path Parameters

NameTypeDescription
idstringThe file's unique ID or file name.

POST
Request

Provide a password to check access to a specific file (by ID or name).

Body

Content-Type: application/json

PropertyTypeDescription
passwordstringRequired. The password to verify.

Example

{
"password": "yourpassword"
}

Response

Status: 200 OK

Content-Type: application/json

PropertyTypeDescription
successbooleanWill be true if the password was correct.

Example

{
"success": true
}

Error Responses

  • 403 Forbidden

    If the password is incorrect

  • 404 Not Found

    If the file does not exist or doesn't have a password



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