Skip to main content
GET
/
api
/
password-generator
/
view-all-saved-passwords
List Saved Passwords
curl --request GET \
  --url https://api.example.com/api/password-generator/view-all-saved-passwords/ \
  --header 'Authorization: <authorization>'
{
  "error": "Missing required fields."
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/edimez14/password_generator/llms.txt

Use this file to discover all available pages before exploring further.

Retrieves all passwords saved by the authenticated user.

Endpoint

GET /api/password-generator/view-all-saved-passwords/

Authentication

Authorization
string
required
Bearer token for authentication. User must be logged in.

Request

This endpoint does not accept any parameters. It automatically filters passwords for the authenticated user.

Response

message
string
required
A message indicating the user whose passwords are being retrieved.
passwords
array
required
Array of saved password objects.

Success Response

200 OK
{
  "message": "Passwords saved by the user john_doe: ",
  "passwords": [
    {
      "id": 1,
      "name_pages": "Example Website",
      "url": "https://example.com",
      "password_saved": "MySecureP@ss123",
      "user": 1
    },
    {
      "id": 2,
      "name_pages": "Test Site",
      "url": "https://test.com",
      "password_saved": "AnotherP@ss456",
      "user": 1
    }
  ]
}

Error Responses

{
  "error": "Missing required fields."
}
{
  "error": "password does not exist after creation."
}
{
  "error": "error message"
}

Example Request

curl -X GET https://api.example.com/api/password-generator/view-all-saved-passwords/ \
  -H "Authorization: Bearer YOUR_TOKEN"

Implementation Details

This endpoint is implemented in views.py:64 using the view_all_saved_passwords view function. It filters the SavedPasswords model by the authenticated user and serializes the results using SavedPasswordsSerializer.

Build docs developers (and LLMs) love