Founder Sherpa uses Supabase Auth for authentication. All API requests require a valid JWT token and the project’s API key.Documentation Index
Fetch the complete documentation index at: https://docs.founder-sherpa.com/llms.txt
Use this file to discover all available pages before exploring further.
Required headers
Every API request must include these headers:| Header | Description |
|---|---|
Authorization | Bearer token obtained from the sign-in flow |
apikey | Your Supabase project’s anonymous key |
Content-Type | Always application/json for request bodies |
Obtaining an access token
Sign in with email and password to receive an access token:access_token as your Bearer token for subsequent requests.
Token refresh
Access tokens expire after 1 hour. Use the refresh token to get a new access token without re-entering credentials:Multi-tenant authorization
Founder Sherpa is multi-tenant — all data is scoped to workspaces. Your access token carries your user identity, and Row Level Security (RLS) policies ensure you can only access data in workspaces where you’re a member. You don’t need to pass a workspace ID in headers. RLS policies automatically filter data based on your workspace memberships.Error responses
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid access token. Sign in again or refresh your token. |
403 Forbidden | Valid token but insufficient permissions (e.g., accessing a workspace you’re not a member of). |
400 Bad Request | Invalid request body or parameters. |
Security best practices
- Never expose your service role key in client-side code. The
apikey(anonymous key) is safe for client use. - Store tokens securely — use HTTP-only cookies or secure storage, not localStorage.
- Implement token refresh — don’t require users to re-authenticate when tokens expire.
- Use HTTPS for all API requests.