Teams
Teams, members, invites, search, favorites and home.
| Método | Path | Resumo | Access |
|---|---|---|---|
| POST | /companies | Handles POST /companies — creates a tenant root and binds the caller as `owner` in `company_memberships`. | Signed in |
| POST | /invite/{token} | — POST /invite/{token}. | Signed in |
| POST | /team-invites/accept | Must be authenticated; the session is not created here — the frontend routes the user through /login first, then calls this. | Signed in |
| GET | /teams | Handles GET /teams — lists teams where the caller has an active membership. | Signed in |
| POST | /teams | POST /teams | Signed in |
| GET | /teams/{teamId}/bookmarks | Responde ao GET /bookmarks devolvendo os pins do (user,team). | Team member |
| POST | /teams/{teamId}/bookmarks | Responde ao POST /bookmarks — cria (ou reusa idempotente) um pin em post/task/file. | Team member |
| DELETE | /teams/{teamId}/bookmarks/{bookmarkId} | Responde ao DELETE /bookmarks/{id}. | Team member |
| GET | /teams/{teamId}/favorites | Responde ao GET /favorites do team ativo. | Team member |
| POST | /teams/{teamId}/favorites | Responde ao POST /favorites — cria um pin novo no final da lista (idempotente na tripla user/type/id). | Team member |
| DELETE | /teams/{teamId}/favorites/{entityType}/{entityId} | Responde ao DELETE /favorites/{entityType}/{entityId}. | Team member |
| PUT | /teams/{teamId}/favorites/reorder | Accepts the entire favorites list in its new order and rewrites `position` on each row. | Team member |
| GET | /teams/{teamId}/flags/ | Responde ao GET /teams/{teamId}/flags — o mapa avaliado que o cliente usa pra decidir se renderiza um feature. | Team member |
| GET | /teams/{teamId}/home | Responde GET /teams/{teamId}/home — agregado da workspace-root: métricas + top projects/channels + due-this-week + recent tasks/chats/posts. | Team member |
| GET | /teams/{teamId}/home/layout | Responde GET /teams/{teamId}/home/layout — devolve o layout custom de widgets do user pra este team (JSON bag). | Team member |
| PUT | /teams/{teamId}/home/layout | Responde PUT /teams/{teamId}/home/layout — upsert do JSON de layout de widgets por (user_id, team_id). | Team member |
| GET | /teams/{teamId}/info | Handles GET /teams/{teamId}/info — devolve a row do team. | Team member |
| GET | /teams/{teamId}/members | GET /teams/{teamId}/members | Team member |
| GET | /teams/{teamId}/notifications | HTTP shape. | Team member |
| POST | /teams/{teamId}/notifications/{notificationId}/read | HTTP shape. | Team member |
| GET | /teams/{teamId}/notifications/preferences | HTTP shape. | Team member |
| PUT | /teams/{teamId}/notifications/preferences/{eventType} | HTTP shape. | Team member |
| POST | /teams/{teamId}/notifications/read-all | HTTP shape. | Team member |
| GET | /teams/{teamId}/notifications/unread-count | HTTP shape. | Team member |
| GET | /teams/{teamId}/search | É o handler HTTP de busca cross-workspace. | Team member |
| GET | /teams/{teamId}/unfurl | Responde GET /teams/:teamId/unfurl?url=... | Team member |