Sign up
POST /api/portal/signup — Public
Request
Response (201)
400 for invalid input or an already-registered email in that scope, 403 when Portal is disabled, 404 when the entity is missing, and 429 when rate-limited.
Log in
POST /api/portal/login — Public
Send email, a nonempty password, and either projectId or groupId.
Request
Response (200)
401 with "Invalid e-mail / password / project combination". Invalid input returns 400; rate limiting returns 429.
Check session
GET /api/portal/check-session — Portal buyer
Send either projectId or groupId in the query string.
Response (200)
data is the decoded session payload; a group session has groupId instead of projectId. Do not depend on additional JWT claims.
Missing scope returns 400. An expired, revoked, or invalid token returns 401; a scope mismatch returns 401 with "Not logged in to this viewer".
Log out
POST /api/portal/logout — Portal token
Send the Portal bearer header; no JSON fields are required. The server deletes that token’s session. Remove your local copy after success.
Response (200)
401; a server failure returns 500.
Request a password reset
POST /api/portal/forgot-password — Public
Send email and either projectId or groupId. Optional hostURL requests a reset link back to the embedded experience.
Request
Response (200)
404. Other errors include 400, 429, and 500.
Reset links expire after one hour. A supplied hostURL must have a trusted origin associated with the signup or entity custom domain; otherwise the link uses the Planpoint Viewer. HTTPS is required except for local development. This call can send email.
Reset password
POST /api/portal/reset-password — Reset token, not a Portal session token
Request
Response (200)
400; rate limiting returns 429.