Accounts and access
12. Other credential types
Two further credentials exist for features of the first-party apps. They are listed here so that the picture of "what can authenticate to this server" is complete; an HTTP integration will normally use API keys (section 7) instead.
12.1 Share grants#
A share grant is an end-to-end encrypted snapshot of part of a graph, uploaded by an app and fetched by a recipient with its own glk_ key. The server cannot read the snapshot.
| Route | Auth | Purpose |
|---|---|---|
POST/v1/grants |
Session | Uploads a sealed snapshot. Body: sealed_bundle (required), scope (required), label, expires_at (default 30 days from now; clamped to between 60 seconds and about 13 months), max_fetches. Returns 201 with grant_id, api_key (shown once), fetch_url, expires_at. Errors: 400 invalid, 400 invalid_bundle, 400 invalid_grant_id, 409 conflict, 413 too_large. |
GET/v1/grants |
Session | Lists the caller's grants with status, expiry and fetch counts. |
POST/v1/grants/{grantId}/revoke |
Session | Revokes a grant. 404 not_found if it is not the caller's. |
GET/v1/bundle/{grantId} |
Grant key | Returns the sealed snapshot. 300 requests per minute per client address. A wrong key, an expired or revoked grant, and an exhausted max_fetches all answer 404 not_found. |
POST/v1/mcp/open |
Grant key | Runs one read tool against the snapshot, decrypting it on the server with a password supplied in the body. 120 requests per minute per client address and 60 per minute per grant. |
12.2 Inbox tokens#
An inbox token (glin_ + 43 URL-safe characters) is a write-only credential: it lets an assistant submit items for a person to review in the app. It cannot read anything. It is presented as a bearer token at POST /v1/mcp, an MCP endpoint separate from POST /v1/live/mcp, which is limited to 120 requests per minute per client address.
| Route | Auth | Purpose |
|---|---|---|
POST/v1/inbox/graphs/{graphId}/tokens |
Session | Mints a token bound to one graph. Optional body field label. Returns 201 with token_id, token (shown once), graph_id. |
GET/v1/inbox/tokens |
Session | Lists the caller's active tokens (token_id, label, graph_id, created_at, last_used_at, use_count). |
DELETE/v1/inbox/tokens/{tokenId} |
Session | Revokes a token. |
POST/v1/inbox/tokens |
Withdrawn. Answers 410 unbound_tokens_retired. |