List Portal users
GET /api/portal/users — Customer dashboard
With neither field, returns buyers from projects accessible to the signed-in customer, not all group-scoped buyers.
Response (200)
_id, email, data, project/group association, and timestamps. Passwords, reset tokens, favorites, reservations, and the document version are excluded. If data.contactNumber exists and data.phone does not, the response adds data.phone. Account-wide results also include projectId and projectName.
Results are newest first. Requests identified as Zapier polling are capped at 100 results; this is not a general limit or pagination parameter.
For a scoped request, the customer must be the entity owner, an entity administrator/editor, or an administrator/editor on the owner’s team. Errors: 401 without a customer identity, 403 for denied access, 404 for a missing entity, and 500 on failure.
List Portal events
GET /api/portal/events — Customer dashboard
Optional query projectId or groupId selects the scope. With neither, returns events for accessible projects. Access checks match the scoped buyer-list permissions.
A group query collects events from the group’s projects; it is not a list of events stored only against groupId. Account-wide Zapier polling is capped at 100; scoped event queries do not apply that cap.
Response (200)
_id, userId (or null), email (or null), userName, description, createdAt, and project/group context. Account-wide results add projectName. Results are newest first.
action is inferred from the description: favorite, payment, reservation, download, waitlist, button_click, view, remove, cart, or other. It is a reporting label, not verified payment evidence. Errors: 401, 403, 404, or 500.
Record a Portal event
POST /api/portal/events — Portal buyer
Send nonempty userName and description. Optional projectId associates an action with a particular project, including a project being viewed from a group. Omit it to use the session’s project or, for a group-only event, its group. Only submit the current Viewer’s actual context.
Request
Response (201)
action field. Missing fields/context return 400, invalid sessions return 401, and save failures return 500. Avoid recording secrets or unnecessary personal information in descriptions.
Upload a file
POST /api/portal/upload — Customer dashboard, not Portal buyer
Send multipart/form-data with one file field named file. Let your HTTP client set the multipart boundary.
Response (201)
png, jpg, jpeg, jfif, webp, gif, avif, bmp, svg, ico, tif, tiff, heic, heif, mp4, webm, mov, m4v, ogv, mkv, avi, mp3, wav, m4a, ogg, pdf, glb, and gltf.
No file returns 400 with { "error": "No file uploaded" }. Missing dashboard authentication returns 404 with { "message": "You are not authorized." }. Upload failures, including rejected file types, return 500 with { "error": "Upload failed" }.
Only POST is supported for integrations; there is no implemented delete-upload operation on this route. Treat uploaded content as publicly addressable, not private buyer-document storage.