Skip to main content
All paths below use the API base URL and access labels. Examples are synthetic.

Sign up

POST /api/portal/signup — Public
Request
Response (201)
Creates the scoped buyer and a seven-day session. Errors include 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)
Invalid credentials, a missing entity, and disabled Portal all return 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)
Logout is idempotent: an already-removed or expired token can still be submitted. A missing token returns 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)
The same response is used when no matching buyer exists. A missing project or group returns 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)
Names are omitted if not stored. Success consumes the reset token and creates a new seven-day Portal session. Use the returned token for subsequent requests. Invalid or expired reset tokens and mismatched passwords return 400; rate limiting returns 429.