Skip to Content
Docs

Every chat of the team workspace as NDJSON: a header line, then one line per conversation

GET
/api/teams/{team_id}/chats/export

404 while TEAM_CHAT_EXPORT_ENABLED is off, as if the route were absent. The team's Owner and Admins only (403 workspace_role_required below Admin, 404 outside the team). The team.chats_exported audit row is written before the first byte; 503 audit_unavailable and no file when it can't be.

Not available to personal access tokens; call it from a signed-in session.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

team_id*string

Response Body

Success

Example Request
curl -X GET 'http://localhost:7091/api/teams/string/chats/export'
Example Response200
Empty

List the teams a resource is shared with GET

Needs `share` on it. Powers the share dialog (current shares + unshare), so only someone who may change the sharing can enumerate it: 404 when the resource isn't visible, 403 when the caller's role can't share. A personal agent adds `uses_team_items` (`[{team_id, name, items}]`, the teams' items it uses, which keep its shares to people who reach them). A team's own item has no per-person shares: whoever reaches it gets where its access comes from and its shares with other teams instead (:func:`_team_item_shares`). [Personal access token](/API/personal-access-tokens) scope: `teams:read`.

List resources shared with this team GET

Requires membership. Each row carries the resource's name, owner and people labels (email when on file, else null), `caller` β€” the caller's own live access fields on that resource (null if none) β€” and `origin` (`personal_shared` on a member's personal item). A Viewer or Editor sees whole-team grants and grants aimed at them; an Admin, the Owner, or someone with `share` on the resource, sees every grant. `paused_reason` is `owner_left` on a grant whose item's owner is no longer in the team (it gives no access until they are re-added), else null. Items other teams share with this team follow, every member seeing them, with `origin` `team_shared`, `shared_from`, `paused_reason` `team_locked` and `can_revoke` (see `outside.incoming_share_rows`). The envelope gives the caller's `role` (`owner|admin|editor|viewer`) and `team_role` in today's names. [Personal access token](/API/personal-access-tokens) scope: `teams:read`.