No-Access Route Guard
API Contract
REST
/api/v1/route-guard
2 endpoints
POST
/api/v1/route-guard/api/v1/route-guard/check
Evaluate whether the current auth state should be blocked and what redirect to apply
Public
Request Example
{
"user_id": "usr-9912",
"role": "STUDENT",
"organization_id": "org-4821",
"requested_path": "/dashboard"
}
Response Example
{
"is_blocked": true,
"redirect_path": "/no-access",
"reason": "role_not_permitted_on_mobile"
}
GET
/api/v1/route-guard/api/v1/route-guard/redirect
Get the redirect destination for a blocked auth state without posting full state
Public
Response Example
{
"role": "GUARDIAN",
"is_blocked": true,
"redirect_path": "/no-access"
}