Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.rev14ministries.com/llms.txt

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

Quickstart

Get up and running with the Revelation 14 API in under 5 minutes.

Step 1: Authentication

First, you’ll need to authenticate with the API to get an access token.
curl -X POST https://rzqklwfhwqmviintncqh.supabase.co/functions/v1/auth/login \
  -H "Content-Type: application/json" \
  -H "apikey: your_supabase_anon_key" \
  -d '{
    "email": "your@email.com",
    "password": "your_password"
  }'

Step 2: Make Your First API Call

Now use your access token to create a note:
curl -X POST https://rzqklwfhwqmviintncqh.supabase.co/functions/v1/notes-create \
  -H "Authorization: Bearer your_access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "My First Note",
    "content": "This is my first note created via the API!",
    "status": "DRAFT"
  }'

Step 3: Fetch Your Notes

Retrieve your notes with proper user filtering:
curl -X GET "https://rzqklwfhwqmviintncqh.supabase.co/functions/v1/notes-fetch?limit=10" \
  -H "Authorization: Bearer your_access_token"

Expected Response

{
  "message": "Notes fetched successfully",
  "data": {
    "notes": [
      {
        "id": "abc123...",
        "title": "My First Note",
        "content": "This is my first note created via the API!",
        "status": "DRAFT",
        "createdBy": "user_id",
        "createdAt": "2025-10-14T09:33:33.348Z",
        "updatedAt": "2025-10-14T09:33:33.348Z"
      }
    ],
    "pagination": {
      "total": 1,
      "limit": 10,
      "offset": 0,
      "hasMore": false
    },
    "userId": "user_id"
  },
  "success": true
}

Next Steps

Authentication Guide

Learn about JWT tokens, user roles, and security

API Reference

Explore all available endpoints and parameters
All API endpoints require valid authentication. Make sure to include your access token in the Authorization header.