Skip to main content
All NestJS API endpoints require a Bearer token obtained by signing in through Supabase Auth. Include the token in the Authorization header for every request.

Obtaining the Token

  1. Sign in to MantrixFlow (or your app that uses Supabase Auth).
  2. From the client session, obtain the access token. With Supabase JS: session.access_token.
  3. Use this token in the Authorization header.

Request Format

Authorization: Bearer <access_token>
Example with curl:
curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
  https://api.mantrixflow.com/organizations/ORG_ID/pipelines

Token Expiry

Access tokens expire. Refresh the token using the Supabase refresh token if the session is still valid. When the token expires, you will receive a 401 Unauthorized response. Re-authenticate to obtain a new token.