For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication

Admin login with username and password

post

Authenticates an admin user with email and password credentials

Body
emailstringRequired

Email address of the admin user

Example: admin@example.com
passwordstringRequired

Password for the admin user

Example: password123
Responses
200

Authentication successful

application/json
successbooleanRequired

Indicates if the login was successful

Example: true
access_tokenstringRequired

Access token for authenticated requests

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
refresh_tokenstringRequired

Refresh token for obtaining new access tokens

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
local_supabase_urlstringRequired

Browser-accessible Supabase URL that issued the admin session tokens

Example: https://tenant.example.com
local_supabase_anon_keystringRequired

Anon key for the Supabase instance that issued the admin session tokens

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
userobjectRequired

User information

Example: {"id":"123","email":"admin@example.com","role":"owner"}
errorstringRequired

Error message if login failed

Example: Invalid credentials
post/sfp/api/auth/admin/login

Legacy redirect: review-environment login link → codev access page

get

Back-compat 302 for old PR links. Resolves the legacy targetOrg to its review-env assignment and redirects to /review-env/:assignmentId.

Query parameters
actionstringRequired

Legacy action; only 'frontDoorUrl' is supported.

paramsstringRequired

Legacy comma-separated key:value blob, e.g. targetOrg:myorg,repository:org/repo

Responses
302

Redirect to the codev review-env access page.

No content

get/sfp/api/auth/continue
302

Redirect to the codev review-env access page.

No content

Handle authentication callback

post

Validates the provided access token and optional refresh token

Body
access_tokenstringRequired

The access token for authentication

Example: eyJhbGciOiJIUzI1NilsImtpZCI6IlRbEty...
refresh_tokenstringOptional

Optional refresh token

Responses
200

Authentication successful

application/json
successbooleanRequired

Indicates if the operation was successful

Example: true
dataobjectRequired

The response data from auth service

Example: {"userId":"123"}
post/sfp/api/auth/callback

Was this helpful?