Sweeppea API v3

Fetch Notes

Retrieve all notes for the authenticated user. Returns decrypted notes without password protection.

POST https://api-v3.sweeppea.com/notes/fetch

Description

This endpoint retrieves all notes associated with the authenticated user. Notes are automatically decrypted and returned in descending order by creation date. Password-protected notes are excluded from the results.

Authentication

This endpoint requires Bearer token authentication via the Authorization header.

Code Examples

curl -X POST "https://api-v3.sweeppea.com/notes/fetch" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response

{
  "Response": true,
  "Data": {
    "TotalNotes": 8,
    "Notes": [
      {
        "_id": "68df07e9896a685bf51d58cf",
        "NoteToken": "uuid-v4-string",
        "Title": "Example Note",
        "Note": "Decrypted note content",
        "Views": 0,
        "Pinned": false,
        "Status": false,
        "CreatedByAdmin": false,
        "CreationDate": "2025-10-02T23:16:57.491Z"
      }
    ]
  }
}

Error Responses

{
  "Response": false,
  "Message": "Missing or invalid Bearer token. Send your API token in the Authorization header as: Authorization: Bearer YOUR_API_TOKEN",
  "Code": 401
}
{
  "Response": false,
  "Message": "Invalid API token. It does not match any account.",
  "Code": 403
}
{
  "Response": false,
  "Message": "Internal server error. Please try again; if it persists, contact support with the time of this request.",
  "Code": 500
}
© Sweeppea. All rights reserved.