Skip to content

Authentication

SaaS Maker uses two authentication methods depending on the context.

Use API keys for SDK calls, widget integrations, and public-facing endpoints.

Pass your project API key in the X-Project-Key header:

Terminal window
curl https://saasmaker-api.sarthakagrawal927.workers.dev/v1/feedback \
-H "X-Project-Key: pk_abc123"

API keys start with pk_ and are scoped to a single project. Get yours from Project Settings in the dashboard.

Use for: SDK, widgets, public endpoints (submitting feedback, joining waitlist, viewing testimonials).

Use session tokens for dashboard operations and the CLI. These are issued via Google OAuth through Auth.js.

Pass the token in the Authorization header:

Terminal window
curl https://saasmaker-api.sarthakagrawal927.workers.dev/v1/feedback/123 \
-X PATCH \
-H "Authorization: Bearer eyJhbGciOiJS..." \
-H "Content-Type: application/json" \
-d '{ "status": "in_progress" }'

Use for: Dashboard, CLI, admin operations (updating statuses, deleting entries, viewing analytics).

ActionAuth method
Submit feedback from your appAPI Key
Join a waitlistAPI Key
Submit a testimonialAPI Key
Read published changelogAPI Key
Search knowledge baseAPI Key
Track analytics eventsAPI Key
Update feedback statusSession Token
View analytics dashboardSession Token
Manage testimonials (approve/reject)Session Token
Create changelog entriesSession Token