The shared-workbook endpoints. All are SaaS-only (404 in OSS) and gated behindDocumentation Index
Fetch the complete documentation index at: https://gridos.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
_require_workbook_owner — only the owner of the workbook can manage its collaborator list.
POST /workbook/{workbook_id}/collaborators
Invite a user by email. The response shape differs based on whether the invitee already has a GridOS account:- Registered user — a
workbook_collaboratorsrow is created immediately; returnskind: "active". - Unregistered email — a
pending_invitesrow is created; returnskind: "pending". A Postgres trigger (promote_pending_invites) promotes the row intoworkbook_collaboratorsatomically when the invitee signs up.
Request
The invitee’s email address. Case-insensitive; stored lowercased.
Only
"editor" is accepted in v1. The schema supports "viewer" but the write-endpoint gate isn’t wired yet; sending "viewer" returns 400.Response
Errors
| Status | When |
|---|---|
| 400 | Invalid email, role != "editor", or self-invite |
| 403 | Caller isn’t the owner of the workbook |
| 404 | Workbook doesn’t exist, or OSS mode |
GET /workbook/{workbook_id}/collaborators
Owner-facing list of every collaborator on this workbook (both active grants and pending invites).Response
user_id yet (the invitee hasn’t signed up) and use the pending-invite id as the revoke key.
DELETE /workbook/{workbook_id}/collaborators/{user_id}
Revoke an active collaborator. No-op if the user isn’t a collaborator on this workbook.DELETE /workbook/{workbook_id}/pending-invites/{invite_id}
Revoke a pending invite (the invitee hasn’t signed up yet). Routes to a separate endpoint because the id-space is different — active rows key off the invitee’suser_id, pending rows key off the pending_invites.id uuid.
GET /workbook/shared-with-me
Workbooks that have been shared with the caller. Used by the landing page’s “Shared with me” strip.Response
workbook_collaborators AND is also the owner (possible after a data repair) is filtered out so it doesn’t show up twice.
Related
- Shared workbooks concept — the sharing model and what collaborators can do.
- Realtime collab — how cell writes and cursor positions sync between collaborators.