Notes API
Create Note
POST /notes-create
Create a new personal note
https://rzqklwfhwqmviintncqh.supabase.co/functions/v1
Request
string
required
Bearer token from authentication
string
required
application/json
string
Note title (optional, but title or content required)
string
Note content (optional, but title or content required)
string
default:"DRAFT"
Note status: DRAFT or PUBLISHED
Response
string
Success message
boolean
Request success indicator
object
Fetch Notes
GET /notes-fetch
Retrieve user’s personal notes with pagination
Request
string
required
Bearer token from authentication
number
default:"10"
Maximum number of notes to return (1-100)
number
default:"0"
Number of notes to skip for pagination
Response
string
Success message
boolean
Request success indicator
object
Update Note
POST /notes-save
Update an existing note
https://rzqklwfhwqmviintncqh.supabase.co/functions/v1
Request
string
required
Note ID to update
string
required
Bearer token from authentication
string
required
application/json
string
Updated note title
string
Updated note content
string
Updated note status (DRAFT or PUBLISHED)
Delete Note
DELETE /notes-delete?id=:id
Delete a note
https://rzqklwfhwqmviintncqh.supabase.co/functions/v1
Request
string
required
Note ID to delete
string
required
Bearer token from authentication
Privacy & Security
Security Features
- JWT Validation: All requests require valid authentication tokens
- User Isolation: Notes are filtered by the authenticated user’s ID extracted from JWT
- Supabase Storage: Notes are stored directly in the Supabase database
- Input Validation: All input is validated and sanitized
Data Flow
Error Codes
Supabase is the source of truth for notes.