Skip to main content
Founder Sherpa uses Supabase Auth for authentication. All API requests require a valid JWT token and the project’s API key.

Required headers

Every API request must include these headers:

Obtaining an access token

Sign in with email and password to receive an access token:
The response includes:
Use the 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:
The Founder Sherpa web app handles token refresh automatically. If you’re building a custom integration, implement automatic refresh before the token expires.

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

Example error response:

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.