Skip to main content

Reference: platform

Users, profiles, members, feedback, blob, and tags.
3 min read

Users (/users/me)#

MethodPathSummary
GET/users/meCurrent user
GET/users/me/sessionApp boot: user + preferences + profiles (with permissions) + currentProfile
POST/users/me/bootstrapPlatform user bootstrap (session Bearer)
POST/internal/users/bootstrapMirror from Better Auth user.create (internal; Authorization: Bearer <CRON_SECRET>)
PATCH/users/me/preferencesPreferences (theme, regional)

GET /users/me/session aggregates memberships and basic per-profile permissions (canManageProfile, canInvite, canViewAuditLogs) plus the settings blob (e.g. nutritionMealTypes). Preferences still live in Postgres (user_preferences); if UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN are configured, the full response is cached in Upstash (~20 min) and invalidated when prefs, memberships, or profile settings change. That cache does not take part in the mirror to users. | GET | /users/me/connections | Connections | | DELETE | /users/me/connections/:connectionId | Remove connection | | GET/POST | /users/me/connection-invitations | List / send | | POST | …/accept …/reject …/cancel | Invitation cycle | | GET | /users/me/profile-invitations | Pending profile invitations | | GET | /users/me/profile-trash | Profile trash |

Profiles (/profiles)#

MethodPathSummary
GET/profilesList for the user
POST/profilesCreate
GET/profiles/:profileIdDetail
PATCH/profiles/:profileIdUpdate
POST…/favoriteMark / unmark favorite ({ isFavorite }, per user)
GET…/accessAccess summary
GET…/usageUsage / plan counters (Upstash snapshot profile:usage:{id}, TTL 5m)
GET…/audit-logsAudit (admin); filters domain, actorUserId, action, from/to; meta.total
GET…/audit-logs/searchAudit search (same filters + q)
POST…/soft-delete …/restoreSoft delete
DELETE…/permanentPermanent delete
GET/POST…/membersMembers
PATCH/DELETE…/members/:userIdUpdate / remove
GET/POST…/invitationsInvitations
POST`/profiles/invitations/:id/acceptreject
GET/POST…/default-projectDefault project
GET…/work-bootstrapWork bootstrap (projection=sidebar|picker|full, independent cursors)

Feedback#

MethodPathAuth
POST/feedback/profiles/:idUser (profile member)
GET/internal/feedbackCRON_SECRET
GET/internal/feedback/:feedbackIdCRON_SECRET

Reads live at /internal/feedback*: they return feedback from every profile with no scope or membership, so they are only called server-to-server from Next with CRON_SECRET. The user gate (FEEDBACK_ADMIN_EMAILS and/or FEEDBACK_ADMIN_PASSWORD) is applied in the app before the call. Create accepts kind (bug | idea | praise).

GET /internal/feedback accepts domain, cursor, and limit, and responds { data: FeedbackSubmission[], meta: { next_cursor, has_more } }.

Blob#

Bytes are uploaded and deleted in Next (server actions + @vercel/blob). The API only attaches metadata to entities.

MethodPath
POST/blob/profiles/:id/attachments

Domain image DELETE/PATCH (tasks, notes, activities, health, library, nutrition) may return { blobPathnames: string[] } so Next can delete storage.

Tags#

MethodPath
GET/POST/tags/profiles/:id
GET/PATCH/DELETE…/:tagId
POST…/:tagId/favorite
GET…/:tagId/detail-graph …/assignment-candidates …/links
POST/DELETEentity links

Full playground: OpenAPI reference group in the sidebar.